mvourlakos added a comment.
For Latte I am using a different way to determine Luminance.. https://en.wikipedia.org/wiki/Relative_luminance something like property real luminance = 0.2126*r + 0.7152*g + 0.0722*b values above 0.65 threshold I consider them light and lower I consider them dark... In the internet some are proposing 0.7 as threshold... REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D11262 To: Pitel, mart, #plasma Cc: mvourlakos, plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart