<table><tr><td style="">davidhurka added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D19542">View Revision</a></tr></table><br /><div><div><p>After reading some Wikipedia, I can say:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Checkmarks use luma (NTSC)</li>
<li class="remarkup-list-item">Your approach uses luma (sRGB)</li>
<li class="remarkup-list-item">QColor::lightness() uses lightness (HSL-bi-hexcone)</li>
</ul>
<p>QColor::lightness() would not solve the problem, it would put white #ffffff text on yellow #00ffff background. Qt had to compute luma, but luma() would need to know the color space of the output device. I can imagine that Qt developers decided to use value() as a better tradeoff than assuming sRGB or using the primary display’s color space.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19542">https://phabricator.kde.org/D19542</a></div></div><br /><div><strong>To: </strong>yurchor, Okular<br /><strong>Cc: </strong>davidhurka, aacid, okular-devel, tfella, ngraham, darcyshen<br /></div>