[Gambas-user] Menubar background only changes to Form.Background on top level window (gtk3)
Bruce Steers
bsteers4 at gmail.com
Tue Jan 23 19:52:15 CET 2024
<snip>
> Are you creating the forms with the IDE and then changing the colors
> programmatically? Or are you also creating the forms
> > programmatically.
>
> Okay, I just tried with GTK3; setting the color properties
> programmatically.
>
> The menu-bar background is correctly set according to the form's
> background for the top-level and child windows. But, as you
> stated, the buttons do not respect the form's Foreground property.
>
Yes I made a test application using the ide to make the forms and set
colors (programmatically) and it worked as expected on gtk3
but the program i am working on does not for some reason.
I've attached it. (Sorry it's tar.gz, i made fool-gmail archive but it was
+250k so would bounce anyway)
It's a W.I.P. very incomplete but just about working Klotski type game.
The main windows are FMain and FMakeBoard and i have used a simple
Me.Background = Color.DarkGray and Me.Foreground = Color.White to set top
level colors on both forms _SetColors() method.
If i run with qt then menubar bg is grey
if i run with gtk3 the menubar text changes to white but the background
does not so i cannot see the text.
I have no idea why it does not work on this application but does if i make
a simple tester that does the same.
and sorry for any confusion about the top level/not top level situation, i
did say in the second post that i discovered that was not the reason. for
some reason now the window that it did work on now does not (i changed the
code a bit)
My workaround for the problem was to make a top level panel for each form
and set the colors of that and not the main form so the menubar remained
the desktop default colors.
But this menubar problem and gtk not setting all control text colors the
same as qt does does seem like a bug in gb.gtk3 component somewhere.
Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20240123/c3625012/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Glotski-0.0.1.tar.gz
Type: application/gzip
Size: 201091 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20240123/c3625012/attachment-0001.gz>
More information about the User
mailing list