Re: Set colour of title bar for active window?
Walter Hurry <[email protected]> Fri, 20 Jun 2014 11:38:39 +0000 (UTC)
| Newsgroups | gmane.comp.window-managers.icewm.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 18 Jun 2014 16:12:47 -0400, Walter Dnes wrote:
> On Wed, Jun 18, 2014 at 05:20:13PM +0100, Walter Hurry wrote
>> I started using IceWM a couple of days ago and am very impressed with
>> it. Many thanks to those concerned for an excellent application!
>>
>> I have almost got it set up the way I want it, but a few minor issues
>> remain. Here's the first:
>>
>> The theme is Nitrogen, downloaded from box-look.org and the gtk theme
>> is oxygen-gtk. How do I set the colour of the active window title bar?
>> At the moment it's a rather dull grey, and indistinguishable from
>> inactive windows.
>
> Preliminary setup: In the file ~/.icewm/theme you need to have two
> themes available with one of them being commented out. I'll explain
> later. In my case, the file containes the two lines...
>
> Theme="mytheme/my.theme"
> #Theme="icedesert/default.theme"
>
> Your themes will probably be different.
>
> I just did a bit of testing, and it can get non-intuitive, to say the
> least. Question... do you have files titleAB.xpm and titleAT.xpm in the
> theme directory? If so, then they can't be overridden. You have 2
> options.
>
> a) The first is to rename or delete those 2 files. Then you can enter
> lines in ~/.icewm/preferences or in ~/.icewm/prefoverride like so...
>
> ColorActiveTitleBar="rgb:00/00/A0"
> ColorActiveTitleBarText="rgb:FF/FF/FF"
>
> b) The second option is to edit those files *WITH A TEXT EDITOR* (YES).
> XPM files are text files. See
> http://en.wikipedia.org/wiki/X_PixMap#XPM3 for details. In my case, the
> file titleAB.xpm consists of...
>
> /* XPM */
> static char * titleAB_xpm[] = {
> "1 20 2 1",
> " c None",
> ". c #0000A0",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> ".",
> "."};
>
> Replace #0000A0 with your desired colour, and activate the modified
> theme. This is another pain. When you restart ICEWM, it does not
> re-read the theme data, *UNLESS THE NAME OF THE THEME HAS CHANGED*. So
> to activate the modified theme I have to...
>
> * edit my theme (preferences or xpm files)
>
> * change ~/.icewm/theme to read #Theme="mytheme/my.theme"
> Theme="icedesert/default.theme"
>
> * restart ICEWM ( killall -HUP /usr/bin/icewm )
>
> * change ~/.icewm/theme to read Theme="mytheme/my.theme"
> #Theme="icedesert/default.theme"
>
> * restart ICEWM ( killall -HUP /usr/bin/icewm )
>
> I suppose that exiting X and restarting it would also work, but that's
> rather heavy-handed.
Thanks for the replies, Walter and Adam. With your help I have got almost
there. I had to edit:
titleAB.xpm
titleAL.xpm
titleAM.xpm
titleAP.xpm
titleAR.xpm
titleAS.xpm
titleAT.xpm
in ~/icewm/themes/Nitrogen.
The only problem remaining is that I can't see a way to change the
background of the buttons on the active window without changing the
background of the buttons on inactive windows. I've tried creating a
titleAJ.xpm and a titleAQ.xpm, but they seem to have no effect. Any
thoughts?
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems