<table><tr><td style="">mvourlakos 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/D11262">View Revision</a></tr></table><br /><div><div><p>For Latte I am using a different way to determine Luminance..</p>
<p><a href="https://en.wikipedia.org/wiki/Relative_luminance" class="remarkup-link" target="_blank" rel="noreferrer">https://en.wikipedia.org/wiki/Relative_luminance</a></p>
<p>something like property real luminance = 0.2126*r + 0.7152*g + 0.0722*b</p>
<p>values above 0.65 threshold I consider them light and lower I consider them dark...</p>
<p>In the internet some are proposing 0.7 as threshold...</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11262">https://phabricator.kde.org/D11262</a></div></div><br /><div><strong>To: </strong>Pitel, mart, Plasma<br /><strong>Cc: </strong>mvourlakos, plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>