Will the Weather docklet have full functionality for vertical docks?

Asked by Taylor Gresser

If you configure Docky to live on the side of your monitor the weather docklet no longer responds to a left-click for further information. I assume this is because the data it would otherwise be displaying does not really translate to a vertical bar very well.

Is there a plan to add this functionality back in? I can right-click on the weather docklet and get forecasts for individual days, bu that requires the docklet to lean on a web browser for its functionality. Something extending horizontally (assuming no vertical representation of the data makes sense) from the docklet would be preferable, I think.

Question information

Language:
English Edit question
Status:
Solved
For:
Docky Edit question
Assignee:
No assignee Edit question
Solved by:
Taylor Gresser
Solved:
Last query:
Last reply:
Revision history for this message
Chris S. (cszikszoy) said :
#1

There aren't really any plans for this sort of functionality. You could actually help this to become a reality if you had a good mockup of how this would work / look, though.

Revision history for this message
Taylor Gresser (taylor-gresser) said :
#2

Looking at the WeatherPainter.cs source in StandardPlugins/Weather/src/ it looks like it currently defines a region to display instead of the main Docky window and then let the user page through three methods that relay the data from Cairo.Context objects in a helpful fashion (stop me if I stray too far, I don't know C#).

Of the three images it produces, the only one that would be difficult to change to display vertically would be the output of DrawTempGraph. You could reorganize the two other panels into a vertical image above text above image etc. layout and drop the temperature graph. I think it would be easier to just re-use the existing draw methods and change where it draws. The existing 'canvas' size it creates is already assumed to fit on the screen, so why not overlay the new canvas perpendicular to Docky, anchored at the weather Docklet's original location with the rest of Docky blurred (or you could even leave it alone, just surround the canvas with a border entirely and it should still be easy to read). This would let you re-use almost all of the painting and weather logic.

I guess the downside to all of this would be displaying a second canvas (I assume normally it just modifies the base Docky area and changes what is displayed), which is more expensive. Since I don't really know the Docky code or know anything about C#, I'm not certain if this is even a realistic suggestion.

The less-me-droning-on-and-on version:
-User clicks weather Docklet.
-Docklet code checks orientation.
-If vertical, use existing paint methods, but have canvas area grow out perpendicular to Docky instance.
-Very poor one-minute gimp mock-up here (sorry, I have neither a scanner nor a tablet at my disposal): http://img291.imageshack.us/img291/898/docky.png

Let me know if anything was unclear, I tend to ramble. Thank you for the response!