<table><tr><td style="">mglb created this revision.<br />mglb added projects: Konsole, VDG.<br />mglb requested review of this revision.
</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/D20263">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Randomize colors using HSLuv color space instead of HSL. It has<br />
perceptually uniform lightness, which means every color with the same<br />
lightness value is perceived as equally bright by humans. Displays<br />
quality and lack of calibration in most monitors lowers this uniformity,<br />
but even on worst color display it should be better than standard HSL.</p>
<p>More information about HSLuv: <a href="http://www.hsluv.org/" class="remarkup-link" target="_blank" rel="noreferrer">http://www.hsluv.org/</a></p>
<p>Minor changes:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Random seed takes PID into account to prevent repeated colors in separate Konsole processes</li>
<li class="remarkup-list-item">Key names in a config were changed</li>
<li class="remarkup-list-item">Adapted "Black on random light" color scheme</li>
</ul>
<p>Breeze with random ranges on default bg and fg: hue=360° saturation=100:<br />
<a href="https://phabricator.kde.org/F6754773" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F6754773: Screenshot_2019-04-05-14-17-38.png</a></p>
<p>Todo:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Automatically convert old values to new values when color scheme is loaded</li>
<li class="remarkup-list-item">Adjust defaults</li>
<li class="remarkup-list-item">Put <a href="https://github.com/hsluv/hsluv-c" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/hsluv/hsluv-c</a> files (without tests) in <tt style="background: #ebebeb; font-size: 13px;">src/3rdparty/hsluv-c</tt>. For now, hsluv.[c,h] are in src.</li>
<li class="remarkup-list-item">(?) Change "randomize background color" checkbox function to "randomize background and foreground color" (maybe in separate review)</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>BRANCH</strong><div><div>wip/Keep-perceived-contrast-in-random-background-color (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20263">https://phabricator.kde.org/D20263</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>data/color-schemes/BlackOnRandomLight.colorscheme<br />
src/CMakeLists.txt<br />
src/ColorScheme.cpp<br />
src/ColorScheme.h<br />
src/ViewManager.cpp<br />
src/hsluv.c<br />
src/hsluv.h</div></div></div><br /><div><strong>To: </strong>mglb<br /><strong>Cc: </strong>konsole-devel, cblack, arvidhansson, ian, hannahk, Pixel_Lime, jraleigh, gennad, squeakypancakes, alexde, IohannesPetros, GB_2, trickyricky26, thsurrel, mglb, crozbo, ndavis, firef, ngraham, skadinna, maximilianocuria, aaronhoneycutt, hindenburg, mbohlender<br /></div>