[Gambas-user] Theme Colors under QT5

Claus Dietrich claus.dietrich at freenet.de
Mon Apr 3 13:04:34 CEST 2023


Hi

One motive to develop an own custom Control button was the unpredictable 
rendering of the background color of the native Gambas button under QT5. 
In order to obtain a default coloring which depends on the current 
theme, I use Color.ButtonBackground as background color for the new 
button. But to my surprise this color looks totally different than the 
background color of the native Gambas button. Must this also be seen as 
a problem of the themes (as claimed for the unpredictable background 
rendering at QT5)? Can a theme resp. QT provide a different (wrong?) 
color than the one its is actually using? How reliable are the other 
theme-dependent colors provided by the color-class?

When I changed to gb.gtk3 the button background color of the native 
button and my custom control button look identical.

Best regards

Claus





More information about the User mailing list