[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [KSudoku] Background color problem
From:       "=?ISO-8859-1?Q?Percy_Camilo_Trive=F1o_Aucahuasi?=" <orgyforever () gmail ! com>
Date:       2008-06-02 18:51:21
Message-ID: 579229230806021151i23318b15hf31ff464f8704f38 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


>For future reference, please consider using KColorUtils::luma :-). (At
>the very least, the above is redundant with qGray - KCU::luma uses gamma
>correction as well, which matches with how KCS handles light/dark stuff.)

Thanks, nice tip ;-)

On Mon, Jun 2, 2008 at 11:26 AM, Matthew Woehlke <
mw_triad@users.sourceforge.net> wrote:

> Percy Camilo Triveņo Aucahuasi wrote:
> > int luminance = 0.2126*baseWndColor.red() + 0.7152*baseWndColor.green() +
> > 0.0722*baseWndColor.blue();
>
> For future reference, please consider using KColorUtils::luma :-). (At
> the very least, the above is redundant with qGray - KCU::luma uses gamma
> correction as well, which matches with how KCS handles light/dark stuff.)
>
> --
> Matthew
> Somewhere there is a pun so egregious that uttering it will incite
> murderous rage in all who hear it. If anyone knows where it is, please
> let me know.
>
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>

[Attachment #5 (text/html)]

&gt;For future reference, please consider using KColorUtils::luma :-). (At<br>&gt;the \
very least, the above is redundant with qGray - KCU::luma uses \
gamma<br>&gt;correction as well, which matches with how KCS handles light/dark \
stuff.)<br> <br>Thanks, nice tip ;-)<br><br><div class="gmail_quote">On Mon, Jun 2, \
2008 at 11:26 AM, Matthew Woehlke &lt;<a \
href="mailto:mw_triad@users.sourceforge.net">mw_triad@users.sourceforge.net</a>&gt; \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div class="Ih2E3d">Percy \
Camilo Triveņo Aucahuasi wrote:<br> </div><div class="Ih2E3d">&gt; int luminance = \
0.2126*baseWndColor.red() + 0.7152*baseWndColor.green() +<br> &gt; \
0.0722*baseWndColor.blue();<br> <br>
</div>For future reference, please consider using KColorUtils::luma :-). (At<br>
the very least, the above is redundant with qGray - KCU::luma uses gamma<br>
correction as well, which matches with how KCS handles light/dark stuff.)<br>
<font color="#888888"><br>
--<br>
Matthew<br>
Somewhere there is a pun so egregious that uttering it will incite<br>
murderous rage in all who hear it. If anyone knows where it is, please<br>
let me know.<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
&gt;&gt; Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe &lt;&lt;<br> </div></div></blockquote></div><br>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic