help customizing Adwaita

Style your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dondizzurp

help customizing Adwaita

Post by dondizzurp »

i'm editing the adwaita theme. instead of the bright blue, i am making the colour a more mild greenish-blue.
i changed the colour codes as well as some PNG and SVG images

everything seemed to work but then i realized that some tabs/checkmarks/buttons/etc didnt change even though i modified the images. right-clicking on the desktop brings up an unchanged context menu. the file manager is also unchanged (menu, highlighting, etc). its weird because all programs show the changes, but the desktop and file manager dont.

i placed the theme in both my user theme folder as well as the system theme folder, tried them both with no luck. i used bleachbit to remove all temporary files both as user and as root and still no luck. what could be the problem? where is it getting the stock colour codes and images from? it doesnt make sense since i changed these images files. really weird issue..



EDIT: i think it has to do with /Adwaita/gtk-3.0/gtk-dark.css and gtk.css
these file has just one line each
@import url("resource:///org/gnome/adwaita/gtk-main-dark.css");
@import url("resource:///org/gnome/adwaita/gtk-main.css");

is this the issue? how would i go about fixing this?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
caribriz

Re: help customizing GTK theme

Post by caribriz »

I'd like to know how to do this as well.

It may not be exactly what you want - but a "workaround" for the right-click context menu and the highlights in file manager
(if you haven't already tried it)

Install dconf-tools from Software Manager
After installation, open Menu > System Tools > dconf-editor
Click down arrow next to org > gnome > desktop > click interface
Click space to the right of gtk-color-scheme, and enter

Code: Select all

selected_bg_color:#EF629D
press enter
Restart Cinnamon
or logout/in

That selected_bg_color code resulted in this:
dconf Adwaita.png
dondizzurp

Re: help customizing GTK theme

Post by dondizzurp »

thanks
i tried that and it works with every other theme except Adwaita.. this theme is so hard to modify

this is so annoying. half the stuff is themed while the rest is stock.

do you mind showing me whats in your /adwaita/gtk-3.0 folder?


where is this "resource:///org/gnome/adwaita/gtk-main.css" file located?
caribriz

Re: help customizing GTK theme

Post by caribriz »

Sure -

Contents of
/usr/share/themes/Adwaita/gtk-3.0

gtk.css
@import url("resource:///org/gnome/adwaita/gtk-main.css");

gtk.gresource
can't be opened with gedit

gtk-dark.css
@import url("resource:///org/gnome/adwaita/gtk-main-dark.css");

settings.ini
[Settings]
gtk-color-scheme = "base_color:#ffffff\nbg_color:#ededed\ntooltip_bg_color:#343434\nselected_bg_color:#4a90d9\ntext_color:#2e3436\nfg_color:#2e3436;\ntooltip_fg_color:#ffffff\nselected_fg_color:#ffffff"
gtk-auto-mnemonics = 1
gtk-visible-focus = automatic

I searched for that as well - it's well hidden :?
"resource:///org/gnome/adwaita/gtk-main.css"

This may be of interest:
http://ubuntuforums.org/showthread.php?t=2061527
dondizzurp

Re: help customizing GTK theme

Post by dondizzurp »

caribriz wrote:Sure -

Contents of
/usr/share/themes/Adwaita/gtk-3.0

gtk.css
@import url("resource:///org/gnome/adwaita/gtk-main.css");

gtk.gresource
can't be opened with gedit

gtk-dark.css
@import url("resource:///org/gnome/adwaita/gtk-main-dark.css");

settings.ini
[Settings]
gtk-color-scheme = "base_color:#ffffff\nbg_color:#ededed\ntooltip_bg_color:#343434\nselected_bg_color:#4a90d9\ntext_color:#2e3436\nfg_color:#2e3436;\ntooltip_fg_color:#ffffff\nselected_fg_color:#ffffff"
gtk-auto-mnemonics = 1
gtk-visible-focus = automatic

I searched for that as well - it's well hidden :?
"resource:///org/gnome/adwaita/gtk-main.css"

This may be of interest:
http://ubuntuforums.org/showthread.php?t=2061527
mine looks the same, except of course for selected_bg_color
no idea how dconf worked for you

thanks for the help though!
caribriz

Re: help customizing GTK theme

Post by caribriz »

Yeah, sorry - not much help :)
I don't know why dconf-editor didn't work for you - I thought that it would "override" any theme settings :?

Been looking around, but haven't found any solution yet.
Hopefully, someone will come along with some ideas. If you find out - please post back - I'm interested in this too.
dondizzurp

Re: help customizing GTK theme

Post by dondizzurp »

caribriz wrote:Yeah, sorry - not much help :)
I don't know why dconf-editor didn't work for you - I thought that it would "override" any theme settings :?

Been looking around, but haven't found any solution yet.
Hopefully, someone will come along with some ideas. If you find out - please post back - I'm interested in this too.

no problem.
im gonna keep looking around.
from what ive been reading, adwaita is really hard to modify and i think a big reason is that these .css and .png/.svg files are inaccessible
tried opening the imported .css with no luck.
ill get back to this if i find a solution
caribriz

Re: help customizing Adwaita

Post by caribriz »

I found something you might be able to work with -

https://launchpad.net/ubuntu/precise/+s ... s-standard
https://launchpad.net/ubuntu/precise/+s ... rig.tar.xz

This is the contents of Adwaita theme gtk-3.0 folder with those "resource" files already unpacked,
from the file linked to above - gnome-themes-standard_3.4.1.orig.tar.xz:
New Adwaita download gtk-3.0 folder contents.png
(Note: I'm currently using LM13 Cinnamon - the above image is not Adwaita theme - it is my own tweak of the default Mint-X theme.)

Other info:
This shows how to "extract" those resource files -
http://ubuntuforums.org/showthread.php?t=2061527
post #6

Some explanation:
http://funsurf-blog.blogspot.in/2012/06 ... theme.html
http://developer.gnome.org/gio/2.32/gresource-tool.html

I haven't been able to get it to work yet.
Hopefully, you'll have more success - let me know how you go :wink:
Last edited by caribriz on Thu Feb 14, 2013 3:03 am, edited 1 time in total.
dondizzurp

Re: help customizing Adwaita

Post by dondizzurp »

caribriz wrote:I found something you might be able to work with -

https://launchpad.net/ubuntu/precise/+s ... s-standard
https://launchpad.net/ubuntu/precise/+s ... rig.tar.xz

This is the Adwaita theme with those "resource" files already unpacked,
eg. you have this in the gtk-3.0 folder:
New Adwaita download gtk-3.0 folder contents.png
Note: I'm currently using LM13 Cinnamon.

Other info:
This shows how to "extract" those resource files -
http://ubuntuforums.org/showthread.php?t=2061527
post #6

Some explanation:
http://funsurf-blog.blogspot.in/2012/06 ... theme.html
http://developer.gnome.org/gio/2.32/gresource-tool.html

I haven't been able to get it to work yet.
Hopefully, you'll have more success - let me know how you go :wink:
nice :D
i found these files as well however im still having difficulty with getting it to work LOL.. i might just give up and recreate the entire theme :p
im still gonna play around with it whenever i have free time.. never hurts to learn
Locked

Return to “Themes, Icons & Wallpaper”