Re: Set colour of title bar for active window?
Brought to you by:
captnmark
|
From: Walter D. <wal...@wa...> - 2014-06-18 20:46:56
|
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. -- Walter Dnes <wal...@wa...> |