Battery Monitor on Plasma 2

Marco Martin notmart at gmail.com
Sun Dec 29 15:35:31 UTC 2013


On Saturday 28 December 2013, Kai Uwe Broulik wrote:
> Hi there,
> 
> first of all, I really like all the polish you put into Plasma 2,
> especially system tray and the calendar :-)
> 
> I have a few questions regarding the battery monitor, however:
> - (How) Can I determin whether the panel the system tray emerged from is at
> the top or bottom of the screen? Does plasmoid.location still exist and
> work? The idea was to have the controls always as close to the panel as
> possible (less mouse travel)

plasmoid.location should still work.
that said, i don't think should be something for the plasmoid to care to, that 
seems a thing that should be present in all plasmoids, therefore not to be 
done manually (how to do it is an open question, only answer not really 
acceptable is to do that by hand in each plasmoid)

> - (How) Can I determin whether the plasmoid is collapsed in systray or in a
> panel? Currently when there are eg. two batteries, the battery monitor
> shows two icons cramped next to eath other as it doesn't know it's only
> supposed to show one icon. Does plasmoid.formfactor still exist and work,
> especially in the systray popup or are there other means to detect this?

formfactor does exist, but there aren't differences between being in apanel or 
in a systray...
hmm, so when in a systray would make sense a "constrained" formfactor or 
something like that, ie not able to expand neither horizontally nor vertically

> - How to proceed concerning the expanding and collapsing of battery
> details? It seems a plasmoid is not supposed to change its size by itself
> in Plasma 2. On the desktop, when the plasmoid becomes smaller than its
> minimum size, it collapses to the compact representation. However when the
> minimum size changes, it causes weird behavior, such as the content
> overlapping and as soon as you touch the sizer, it re-evaluates the
> minimum sizes and collapses again (and vice-versa).The system tray popup
> also seems fixed in size (is the initial size of the popup the minimum

hmm, that shouldn't do it, since it should always be based on the minimum size 
of the full view, regardless it's expanded or iconified. what should be happen 
tough is the collapsed check to be triggered also when the minimum size 
changes, not only the actual size.
(a popup shouldn't really dynamically change its minimum size tough)

> width of the largest plasmoid?) Experience also has shown that resizing a
> Plasma popup in an X + QGraphicsView world is really glitchy and ugly.

QGraphicsView, nothing to do with plasma2 no?


-- 
Marco Martin


More information about the Plasma-devel mailing list