[Interest] QColor::lighter()
Jonathan Greig
redteam316 at gmail.com
Wed Jan 15 20:17:44 CET 2014
Igor, Paul is correct. In the case of black or similarly dark colors, I
would suggest making a function that identifies how dark your color is
beforehand(such as checking if all 3 RGB values fall beneath a threshold
considering RGB(1,1,1) etc... are still hard to see visually ) and then
increasing the lightness factor accordingly. That should ensure that the
darker colors get lightened more so you can visually tell the difference
easier.
On Wed, Jan 15, 2014 at 12:41 PM, Paul Miller <stelefx at gmail.com> wrote:
> On 1/15/2014 1:38 PM, Igor Mironchik wrote:
> > Is it correct that QColor( Qt::black ).lighter() returns the same black
> > color?
>
> Sure. lighter() multiplies the values of the color by the scale factor
> passed into lighter(). It's a gain, not a bias.
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140115/f20077fd/attachment.html>
More information about the Interest
mailing list