Closed ghost closed 7 years ago
I don't understand.
Basically the spacing of the blue text is bigger then the spacing of the black text.Look carefully."Temperature" and "12°C" are aligned, but "Wind Chill" and "12°C" are not aligned! In my theme it looks somewhat good, but in most other themes it looks pretty bad.
I hadn't noticed -- I use the Cinnamon theme. I see it looks OK in Mint-X and Linux Mint, but not in Loki.
There is no style defined for .weather-current-databox-values
. (It's missing in upstream gnome-shell extensions, too.)
Can you suggest a fix?
@mockturtl You could use St.Table
instead of nested St.BoxLayout
elements. This will arrange the labels in a grid pattern, so that even if the columns have different font sizes (for example), they will still be aligned. See https://developer.gnome.org/st/stable/StTable.html and http://www.roojs.org/seed/gir-1.2-gtk-3.0/seed/St.Table.html for reference. You can also check out my Devtools desklet for an example (http://cinnamon-spices.linuxmint.com/desklets/view/17 and https://github.com/collinss/Cinnamon-Developer-Tools).
*You would then have to add the style_class
attribute to each label, as I don't think you can style individual columns that way.
@collinss Thanks, I'll keep this in mind for the future.
Hello,
This issue is being closed because development is moving to linuxmint/cinnamon-spices/applets. Feel free to reopen your issue there.
Please see the release announcement here:
http://segfault.linuxmint.com/2017/01/changes-to-cinnamon-spices-for-developer-and-artists/
There appears to be no way of aligning the text of the conditions with their values!