D11262: KDE logout screen background color fix

Marco Martin noreply at phabricator.kde.org
Tue Mar 13 11:54:04 UTC 2018


mart added inline comments.

INLINE COMMENTS

> Logout.qml:87
> +    function isLightColor(color) {
> +        return Math.max(color.r, color.g, color.b) > 0.5
>      }

the method lattes is using 0.2126*r + 0.7152*g + 0.0722*b is more correct
(a simple one would be convertin to gray scale with  qGray, but unfortunately is C++ only)

REPOSITORY
  R120 Plasma Workspace

REVISION DETAIL
  https://phabricator.kde.org/D11262

To: Pitel, mart, #plasma
Cc: ngraham, abetts, broulik, mvourlakos, plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180313/9f1f8f00/attachment.html>


More information about the Plasma-devel mailing list