I notice that the logout screen turns the screen kind of blue, rather than pulling a colour from the GTK theme (or even from the background colour). Also, the border around the dialog window is also blue. Could these be changed to reflect the colour of the GTK theme?
I don't know if this helps, but if it's not possible to get an appropriate color from the GTK+ theme, the color could at least be changed to a dark grey, which would achieve the same effect.
The problem is: Which Gtk theme color?
How about, in theme-speak, bg[SELECTED]? For all the themes I can think of, that would be a good choice. (In non-theme-speak, that's the background of selected text.)
bg[SELECTED] is bound to a widget class/name. So, use an existing Gtk widget class (e.g. query the background color of GtkWidget), or use a custom class?
Well I don't see a problem in using an existing class; like I said, bg[SELECTED] would be a good choice in all the themes I can think of. However, it may not. So, if you choose to create a new class, would it be possible at least to have a fallback to an existing one?
Created attachment 274 Patch changing the color to be taken from the realized window A workaround from GTK apparently not assigning theme colors properly to unrealized widgets and GtkEventBoxes. This patch realizes the window passed to the function, and uses it's bg[SELECTED] color as the background color in place of the EventBox's. A bug should probably be filed against GTK.
Its the correct behaviour for Gtk+, the style is attached when the widget is realized. The bug was in xfce4-session. Fixed with revision 16225.
Comment on attachment 274 Patch changing the color to be taken from the realized window Applied with revision 16225.
(In reply to comment #8) > (From update of attachment 274 ) > Applied with revision 16225. > Fixed...