summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-07 12:48:28 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-07 12:48:28 +0300
commitf80cfad8bd0e8934142ec8c9afbc3247f0ffb47b (patch)
treeecbe8c9c603e1917d9448953e1213ba9acd719af /src/gmdocument.c
parent7d94fccf41ea9ba6da6d79a801fdff81a6ae9687 (diff)
Cleanup
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 20598321..4c0ca86e 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -603,22 +603,22 @@ void setThemeSeed_GmDocument(iGmDocument *d, const iBlock *seed) {
603 d->themeSeed = crc32_Block(seed); 603 d->themeSeed = crc32_Block(seed);
604 d->siteIcon = siteIcons[(d->themeSeed >> 7) % iElemCount(siteIcons)]; 604 d->siteIcon = siteIcons[(d->themeSeed >> 7) % iElemCount(siteIcons)];
605 /* Set up colors. */ { 605 /* Set up colors. */ {
606 static const float hues[] = { 606 static const float hues[] = { 5, 25, 40, 56, 80, 120, 160, 180, 208, 231, 270, 324 };
607 5, 25, 40, 56, 80, 120, 160, 180, 208, 231, 270, 324 607 static const struct {
608 }; 608 int index[2];
609 static const struct { int index[2]; } altHues[iElemCount(hues)] = { 609 } altHues[iElemCount(hues)] = {
610 {2, 4}, /* red */ 610 { 2, 4 }, /* red */
611 {8, 3}, /* reddish orange */ 611 { 8, 3 }, /* reddish orange */
612 {7, 9}, /* yellowish orange */ 612 { 7, 9 }, /* yellowish orange */
613 {5, 7}, /* yellow */ 613 { 5, 7 }, /* yellow */
614 {11, 2}, /* greenish yellow */ 614 { 11, 2 }, /* greenish yellow */
615 {1, 3}, /* green */ 615 { 1, 3 }, /* green */
616 {2, 4}, /* bluish green */ 616 { 2, 4 }, /* bluish green */
617 {2, 11}, /* cyan */ 617 { 2, 11 }, /* cyan */
618 {6, 10}, /* sky blue */ 618 { 6, 10 }, /* sky blue */
619 {3, 11}, /* blue */ 619 { 3, 11 }, /* blue */
620 {8, 9}, /* violet */ 620 { 8, 9 }, /* violet */
621 {7, 8}, /* pink */ 621 { 7, 8 }, /* pink */
622 }; 622 };
623 const float saturationLevel = 1.0f; /* TODO: user setting */ 623 const float saturationLevel = 1.0f; /* TODO: user setting */
624 const iBool isLightMode = iFalse; /* TODO: user setting */ 624 const iBool isLightMode = iFalse; /* TODO: user setting */