Hi all, when I change the color style of my desktop, then the simbols in KSudoku dissapears, check this screenshots:<br><br>Default look:<br><a href="http://www.imagehosting.com/show.php/1769977_whitewndcolorsettings.png.html">http://www.imagehosting.com/show.php/1769977_whitewndcolorsettings.png.html</a><br>
<br>Problem:<br><a href="http://www.imagehosting.com/show.php/1769975_blackwndcolorsettings.png.html">http://www.imagehosting.com/show.php/1769975_blackwndcolorsettings.png.html</a><br><br><br>This patch solved that problem. This is the screenshot with the patch:<br>
<br><a href="http://www.imagehosting.com/show.php/1769976_solved.png.html">http://www.imagehosting.com/show.php/1769976_solved.png.html</a><br><br>In the patch I&#39;m using this lines to obtain the base color of the window:<br>
<br>//********************************<br>KColorScheme systemColorScheme(QPalette::Active);<br>QColor baseWndColor = systemColorScheme.background(KColorScheme::NormalBackground).color();<br>int luminance = 0.2126*baseWndColor.red() + 0.7152*baseWndColor.green() + 0.0722*baseWndColor.blue();<br>
if (luminance &gt; (255 / 2.0))<br>// set the color font/brush to black<br>else<br>// set the color font/brush to white<br>//********************************<br><br>Is that ok? or there is a better way?<br><br>If it&#39;s ok ... may I commit? ; )<br>
<br>Cheers,<br>Percy<br><br>pd: btw I already reported: <a href="http://bugs.kde.org/show_bug.cgi?id=162832">http://bugs.kde.org/show_bug.cgi?id=162832</a><br><br><br>