D11262: KDE logout screen background color fix

Kai Uwe Broulik noreply at phabricator.kde.org
Mon Mar 12 13:03:20 UTC 2018


broulik added a comment.


  In color picker I use:
  
    // formula for luminance according to https://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
    
                            var a = [color.r, color.g, color.b].map(function (v) {
                                return (v <= 0.03928) ? v / 12.92 :
                                                        Math.pow( ((v + 0.055) / 1.055), 2.4 );
                            });
    
                            return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;

REPOSITORY
  R120 Plasma Workspace

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

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


More information about the Plasma-devel mailing list