[Gambas-user] Theme Colors under QT5

Benoit Minisini benoit.minisini at gambas-basic.org
Mon Apr 3 13:35:57 CEST 2023


Le 03/04/2023 à 13:04, Claus Dietrich a écrit :
> 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
> 

Which theme gives you this result?

-- 
Benoît Minisini.



More information about the User mailing list