bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] Changing list preferences in gnubg.gtkrc


From: Jim Segrave
Subject: [Bug-gnubg] Changing list preferences in gnubg.gtkrc
Date: Sun, 25 Feb 2007 14:29:58 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Some undocumented things you can use gnubg.gtkrc to do:

Setting the background colour in all the windows which display text
except the game list:

style "default" 
{
...
base[NORMAL] = { 0xffff, 0xffff, 0xffff}
...

============

Setting the colour of selected moves or selected text in the above
windows. Gnubg will always use the foreground colour for the selected
move details (see movedone, below), even when selected. It will always
use the background colour (set above) for the win/lose stats when a
selection is made. When you've selected some line or lines and the
cursor moves out of gnubg or you make a selection in another window,
the base[ACTIVE] colour is used instead. It helps to choose a colour
which leaves the win/lose readable for both - these two are bright
green when selected and the window is active (win/lose is in white
text), a paler green when selected and not active (win/lose is in black)

style "default" 
{
...
base[SELECTED]= { 0x0000, 0xffff, 0x0000}
base[ACTIVE]   = { 0x8000, 0xffff, 0x8000}

============

Selecting the colour of win/lose text in the analysis window
If you don't do this, it uses a grey background from one of the button
states. This particular choice is black, but others work fairly well
(see comments above about selected lines)

Add:

style "moveana"
{
  fg[NORMAL]     = { 0x0000, 0x0000, 0x0000 }
}

widget "*.gnubg-move-winlossfg" style "moveana"

=============

Setting the colour of the move actually played (ths is commented in
the gnubg.gtkrc file)

style "movedone" = "movelabel"
{
  fg[ACTIVE]     = { 0x0000, 0x0000, 0xffff }
}

widget "*.gnubg-move-done" style "movedone"


-- 
Jim Segrave           address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]