From f80cfad8bd0e8934142ec8c9afbc3247f0ffb47b Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 7 Aug 2020 12:48:28 +0300 Subject: Cleanup --- src/gmdocument.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/gmdocument.c') 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) { d->themeSeed = crc32_Block(seed); d->siteIcon = siteIcons[(d->themeSeed >> 7) % iElemCount(siteIcons)]; /* Set up colors. */ { - static const float hues[] = { - 5, 25, 40, 56, 80, 120, 160, 180, 208, 231, 270, 324 - }; - static const struct { int index[2]; } altHues[iElemCount(hues)] = { - {2, 4}, /* red */ - {8, 3}, /* reddish orange */ - {7, 9}, /* yellowish orange */ - {5, 7}, /* yellow */ - {11, 2}, /* greenish yellow */ - {1, 3}, /* green */ - {2, 4}, /* bluish green */ - {2, 11}, /* cyan */ - {6, 10}, /* sky blue */ - {3, 11}, /* blue */ - {8, 9}, /* violet */ - {7, 8}, /* pink */ + static const float hues[] = { 5, 25, 40, 56, 80, 120, 160, 180, 208, 231, 270, 324 }; + static const struct { + int index[2]; + } altHues[iElemCount(hues)] = { + { 2, 4 }, /* red */ + { 8, 3 }, /* reddish orange */ + { 7, 9 }, /* yellowish orange */ + { 5, 7 }, /* yellow */ + { 11, 2 }, /* greenish yellow */ + { 1, 3 }, /* green */ + { 2, 4 }, /* bluish green */ + { 2, 11 }, /* cyan */ + { 6, 10 }, /* sky blue */ + { 3, 11 }, /* blue */ + { 8, 9 }, /* violet */ + { 7, 8 }, /* pink */ }; const float saturationLevel = 1.0f; /* TODO: user setting */ const iBool isLightMode = iFalse; /* TODO: user setting */ -- cgit v1.2.3