diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-10 11:47:57 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-10 11:47:57 +0200 |
commit | e4e0a543c5c0e838828b88458dbe31ece3901397 (patch) | |
tree | 0b37cca32e27fbfd9e0d4ed63b30dd4d035102cf | |
parent | 7e42ad9d209de785b40c0e31ddb4c7aeab3f6385 (diff) |
GmDocument: Colorful Light banner
Lighter or darker depending on the UI theme.
-rw-r--r-- | src/gmdocument.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index a91d6a52..49a19cb9 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -1126,7 +1126,9 @@ void setThemeSeed_GmDocument(iGmDocument *d, const iBlock *seed) { | |||
1126 | set_Color(tmHeading1_ColorId, get_Color(white_ColorId)); | 1126 | set_Color(tmHeading1_ColorId, get_Color(white_ColorId)); |
1127 | set_Color(tmHeading2_ColorId, mix_Color(get_Color(tmBackground_ColorId), get_Color(darkHeadings ? black_ColorId : white_ColorId), 0.7f)); | 1127 | set_Color(tmHeading2_ColorId, mix_Color(get_Color(tmBackground_ColorId), get_Color(darkHeadings ? black_ColorId : white_ColorId), 0.7f)); |
1128 | set_Color(tmHeading3_ColorId, mix_Color(get_Color(tmBackground_ColorId), get_Color(darkHeadings ? black_ColorId : white_ColorId), 0.6f)); | 1128 | set_Color(tmHeading3_ColorId, mix_Color(get_Color(tmBackground_ColorId), get_Color(darkHeadings ? black_ColorId : white_ColorId), 0.6f)); |
1129 | setHsl_Color(tmBannerBackground_ColorId, addSatLum_HSLColor(base, 0, -0.04f)); | 1129 | setHsl_Color( |
1130 | tmBannerBackground_ColorId, | ||
1131 | addSatLum_HSLColor(base, 0, isDark_ColorTheme(colorTheme_App()) ? -0.04f : 0.06f)); | ||
1130 | setHsl_Color(tmBannerIcon_ColorId, addSatLum_HSLColor(base, 0, -0.3f)); | 1132 | setHsl_Color(tmBannerIcon_ColorId, addSatLum_HSLColor(base, 0, -0.3f)); |
1131 | setHsl_Color(tmBannerTitle_ColorId, addSatLum_HSLColor(base, 0, -0.25f)); | 1133 | setHsl_Color(tmBannerTitle_ColorId, addSatLum_HSLColor(base, 0, -0.25f)); |
1132 | set_Color(tmLinkIconVisited_ColorId, mix_Color(get_Color(tmBackground_ColorId), get_Color(teal_ColorId), 0.3f)); | 1134 | set_Color(tmLinkIconVisited_ColorId, mix_Color(get_Color(tmBackground_ColorId), get_Color(teal_ColorId), 0.3f)); |