Hi!

GNOME applets now come with "symbolic" icons. They are chroma-keyed SVG icons. The final color is decided by the theme. In my case, I am using a black background for the systray and my GNOME theme (the default one, Adwaita) is expecting a clear background and display black icons which are therefore invisible. I have searched a bit how to change this without messing with the whole theme and I have discovered this:

 https://mail.gnome.org/archives/commits-list/2010-April/msg09154.html

My understanding is that if I set _NET_SYSTEM_TRAY_COLORS property to white, I will get the appropriate effect. With the help of gdb and three hours later, I came with the following thingy to get what I want:

xprop -id 0xc00002 -format _NET_SYSTEM_TRAY_COLORS 32c -set _NET_SYSTEM_TRAY_COLORS 65535,65535,65535,65535,8670,8670,65535,32385,0,8670,65535,8670

Then, I restart my applet and, bingo, I get the appropriate color. I don't understand why I should restart the applet while GTK has code to detect a change to this atom but this is not very important. Now my questions:

0xc00001 is awesome. I suppose 0xc00002 is related. How could I compute it? Maybe that's the first screen (for GTK, this "window" is related to a screen)?

xwininfo -id 0xc00002

xwininfo: Window id: 0xc00002 (has no name)

  Absolute upper-left X:  1324
  Absolute upper-left Y:  0
  Relative upper-left X:  1324
  Relative upper-left Y:  0
  Width: 42
  Height: 14
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1324+0  -0+0  -0-754  +1324-754
  -geometry 42x14+0+0

Second question: is there something cleaner than to call xprop to modify this property?

--
To unsubscribe, send mail to [email protected].

Reply via email to