[Gambas-user] Theme Colors under QT5

T Lee Davidson t.lee.davidson at gmail.com
Mon Apr 3 16:06:39 CEST 2023

On 4/3/23 07:04, Claus Dietrich wrote:
> 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

Just FYI, Color.ButtonBackground looks identical to the background color of the native Gambas button on my system with the Qt5 
Breeze widget theme.


More information about the User mailing list