------=_Part_14982_29683521.1212213257862
Content-Type: multipart/alternative;
boundary="----=_Part_14983_16145019.1212213257863"
------=_Part_14983_16145019.1212213257863
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Sorry, here is the patch ; )
On Sat, May 31, 2008 at 12:41 AM, Percy Camilo Trive=F1o Aucahuasi <
orgyforever@gmail.com> wrote:
> Hi all, when I change the color style of my desktop, then the simbols in
> KSudoku dissapears, check this screenshots:
>
> Default look:
> http://www.imagehosting.com/show.php/1769977_whitewndcolorsettings.png.ht=
ml
>
> Problem:
> http://www.imagehosting.com/show.php/1769975_blackwndcolorsettings.png.ht=
ml
>
>
> This patch solved that problem. This is the screenshot with the patch:
>
> http://www.imagehosting.com/show.php/1769976_solved.png.html
>
> In the patch I'm using this lines to obtain the base color of the window:
>
> //********************************
> KColorScheme systemColorScheme(QPalette::Active);
> QColor baseWndColor =3D
> systemColorScheme.background(KColorScheme::NormalBackground).color();
> int luminance =3D 0.2126*baseWndColor.red() + 0.7152*baseWndColor.green()=
+
> 0.0722*baseWndColor.blue();
> if (luminance > (255 / 2.0))
> // set the color font/brush to black
> else
> // set the color font/brush to white
> //********************************
>
> Is that ok? or there is a better way?
>
> If it's ok ... may I commit? ; )
>
> Cheers,
> Percy
>
> pd: btw I already reported: http://bugs.kde.org/show_bug.cgi?id=3D162832
>
>
>
------=_Part_14983_16145019.1212213257863
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Sorry, here is the patch ; )
------=_Part_14983_16145019.1212213257863--
------=_Part_14982_29683521.1212213257862
Content-Type: text/x-diff; name=valuelistwidget.diff
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fgvsgnuf0
Content-Disposition: attachment; filename=valuelistwidget.diff
LS0tIHBhdGNocy92YWx1ZWxpc3R3aWRnZXQuY3BwCTIwMDgtMDUtMzEgMDA6MDk6MDkuMDAwMDAw
MDAwIC0wNTAwCisrKyBrZ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W1fc2VsZWN0aW9uSXRlbSA9IG5ldyBRR3JhcGhpY3NSZWN0SXRlbSgtNC41LCAwLjUsIDks
IDksIDAsIG1fc2NlbmUpOwogCW1fc2VsZWN0aW9uSXRlbS0+c2V0UG9zKDAsIDApOwotCi0vLy8K
LSAgICBLQ29sb3JTY2hlbWUgc3lzdGVtQ29sb3JTY2hlbWUoUVBhbGV0dGU6OkFjdGl2ZSk7Ci0g
ICAgUUNvbG9yIGJhc2VXbmRDb2xvciA9IHN5c3RlbUNvbG9yU2NoZW1lLmJhY2tncm91bmQoS0Nv
bG9yU2NoZW1lOjpOb3JtYWxCYWNrZ3JvdW5kKS5jb2xvcigpOwotCi0gICAgaW50IGx1bWluYW5j
ZSA9IDAuMjEyNipiYXNlV25kQ29sb3IucmVkKCkgKyAwLjcxNTIqYmFzZVduZENvbG9yLmdyZWVu
KCkgKyAwLjA3MjIqYmFzZVduZENvbG9yLmJsdWUoKTsKLQotICAgIFFQZW4gcGVuOwotCi0gICAg
aWYgKGx1bWluYW5jZSA+ICgyNTUgLyAyLjApKQotICAgICAgICBwZW4uc2V0Q29sb3IoUXQ6OmJs
YWNrKTsKLSAgICBlbHNlCi0gICAgICAgIHBlbi5zZXRDb2xvcihRdDo6d2hpdGUpOwotCi0gICAg
ZHluYW1pY19jYXN0PCBRR3JhcGhpY3NSZWN0SXRlbSAqID4obV9zZWxlY3Rpb25JdGVtKS0+c2V0
UGVuKHBlbik7Ci0vLy8KLQorCQogCW1fbWF4VmFsdWUgPSAxOwogCW1fc2VsZWN0ZWRWYWx1ZSA9
IDE7CiB9Cg==
------=_Part_14982_29683521.1212213257862
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
------=_Part_14982_29683521.1212213257862--