lassekongo83 / adw-colors

Color themes for libadwaita and adw-gtk3
160 stars 13 forks source link

Apply the accent color to gnome-shell #3

Closed Py-GNU-Unix closed 2 years ago

Py-GNU-Unix commented 2 years ago

It would be great to apply the accent color to gnome-shell too. I've found this extension --> https://extensions.gnome.org/extension/4010/personalize/ that does something similar for gnome 3.38 but doesn't work on my version (42).

Thanks

lassekongo83 commented 2 years ago

GTK is separate from gnome-shell. It's not as easy. See https://www.reddit.com/r/gnome/comments/vj2fjq/libadwaita_adwgtk3_gtk_named_colors/idtzahs/ on how to.

Raubion commented 2 years ago

Is this they only way? Because I found another post on Reddit explaining how to change the top panel. It seems easier. It suggests to create a file in ~/.themes/YourTheme/gnome-shell/gnome-shell.css containing:

`#panel { background-color: green; }

panel:overview { background-color: blue; }`

The shell theme can then be enabled via the Tweak tool. I've tried it and it works, but I can't seem to find the other parts. But wouldn't this be more like your method to create adw-colors? Any idea where to find the other parts? Or do you know them?

lassekongo83 commented 2 years ago

You can change gnome-shell as you described, but it does not support GTK specific CSS. (Like @define-color). It doesn't even support normal CSS variables. Extracting parts from the gnome-shell theme is just time consuming. It's simpler to work with the scss by simply editing the _colors.scss file from the default shell theme and recompile it. At least in that file you have access to all the color variables. $selected_bg_color for accent color for example. (But then I also assume you will need inkscape to change the accent color in some of the image assets as well.)

Raubion commented 2 years ago

Ah right, that's a shame. I figured if I could find the variables for the colors of the dropdown menu of the clock with the notifications and of the menu with the settings and logoff options as well as the cards, buttons and the accent color, I'd be good. Then we could easily make cool themes where shell and libadwaita matched. I did find the variable for the overview and activities, so thought I was close ;)