D12756: [KDateTable] Use more appropriate and readable text colors for weekends and holidays
    Christoph Feck 
    noreply at phabricator.kde.org
       
    Thu May 31 18:54:20 UTC 2018
    
    
  
cfeck removed a reviewer: VDG.
cfeck added a comment.
    QColor c;
    c = QColor(Qt::gray);
    qDebug() << c.lightnessF();
    c = QColor(Qt::darkGray);
    qDebug() << c.lightnessF();
  
  I get:
  0.635294
  0.501961
  
  Both colors are very similar and neither has enough contrast for background colors with lightness at 0.55.
  
  Additionally, I would prefer computing the brightness of a color using qGray() or something similar to account for the different luminances of the primary colors.
REPOSITORY
  R236 KWidgetsAddons
REVISION DETAIL
  https://phabricator.kde.org/D12756
To: ngraham, #frameworks, #vdg
Cc: alex-l, rkflx, cfeck, kde-frameworks-devel, mwolff, apol, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180531/748316a0/attachment-0001.html>
    
    
More information about the Kde-frameworks-devel
mailing list