GTK theme preferences - Customize GTK themes

Forum rules
Before you post please read this

GTK theme preferences - Customize GTK themes

Postby satya164 on Wed Sep 05, 2012 6:59 pm

I've made a GTK theme configuration tool that allows anyone to change some basic elements of a GTK theme easily (both GTK2 and GTK3) with a simple interface. This works for any theme (If doesn't work correctly with a theme, please report bug here https://github.com/satya164/gtk-theme-config/issues).

Features
  • Customize selected background color
  • Customize Xfce panel, Gnome panel and Unity panel
  • Customize menu colors

Image

Installation
It is available in the Shimmer Project PPA. So to install it, just run the following,

Code: Select all
sudo add-apt-repository ppa:shimmerproject/ppa
sudo apt-get update
sudo apt-get install gtk-theme-config


After installation, you can find it in the menu with the name "GTK theme preferences"

You can read more about it here http://worldofgnome.org/customizing-gtk-themes-just-got-easier/, here http://www.webupd8.org/2012/09/customize-gtk3-gtk2-theme-colors-using.html and here https://wiki.ubuntu.com/Xubuntu/Roadmap/Specifications/R/ThemeEditor.

The app is also on GitHub https://github.com/satya164/gtk-theme-config.

I currently need to implement translations into the app. Any help will be appreciated :D
Last edited by satya164 on Thu Sep 06, 2012 7:55 am, edited 2 times in total.
Google+ | Facebook | deviantArt
Fedora Utils - Tweak your Fedora
Minty Colors - A Chameleon theme for Cinnamon
satya164
Level 2
Level 2
 
Posts: 60
Joined: Thu Jan 21, 2010 5:42 pm
Location: Orissa, India

Linux Mint is funded by ads and donations.
 

Re: GTK theme preferences

Postby GeneC on Wed Sep 05, 2012 7:50 pm

A most excellent tool... :D
Thanks much for making this Satya. In the past I have struggled trying to change various colors of themes, only to suceed a few times, but mess up first.
Just tried it out, and it works perfectly.
Just one question? Does the 'revert' option return everything back to default, or just your last change?
Going to have fun playing with this...
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

LMDE (Cinnamon)
Debian (Gnome Shell 3.8.4 - Testing)
Siduction (XFCE -Debian SID)
Makulu 5 (XFCE-Testing)
User avatar
GeneC
Level 6
Level 6
 
Posts: 1464
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: GTK theme preferences

Postby satya164 on Wed Sep 05, 2012 7:53 pm

GeneC wrote:A most excellent tool... :D
Thanks much for making this Satya. In the past I have struggled trying to change various colors of themes, only to suceed a few times, but mess up first.
Just tried it out, and it works perfectly.
Just one question? Does the 'revert' option return everything back to default, or just your last change?
Going to have fun playing with this...

The revert button resets everything back to defaults.
Google+ | Facebook | deviantArt
Fedora Utils - Tweak your Fedora
Minty Colors - A Chameleon theme for Cinnamon
satya164
Level 2
Level 2
 
Posts: 60
Joined: Thu Jan 21, 2010 5:42 pm
Location: Orissa, India

Re: GTK theme prefernces

Postby GeneC on Wed Sep 05, 2012 8:01 pm

Very nice.
Thanks again.

A note to LMDE users.
I just successfully installed the .deb (borrowed from my Maya13 install) in LMDE/SID. It installed with no other dependencies.
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

LMDE (Cinnamon)
Debian (Gnome Shell 3.8.4 - Testing)
Siduction (XFCE -Debian SID)
Makulu 5 (XFCE-Testing)
User avatar
GeneC
Level 6
Level 6
 
Posts: 1464
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: GTK theme prefernces

Postby wyrdoak on Wed Sep 05, 2012 8:16 pm

Nice tool! I'm just one of those people that don't like a background around my desktop icon text in Xfce so had to go into the file and remove the bg settings for the desktop text.

FIO: If you need a color picker, you can ether use the one in GIMP or use Gpick to get the color codes you need.

Good work
-Dell Mini Netbook-Atom CPU-N270-1.60ghz; 16gbs mini ePCI PATA SSD
RAM- 1gbs-(Maya-Xfce) LInux 3.2.0.57-generic(i686)
SolydX (32bit)
User avatar
wyrdoak
Level 6
Level 6
 
Posts: 1310
Joined: Thu May 19, 2011 1:32 pm
Location: USA

Re: GTK theme prefernces

Postby Oscar799 on Thu Sep 06, 2012 4:16 am

Moved here by moderator

I've "stickied" this
Here is what webupd8 has to say
http://www.webupd8.org/2012/09/customiz ... using.html
Image
"Don't fix it if it ain't broken,don't break it if you can't fix it" Husse
Registered Linux User #511789
User avatar
Oscar799
Level 18
Level 18
 
Posts: 8700
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: GTK theme prefernces

Postby satya164 on Thu Sep 06, 2012 7:53 am

Oscar799 wrote:Moved here by moderator

I've "stickied" this
Here is what webupd8 has to say
http://www.webupd8.org/2012/09/customiz ... using.html


Thanks for the sticky :D
Google+ | Facebook | deviantArt
Fedora Utils - Tweak your Fedora
Minty Colors - A Chameleon theme for Cinnamon
satya164
Level 2
Level 2
 
Posts: 60
Joined: Thu Jan 21, 2010 5:42 pm
Location: Orissa, India

Re: GTK theme preferences - Customize GTK themes

Postby palo on Thu Sep 06, 2012 4:47 pm

It sounds too good to be true - really must have missed something though. The only thing I could get a change on was Adwaita theme (widgets, menu) could not get any changes in any other themes and none of the panels. :cry:
~/mintmaya/xfce/enlightenment
Help Vampires: A Spotter's Guide
User avatar
palo
Level 4
Level 4
 
Posts: 418
Joined: Mon Jun 25, 2012 7:28 am
Location: Walking on sunshine

Re: GTK theme preferences - Customize GTK themes

Postby satya164 on Thu Sep 06, 2012 4:50 pm

palo wrote:It sounds too good to be true - really must have missed something though. The only thing I could get a change on was Adwaita theme (widgets, menu) could not get any changes in any other themes and none of the panels. :cry:

Are you sure that you turned the "Custom widgets" toggle to "ON"?
Google+ | Facebook | deviantArt
Fedora Utils - Tweak your Fedora
Minty Colors - A Chameleon theme for Cinnamon
satya164
Level 2
Level 2
 
Posts: 60
Joined: Thu Jan 21, 2010 5:42 pm
Location: Orissa, India

Re: GTK theme preferences - Customize GTK themes

Postby palo on Thu Sep 06, 2012 5:32 pm

satya164 wrote:
palo wrote:It sounds too good to be true - really must have missed something though. The only thing I could get a change on was Adwaita theme (widgets, menu) could not get any changes in any other themes and none of the panels. :cry:

Are you sure that you turned the "Custom widgets" toggle to "ON"?

Yes - turned it on for each theme I attempted - logged out - sometimes even rebooted for extra measure. It must have been working but only for the one like I said. Thank you for this though - I would really love to have it working as expected.
~/mintmaya/xfce/enlightenment
Help Vampires: A Spotter's Guide
User avatar
palo
Level 4
Level 4
 
Posts: 418
Joined: Mon Jun 25, 2012 7:28 am
Location: Walking on sunshine

Re: GTK theme preferences - Customize GTK themes

Postby satya164 on Thu Sep 06, 2012 5:34 pm

palo wrote:
satya164 wrote:
palo wrote:It sounds too good to be true - really must have missed something though. The only thing I could get a change on was Adwaita theme (widgets, menu) could not get any changes in any other themes and none of the panels. :cry:

Are you sure that you turned the "Custom widgets" toggle to "ON"?

Yes - turned it on for each theme I attempted - logged out - sometimes even rebooted for extra measure. It must have been working but only for the one like I said. Thank you for this though - I would really love to have it working as expected.


Can you give the output of
Code: Select all
cat ~/.config/gtk-3.0/gtk.css

and
Code: Select all
gsettings get org.gnome.desktop.interface gtk-color-scheme


Also run the tool from terminal and see any error messages.
Code: Select all
gtk-theme-config


Also try to reset by pressing "Revert" (with the toggle on) and try again.

Thanks.
Google+ | Facebook | deviantArt
Fedora Utils - Tweak your Fedora
Minty Colors - A Chameleon theme for Cinnamon
satya164
Level 2
Level 2
 
Posts: 60
Joined: Thu Jan 21, 2010 5:42 pm
Location: Orissa, India

Re: GTK theme preferences - Customize GTK themes

Postby palo on Thu Sep 06, 2012 7:27 pm

cat ~/.config/gtk-3.0/gtk.css
cat: /home/test/.config/gtk-3.0/gtk.css: No such file or directory

gsettings get org.gnome.desktop.interface gtk-color-scheme
''
No errors running from terminal.
Also try to reset by pressing "Revert" (with the toggle on) and try again.


Tried this but no change.
~/mintmaya/xfce/enlightenment
Help Vampires: A Spotter's Guide
User avatar
palo
Level 4
Level 4
 
Posts: 418
Joined: Mon Jun 25, 2012 7:28 am
Location: Walking on sunshine

Re: GTK theme preferences - Customize GTK themes

Postby satya164 on Fri Sep 07, 2012 5:07 pm

palo wrote:cat ~/.config/gtk-3.0/gtk.css
cat: /home/test/.config/gtk-3.0/gtk.css: No such file or directory

gsettings get org.gnome.desktop.interface gtk-color-scheme
''
No errors running from terminal.
Also try to reset by pressing "Revert" (with the toggle on) and try again.


Tried this but no change.


Hmm... I'm not sure why it is not working...

You need to click apply after every change, are you sure you're doing it right? Because if you have "Custom widgets: turned "ON" and clicked "Apply" the gtk.css file should have been there.

Also if you change the "Selected background color" and click "Apply" the gsettings command should return a value.
Google+ | Facebook | deviantArt
Fedora Utils - Tweak your Fedora
Minty Colors - A Chameleon theme for Cinnamon
satya164
Level 2
Level 2
 
Posts: 60
Joined: Thu Jan 21, 2010 5:42 pm
Location: Orissa, India

Re: GTK theme preferences - Customize GTK themes

Postby palo on Fri Sep 07, 2012 6:06 pm

Hi!
Also if you change the "Selected background color" and click "Apply" the gsettings command should return a value.

What kind of value and where?

Since the last post I have tried several things. I have found that Cinnamon sometimes gets its panties all in a bunch over themes and permissions so I changed to more relaxed permissions without effect and also ran as root without effect. Once I had the output below but then ran again with no output.
Code: Select all
** (gtk-theme-config:1764): WARNING **: The connection is closed

** (process:1769): WARNING **: The connection is closed

** (process:1769): WARNING **: The connection is closed

(gconftool-2:1772): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Error setting value: No D-BUS daemon running


** (process:1773): CRITICAL **: Failed to init libxfconf: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.


Now I have things so much changed I will start with a fresh install (with VBox of course) it will take some time. Have you actually run this with Cinnamon?
~/mintmaya/xfce/enlightenment
Help Vampires: A Spotter's Guide
User avatar
palo
Level 4
Level 4
 
Posts: 418
Joined: Mon Jun 25, 2012 7:28 am
Location: Walking on sunshine

Re: GTK theme preferences - Customize GTK themes

Postby Monsta on Thu Sep 27, 2012 10:06 am

Is there a roadmap for this tool? (i.e. what's planned in addition to color customizing)
Monsta
Level 8
Level 8
 
Posts: 2022
Joined: Fri Aug 19, 2011 3:46 am

Re: GTK theme preferences - Customize GTK themes

Postby satya164 on Thu Sep 27, 2012 12:32 pm

Monsta wrote:Is there a roadmap for this tool? (i.e. what's planned in addition to color customizing)

There is no roadmap. But suggestions are welcome.
Google+ | Facebook | deviantArt
Fedora Utils - Tweak your Fedora
Minty Colors - A Chameleon theme for Cinnamon
satya164
Level 2
Level 2
 
Posts: 60
Joined: Thu Jan 21, 2010 5:42 pm
Location: Orissa, India

Re: GTK theme preferences - Customize GTK themes

Postby Z-Xylon on Fri Nov 16, 2012 2:47 pm

I was thinking of making something that could do this, but I'm glad you beat me to it, it's much better than my virtual version.

There is no roadmap. But suggestions are welcome.


Maybe something to change the Activities text/icon?
This is blue. And this is my blog about technology and stuff.
Z-Xylon
Level 1
Level 1
 
Posts: 26
Joined: Sun Oct 28, 2012 6:43 am

Re: GTK theme preferences - Customize GTK themes

Postby bug67 on Tue Jan 15, 2013 11:33 am

I gotta say, I'm a little confused here. I downloaded and installed the GTK Theme Preference tool and chose a color to change everything (or so I thought) to. The problem I'm coming up against is, there doesnt appear to be any consistancy. Some elements are the color I chose and some arent. See screenshot.

There has got to be a way to make all the elements consistant. Ubuntu Tweak? Gconf-Editor? While I'm at it, I wish there was a way to change the little "x" check mark buttons to radio buttons like Clearlooks used to do as well. I have the MATE edition running on a couple of other machines but, I'd really like to go to Cinnamon as I think it is the way things are going. Any help?

Image
Compaq Presario V3020US Linux Mint 13 (Maya)
CPU: Intel Core Duo 1.67 GHz
RAM: 2.0 GiB HDD: 320 GiB 7200 RPM
http://www.vegetablesandwich.com/
User avatar
bug67
Level 2
Level 2
 
Posts: 59
Joined: Thu Feb 25, 2010 10:11 am
Location: Eagle River, AK

Re: GTK theme preferences - Customize GTK themes

Postby satya164 on Tue Jan 15, 2013 11:43 am

bug67 wrote:I gotta say, I'm a little confused here. I downloaded and installed the GTK Theme Preference tool and chose a color to change everything (or so I thought) to. The problem I'm coming up against is, there doesnt appear to be any consistancy. Some elements are the color I chose and some arent. See screenshot.

There has got to be a way to make all the elements consistant. Ubuntu Tweak? Gconf-Editor? While I'm at it, I wish there was a way to change the little "x" check mark buttons to radio buttons like Clearlooks used to do as well. I have the MATE edition running on a couple of other machines but, I'd really like to go to Cinnamon as I think it is the way things are going. Any help?

Image


Hi. May be there is problem with the theme. Which theme are you using? Also did you try logging out and logging in back?
Google+ | Facebook | deviantArt
Fedora Utils - Tweak your Fedora
Minty Colors - A Chameleon theme for Cinnamon
satya164
Level 2
Level 2
 
Posts: 60
Joined: Thu Jan 21, 2010 5:42 pm
Location: Orissa, India

Re: GTK theme preferences - Customize GTK themes

Postby d00med on Tue Jan 15, 2013 11:56 am

bug67 wrote:I gotta say, I'm a little confused here. I downloaded and installed the GTK Theme Preference tool and chose a color to change everything (or so I thought) to. The problem I'm coming up against is, there doesnt appear to be any consistancy. Some elements are the color I chose and some arent. See screenshot.

There has got to be a way to make all the elements consistant. Ubuntu Tweak? Gconf-Editor? While I'm at it, I wish there was a way to change the little "x" check mark buttons to radio buttons like Clearlooks used to do as well. I have the MATE edition running on a couple of other machines but, I'd really like to go to Cinnamon as I think it is the way things are going. Any help?


The windows that are different look like ones you've opened as root. Perhaps try running the theme editor as root also?

You can change any aspect of a GTK theme with CSS, by editing the GTK3 theme's gtkwidget.css file.
d00med
Level 4
Level 4
 
Posts: 330
Joined: Fri Nov 26, 2010 9:55 am

Linux Mint is funded by ads and donations.
 
Next

Return to Themes, Icons, & Wallpaper

Who is online

Users browsing this forum: No registered users and 1 guest