mockturtl / cinnamon-weather

DEPRECATED. Use linuxmint/cinnamon-spices-applets instead.
https://cinnamon-spices.linuxmint.com/applets/view/17
28 stars 35 forks source link

Text alignment #64

Closed ghost closed 7 years ago

ghost commented 10 years ago

There appears to be no way of aligning the text of the conditions with their values! secondary_002

mockturtl commented 10 years ago

I don't understand.

ghost commented 10 years ago

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.

mockturtl commented 10 years ago

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?

collinss commented 10 years ago

@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.

mockturtl commented 10 years ago

@collinss Thanks, I'll keep this in mind for the future.

mockturtl commented 7 years ago

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/