Background color of push-buttons in GTK
Hi.
We have a small notification window which uses the background color to
indicate status: green, orange or red, and a short message text in the
foreground color.
However, setting the background color has ceased to work in recent
years. In at least Ubuntu 16.04 and Debian 9.4, the background remains
the default gray. In an old Ubuntu 14.04 (running in a full screen VM
on a mac), however, the background is green, as expected.
My standard lisp is still LW7.0, but the behaviour is the same on LW7.1
(I haven't installed the 7.1.1 patch yet). The Ubuntu 16.04 box (my
primary) is running KDE, The Debian box has Gnome, I believe, and the
Ubuntu 14.04 VM is running Compiz.
LW reports the same GTK-versions on both of the Ubuntus:
CL-USER> (format nil "~a.~a" lwgtk:*gtk-major-version* lwgtk:*gtk-minor-version*)
"2.24"
while the Debian box reports "2.2".
A minimal code-snippet displaying the behaviour:
(capi:contain
(capi:define-interface status-button ()
()
(:panes
(status/button capi:push-button
:text "Status OK"
:foreground :white
:background :forestgreen)))
In reality, there is also a background update process that does
(setf (simple-pane-background status/button) color)
to change the color at runtime.
Does anyone know why the background color is not green on some of the
displays? Or even better - how we can fix it, short of reverting to an
ancient OS? I have tried all the color/theme stuff I could think of in
the settings on my KDE Ubuntu 16.04, to no avail.
--
Mvh/Regards
Peder O. Klingenberg
Netfonds Bank AS
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html