summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-10-16 22:02:50 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-10-16 22:02:50 +0300
commitb8996ed039c2305661a30f867521f4974aa1f10b (patch)
tree45fff62edb150b60ee2842fac60d5cfbd31c1a04
parent04b626c12cf9fcecabdf6662bd602a81aa498290 (diff)
Fixed: Color saturation for default theme colors
The color saturation user preference was not being applied to the default color palette.
-rw-r--r--src/gmdocument.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 87b8a22c..4240b960 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -713,6 +713,14 @@ void setThemeSeed_GmDocument(iGmDocument *d, const iBlock *seed) {
713 set_Color(tmGopherLinkLastVisitDate_ColorId, get_Color(blue_ColorId)); 713 set_Color(tmGopherLinkLastVisitDate_ColorId, get_Color(blue_ColorId));
714 } 714 }
715 set_Color(tmBadLink_ColorId, get_Color(red_ColorId)); 715 set_Color(tmBadLink_ColorId, get_Color(red_ColorId));
716 /* Apply the saturation setting. */
717 for (int i = tmFirst_ColorId; i < max_ColorId; i++) {
718 if (!isLink_ColorId(i)) {
719 iHSLColor color = get_HSLColor(i);
720 color.sat *= prefs->saturation;
721 setHsl_Color(i, color);
722 }
723 }
716 } 724 }
717 if (seed && !isEmpty_Block(seed)) { 725 if (seed && !isEmpty_Block(seed)) {
718 d->themeSeed = crc32_Block(seed); 726 d->themeSeed = crc32_Block(seed);