diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-03 21:21:54 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-03 21:21:54 +0200 |
commit | d8203435d6dc8c44f5cf7b53a04eb5fdc21042cd (patch) | |
tree | e3f7809b53fe220707f156afe63a509cfe6a09c0 /src/gmdocument.c | |
parent | e035d2b4126d3c7b4982e88b7be9086f1b0d5ddd (diff) |
GmDocument: Tuning Colorful Dark
Link text and paragraph text shouldn't be too close to each other.
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r-- | src/gmdocument.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index dddcde9a..5273f61c 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -719,6 +719,14 @@ static void setDerivedThemeColors_(enum iGmDocumentTheme theme) { | |||
719 | set_Color(tmBannerSideTitle_ColorId, | 719 | set_Color(tmBannerSideTitle_ColorId, |
720 | mix_Color(get_Color(tmBannerTitle_ColorId), get_Color(tmBackground_ColorId), | 720 | mix_Color(get_Color(tmBannerTitle_ColorId), get_Color(tmBackground_ColorId), |
721 | theme == colorfulDark_GmDocumentTheme ? 0.55f : 0)); | 721 | theme == colorfulDark_GmDocumentTheme ? 0.55f : 0)); |
722 | if (theme == colorfulDark_GmDocumentTheme) { | ||
723 | /* Ensure paragraph text and link text aren't too similarly colored. */ | ||
724 | if (delta_Color(get_Color(tmLinkText_ColorId), get_Color(tmParagraph_ColorId)) < 100) { | ||
725 | setHsl_Color(tmParagraph_ColorId, | ||
726 | addSatLum_HSLColor(get_HSLColor(tmParagraph_ColorId), 0.3f, -0.025f)); | ||
727 | } | ||
728 | } | ||
729 | #if 0 | ||
722 | set_Color(tmOutlineHeadingAbove_ColorId, get_Color(white_ColorId)); | 730 | set_Color(tmOutlineHeadingAbove_ColorId, get_Color(white_ColorId)); |
723 | set_Color(tmOutlineHeadingBelow_ColorId, get_Color(black_ColorId)); | 731 | set_Color(tmOutlineHeadingBelow_ColorId, get_Color(black_ColorId)); |
724 | switch (theme) { | 732 | switch (theme) { |
@@ -746,6 +754,7 @@ static void setDerivedThemeColors_(enum iGmDocumentTheme theme) { | |||
746 | default: | 754 | default: |
747 | break; | 755 | break; |
748 | } | 756 | } |
757 | #endif | ||
749 | } | 758 | } |
750 | 759 | ||
751 | static void updateIconBasedOnUrl_GmDocument_(iGmDocument *d) { | 760 | static void updateIconBasedOnUrl_GmDocument_(iGmDocument *d) { |