<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Am 03.04.23 um 13:35 schrieb Benoit
Minisini:<br>
</div>
<blockquote type="cite"
cite="mid:c8015527-8979-a8d6-d27f-5f71b0fd6698@gambas-basic.org">Le
03/04/2023 à 13:04, Claus Dietrich a écrit :
<br>
<blockquote type="cite">Hi
<br>
<br>
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?
<br>
<br>
When I changed to gb.gtk3 the button background color of the
native button and my custom control button look identical.
<br>
<br>
Best regards
<br>
<br>
Claus
<br>
<br>
</blockquote>
<br>
Which theme gives you this result?
<br>
<br>
</blockquote>
<p>It is the default Mint-y theme on Mint 20.3 Cinnamon. It provides
&H00F0F0F0 as ButtonBackground. I attached a screenshot which
shows the difference between a very basic self-made button with
backcolor $H00F0F0F0 and a native button under QT5.</p>
<p>Regards</p>
<p>Claus<br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>