help customizing Adwaita

Forum rules
Before you post please read this

help customizing Adwaita

Postby dondizzurp on Thu Feb 07, 2013 3:14 pm

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 dondizzurp on Fri Feb 08, 2013 1:55 pm, edited 1 time in total.
dondizzurp
Level 1
Level 1
 
Posts: 11
Joined: Thu Dec 06, 2012 11:56 pm

Linux Mint is funded by ads and donations.
 

Re: help customizing GTK theme

Postby caribriz on Thu Feb 07, 2013 10:18 pm

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
dconf Adwaita.png (73.32 KiB) Viewed 853 times
Image
Desktop: C2D E6400 / Asus P5LD2SE / 2GB ram / Asus GeForce 210 / 320GB (WinXP) & 1TB (Mint - various)
Laptop: Asus A53E-SX1455V - i5 2450M / 4GB ram / Intel HD 3000 / 500GB (Win7/Mint 17 Cinnamon)
caribriz
Level 5
Level 5
 
Posts: 891
Joined: Mon Nov 28, 2011 7:43 am

Re: help customizing GTK theme

Postby dondizzurp on Fri Feb 08, 2013 12:21 am

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?
dondizzurp
Level 1
Level 1
 
Posts: 11
Joined: Thu Dec 06, 2012 11:56 pm

Re: help customizing GTK theme

Postby caribriz on Fri Feb 08, 2013 12:42 am

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
Image
Desktop: C2D E6400 / Asus P5LD2SE / 2GB ram / Asus GeForce 210 / 320GB (WinXP) & 1TB (Mint - various)
Laptop: Asus A53E-SX1455V - i5 2450M / 4GB ram / Intel HD 3000 / 500GB (Win7/Mint 17 Cinnamon)
caribriz
Level 5
Level 5
 
Posts: 891
Joined: Mon Nov 28, 2011 7:43 am

Re: help customizing GTK theme

Postby dondizzurp on Fri Feb 08, 2013 2:30 am

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!
dondizzurp
Level 1
Level 1
 
Posts: 11
Joined: Thu Dec 06, 2012 11:56 pm

Re: help customizing GTK theme

Postby caribriz on Fri Feb 08, 2013 4:17 am

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.
Image
Desktop: C2D E6400 / Asus P5LD2SE / 2GB ram / Asus GeForce 210 / 320GB (WinXP) & 1TB (Mint - various)
Laptop: Asus A53E-SX1455V - i5 2450M / 4GB ram / Intel HD 3000 / 500GB (Win7/Mint 17 Cinnamon)
caribriz
Level 5
Level 5
 
Posts: 891
Joined: Mon Nov 28, 2011 7:43 am

Re: help customizing GTK theme

Postby dondizzurp on Fri Feb 08, 2013 1:40 pm

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
dondizzurp
Level 1
Level 1
 
Posts: 11
Joined: Thu Dec 06, 2012 11:56 pm

Re: help customizing Adwaita

Postby caribriz on Fri Feb 08, 2013 6:16 pm

I found something you might be able to work with -

https://launchpad.net/ubuntu/precise/+source/gnome-themes-standard
https://launchpad.net/ubuntu/precise/+source/gnome-themes-standard/3.4.1-0ubuntu1.2/+files/gnome-themes-standard_3.4.1.orig.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
New Adwaita download gtk-3.0 folder contents.png (95.16 KiB) Viewed 803 times


(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/building-binary-for-gtk3-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.
Image
Desktop: C2D E6400 / Asus P5LD2SE / 2GB ram / Asus GeForce 210 / 320GB (WinXP) & 1TB (Mint - various)
Laptop: Asus A53E-SX1455V - i5 2450M / 4GB ram / Intel HD 3000 / 500GB (Win7/Mint 17 Cinnamon)
caribriz
Level 5
Level 5
 
Posts: 891
Joined: Mon Nov 28, 2011 7:43 am

Re: help customizing Adwaita

Postby dondizzurp on Fri Feb 08, 2013 6:48 pm

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

https://launchpad.net/ubuntu/precise/+source/gnome-themes-standard
https://launchpad.net/ubuntu/precise/+source/gnome-themes-standard/3.4.1-0ubuntu1.2/+files/gnome-themes-standard_3.4.1.orig.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/building-binary-for-gtk3-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
dondizzurp
Level 1
Level 1
 
Posts: 11
Joined: Thu Dec 06, 2012 11:56 pm

Linux Mint is funded by ads and donations.
 

Return to Themes, Icons, & Wallpaper

Who is online

Users browsing this forum: No registered users and 0 guests