summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gmdocument.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 4926587d..4e76a22a 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -990,6 +990,8 @@ void setThemeSeed_GmDocument(iGmDocument *d, const iBlock *seed) {
990 setHsl_Color(tmHeading2_ColorId, setLum_HSLColor(altBase, titleLum + 0.70f)); 990 setHsl_Color(tmHeading2_ColorId, setLum_HSLColor(altBase, titleLum + 0.70f));
991 setHsl_Color(tmHeading3_ColorId, setLum_HSLColor(altBase, titleLum + 0.60f)); 991 setHsl_Color(tmHeading3_ColorId, setLum_HSLColor(altBase, titleLum + 0.60f));
992 992
993// printf("titleLum: %f\n", titleLum);
994
993 setHsl_Color(tmParagraph_ColorId, addSatLum_HSLColor(base, 0.1f, 0.6f)); 995 setHsl_Color(tmParagraph_ColorId, addSatLum_HSLColor(base, 0.1f, 0.6f));
994 996
995// printf("heading3: %d,%d,%d\n", get_Color(tmHeading3_ColorId).r, get_Color(tmHeading3_ColorId).g, get_Color(tmHeading3_ColorId).b); 997// printf("heading3: %d,%d,%d\n", get_Color(tmHeading3_ColorId).r, get_Color(tmHeading3_ColorId).g, get_Color(tmHeading3_ColorId).b);
@@ -998,11 +1000,8 @@ void setThemeSeed_GmDocument(iGmDocument *d, const iBlock *seed) {
998 1000
999 if (delta_Color(get_Color(tmHeading3_ColorId), get_Color(tmParagraph_ColorId)) <= 80) { 1001 if (delta_Color(get_Color(tmHeading3_ColorId), get_Color(tmParagraph_ColorId)) <= 80) {
1000 /* Smallest headings may be too close to body text color. */ 1002 /* Smallest headings may be too close to body text color. */
1001// iHSLColor clr = get_HSLColor(tmParagraph_ColorId); 1003 setHsl_Color(tmHeading2_ColorId, addSatLum_HSLColor(get_HSLColor(tmHeading2_ColorId), 0.5f, -0.12f));
1002// clr.lum = iMax(0.5f, clr.lum - 0.15f); 1004 setHsl_Color(tmHeading3_ColorId, addSatLum_HSLColor(get_HSLColor(tmHeading3_ColorId), 0.5f, -0.2f));
1003 //setHsl_Color(tmParagraph_ColorId, clr);
1004 setHsl_Color(tmHeading3_ColorId,
1005 addSatLum_HSLColor(get_HSLColor(tmHeading3_ColorId), 0, 0.15f));
1006 } 1005 }
1007 1006
1008 setHsl_Color(tmFirstParagraph_ColorId, addSatLum_HSLColor(base, 0.2f, 0.72f)); 1007 setHsl_Color(tmFirstParagraph_ColorId, addSatLum_HSLColor(base, 0.2f, 0.72f));