[Gambas-user] Menubar background only changes to Form.Background on top level window (gtk3)

Bruce Steers bsteers4 at gmail.com
Mon Jan 22 21:47:37 CET 2024


I have a couple of issues in a GUi build...

Issue1
I can set Form Background / Foreground colors but then I get the following
behavior with gtk3...
the Menubar background color changes to correct color only on the top level
window but not other opened windows.
While the Foreground color changes on all windows.
Leaving a risk of having same color bg and fg on opened windows.

QT it all works as expected.

--------

The other issue is with various gui text rendering.
If i set Form.Foreground = Color.White
Then things like Labels,MenuButton and others change to white text. things
like Buttons/TogleButtons do not.
I have to add this code to make things render the correct text color...

  For Each c As Control In Me.Controls
    c.Foreground = Me.Foreground
  Next

But that's only a workaround and only viable if i have no explicit text
colors set.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20240122/ab6953a5/attachment.htm>


More information about the User mailing list