dual-line output doesn't fit panel
Submitted by fbs..@..al.com
Assigned to Xfce-Goodies Maintainers
Description
For users who set a panel height to less than the default, say to 22px, if the xfce4-battery-plugin's "Display time" or "Display power" options are selected, the second of the two lines shown does not fit in the display using the default font size.
A fix is to add the following to the Gtk 3.20 CSS (where it already sets the progressbar size):
label { margin-top: -2px; margin-bottom: -3px; }
and to call gtk_style_context_add_provider() for each of the four labels battmon->charge, battmon->rtime, battmon->acfan and battmon->temp after they are created. This does not break things for folk using the default panel size, or a larger panel size.
Version: git