Jump to content

Photo

Change colors in gtk+ theme based on wallpaper

gtk+ xfce

2 replies to this topic

#1
duncan.britton

duncan.britton

    Member

  • Members
  • PipPip
  • 13 posts

A few weeks ago I read a post on some forum (I think the Arch Forums) that documented a piece of Python code that "selected" the color in a desktop wallpaper that was the most common in the wallpaper (or something to that effect) and incorporated that color into a gtk+ theme. This sort of behavior is similar to the taskbar and window borders in Windoge 8+ being colored based on the wallpaper currently set. I have lost the link and could not find it again in my brief ten minute searching of Google. I was wondering if anyone on here knows what I am talking about and could direct me to a page where I can learn more about this?

 

Thanks!

-- Duncan



#2
sputnik

sputnik

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

Life is too short for ugly desktops!

I'm with you Duncan, and I really love that cityscape you have in the desktops thread.

1st, I don't know of that which you ask.  Although I'm sure there is an easy way to find the predominant color in your picture in Gimp or something I don't know that either.  But it seems to me you can probably come close with just your eyeballs.

I imagine you have looked over Gnome Look and those sorts of collections for themes.

I use Emerald rather than GTK and it has the Emerald Theme Manager that allows you to set the colors, for one thing (many other options too).  Although it appears to me that Emerald is a (now) forgotten step-child of GTK I'm not aware of any such thing for GTK.  So I just find an Emerald theme at Gnome Look that's close enough then modify it.

Your question peaked my interest and I did find something that may be interesting though:

http://gnomecc.sourceforge.net/

Sounds like it may do what you want, sans the color picker.  Much like the Emerald Theme Manager.

I hope someone else can chime in with some better ideas.

 

Edit: This will find your predominant color


  • duncan.britton likes this

#3
duncan.britton

duncan.britton

    Member

  • Members
  • PipPip
  • 13 posts

Haha..I agree "Life is too short for ugly desktops." The cityscape in the desktops thread uses a wallpaper that I first saw used in Chrome OS. Here is a link to that wallpaper, if you are interested http://i.imgur.com/NDEjhMr.jpg. Thanks for the information and the link to the website. I will have to check those things out.





Reply to this topic



  



Also tagged with one or more of these keywords: gtk+, xfce

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users