elementary / granite

Library that extends GTK with common widgets and utilities
https://elementary.io
GNU Lesser General Public License v3.0
289 stars 60 forks source link

Init: set accent color from portal #704

Open danirabbit opened 8 months ago

danirabbit commented 8 months ago

It currently isn't being updated while running because it looks like our portal isn't sending settings-changed signals?

Requires:

ryonakano commented 5 months ago

@danirabbit Hmm, could you tell me how to test this? Maybe using an label with .accent style in a Flatpak app and then changing accent color in System Settings? :thinking:

danirabbit commented 5 months ago

@ryonakano it should work with the demo. I can’t remember if this needs the new granite stylesheet or if it works with the current stylesheet though. You might need to set the stylesheet in inspector to Granite

danirabbit commented 5 months ago

Will need to bump the “since” line here because we already released 7.5.0

alice-mkh commented 5 months ago

It currently isn't being updated while running because it looks like our portal isn't sending settings-changed signals?

I see what's happening. It stops working once you open inspector. Looks like while you do support multiple GdkDisplays for the most part, accent_provider is not per-display and basically you need separate providers for each.

What does completely fail to pick changes for me is color-scheme instead, at least in calculator.