teaser for my little winter project.
-
@hbons if you're using 4.20 or a newer development version, it should work just like in normal CSS: https://docs.gtk.org/gtk4/css-properties.html#media-queries
-
@ebassi @hbons @media `light-dark()` is also a good method (dunno if GTK supports it)
--bg-color: light-dark(#efedea, #223a2c);
light-dark() - CSS | MDN
The light-dark() CSS function enables setting two colors for a property - returning one of the two colors options by detecting if the developer has set a light or dark color scheme or the user has requested light or dark color theme - without needing to encase the theme colors within a prefers-color-scheme media feature query. Users are able to indicate their color-scheme preference through their operating system settings (e.g., light or dark mode) or their user agent settings. The light-dark() function enables providing two color values where any value is accepted. The light-dark() CSS color function returns the first value if the user's preference is set to light or if no preference is set and the second value if the user's preference is set to dark.
MDN Web Docs (developer.mozilla.org)
-
ok, light theme!
️ cards use the same colour as windows. so I'm slightly changing the base window colour to the one used in sidebars (like in Files).
GTK doesn't seem to have a .dark or .light CSS selector. so had to manually toggle a class and listen for the dark mode signal. no big deal.
#linux #opensource #gnome #gtk #rust #design #aurora
-
@hbons Heh, will this cover North America?
If so, for Canada you might want to include provincial flags (e.g.
for Alberta, or qualified flags like
/
for Alberta/Canada), otherwise the land area is too vast. Hell, our provinces can be rather large. -
-
@hbons Heh, will this cover North America?
If so, for Canada you might want to include provincial flags (e.g.
for Alberta, or qualified flags like
/
for Alberta/Canada), otherwise the land area is too vast. Hell, our provinces can be rather large.@virtuous_sloth at some point yes.

but as I understand it's not really possible to predict West-East occurrences... just very broadly North-South. I guess it could be based on whether the sun has set.
-
@michalfita once NASA can predict aurora odds that accurately I will add them.

-
@virtuous_sloth at some point yes.

but as I understand it's not really possible to predict West-East occurrences... just very broadly North-South. I guess it could be based on whether the sun has set.
@hbons You are right, they are quite broad east-west, but there is some variation. Looking at this one, if you know what parts are heavily populated, some of the most populated parts of the country in the south of the east, including around 20 million people, are not in the zone while there are less-populated parts in the south of the west which are in the zone that nevertheless inclued almost 10 million people. A challenge to be sure.

-
@hbons You are right, they are quite broad east-west, but there is some variation. Looking at this one, if you know what parts are heavily populated, some of the most populated parts of the country in the south of the east, including around 20 million people, are not in the zone while there are less-populated parts in the south of the west which are in the zone that nevertheless inclued almost 10 million people. A challenge to be sure.

@hbons I wish you good progress with your cool development!
-
@hbons How hard and backward would it be to just have good old letters there. Or, like the younger ones say: Legacy emoji... LOL
-
@hbons How hard and backward would it be to just have good old letters there. Or, like the younger ones say: Legacy emoji... LOL
-
@hbons 🥌
️ -
want to appreciate for a minute that #gtk can now baseline align labels regardless of size or style.
won't need to change the margins when playing with the font sizes later.

-
want to appreciate for a minute that #gtk can now baseline align labels regardless of size or style.
won't need to change the margins when playing with the font sizes later.

all this might be old news to you, I'm just rediscovering all the "new" features.

-
@hbons I know you mean well but flags instead of city names and flags instead of languages can be quite controversial at times. I hate to be the lame guy in the room, but usually it's better to err on the side and to avoid these things
-
@hbons I know you mean well but flags instead of city names and flags instead of languages can be quite controversial at times. I hate to be the lame guy in the room, but usually it's better to err on the side and to avoid these things
@rangelovd so true.
-
want to appreciate for a minute that #gtk can now baseline align labels regardless of size or style.
won't need to change the margins when playing with the font sizes later.

-
settling on the layout. I think this will be it for the first release.
funky colours that match the wallpaper totally by accident...
also added a #fediverse hashtag graph. arguably the best indicator!
@hbons looks neat!


Investors are happy

-
@hbons looks neat!


Investors are happy

@zeenix I’m glad. just don’t expect a shareholder meeting.

-
settling on the layout. I think this will be it for the first release.
funky colours that match the wallpaper totally by accident...
also added a #fediverse hashtag graph. arguably the best indicator!
@hbons wow that card layout reminded me of Status Board for iPad from way back when…


️