summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 22:15:59 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 22:15:59 +0300
commitfdbff122e9ebade01a761efad26816f6049c86c3 (patch)
tree7fb860a1f987fbed4015acf8471637f0e2867930
parent999d468b1ba3c25cd1921c0cf3e6402a54cce87c (diff)
GmDocument: Tweak theme alt hue selection
-rw-r--r--src/gmdocument.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 5f5e8ad0..d7140e51 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -623,7 +623,7 @@ void setThemeSeed_GmDocument(iGmDocument *d, const iBlock *seed) {
623 setHsl_Color(tmBannerIcon_ColorId, setLum_HSLColor(addSatLum_HSLColor(base, 0.35f, 0), 0.65f)); 623 setHsl_Color(tmBannerIcon_ColorId, setLum_HSLColor(addSatLum_HSLColor(base, 0.35f, 0), 0.65f));
624 624
625 const iBool altDir = (d->themeSeed & 0x4) != 0; 625 const iBool altDir = (d->themeSeed & 0x4) != 0;
626 const float altHue = fixHue_(iWrapf(base.hue + (altDir ? 90 : -90), 0, 360)); 626 const float altHue = fixHue_(iWrapf(base.hue + (altDir ? 180 : -180), 0, 360));
627 float altHue2 = fixHue_(iWrapf(base.hue + (altDir ? -30 : 30), 0, 360)); 627 float altHue2 = fixHue_(iWrapf(base.hue + (altDir ? -30 : 30), 0, 360));
628 if (altHue2 > 230) altHue2 = fixHue_(iWrapf(base.hue + (altDir ? 45 : -45), 0, 360)); 628 if (altHue2 > 230) altHue2 = fixHue_(iWrapf(base.hue + (altDir ? 45 : -45), 0, 360));
629 iHSLColor altBase = base; 629 iHSLColor altBase = base;