cosmic-settings icon indicating copy to clipboard operation
cosmic-settings copied to clipboard

Desktop > Appearance > Accent Color: Automatic mode that matches color from desktop bg

Open ryanabx opened this issue 11 months ago • 7 comments

This is just an idea, but having the accent color be chosen automatically by the background would be a nice addition.

In the case of outputs/desktops with different backgrounds (as I believe that is a feature), the accent color would have to also be per-desktop/output

ryanabx avatar Mar 19 '24 02:03 ryanabx

This is planned post-release (i.e. extract theme from wallpaper like Plasma/Material You).

git-f0x avatar Mar 22 '24 15:03 git-f0x

Ya, I think this could possibly be a toolkit variable and xdp-cosmic could monitor the cosmic-bg state for the current wallpaper to calculate the accent color whenever the state changes or toolkit config variable changes.

wash2 avatar Mar 22 '24 22:03 wash2

Would be fun for the app theme (not just accent) to change as you move a window between monitors (redish wallpaper on one monitor, greenish on another... party!). Though probably not feasible in a performant way. 🥲

git-f0x avatar Mar 22 '24 22:03 git-f0x

Would be fun for the app theme (not just accent) to change as you move a window between monitors (redish wallpaper on one monitor, greenish on another... party!).

Though probably not feasible in a performant way. 🥲

Shouldn't affect performance that much if at all, since no one really moves windows between monitors multiple times a second

ryanabx avatar Mar 22 '24 23:03 ryanabx

since no one really moves windows between monitors multiple times a second

Well now I have an urge to do just that!

On a more serious note, I would imagine that theme changes would apply on window drop (though that might feel a bit weird). Not sure if it's possible to apply live while the window is being dragged (but would look really cool).

git-f0x avatar Mar 22 '24 23:03 git-f0x

Would be fun for the app theme (not just accent) to change as you move a window between monitors (redish wallpaper on one monitor, greenish on another... party!). Though probably not feasible in a performant way. 🥲

I think this may be difficult to implement as the theme is not customizable per-monitor :sweat_smile:

wash2 avatar Mar 22 '24 23:03 wash2

That might be cool to have as a very long-term option (COSMIC 2, 3... since wallpapers per monitor and theme generation are planned). E.g. when the switch for auto theme generation is on, each monitor gets assigned its own theme based on its wallpaper, and that theme is applied to apps dropped onto the monitor. Though it might feel weird in practice, but not sure how to handle different wallpapers on monitors and theme generation (which wallpaper to choose?).

git-f0x avatar Mar 23 '24 00:03 git-f0x