summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-08 22:29:19 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-08 22:29:19 +0300
commitbedc9dececd2f98866a85bc4a2bebe46bff7c57b (patch)
tree78cbaea619b11b8fb36f52a340a07093af274cc8 /src/gmdocument.c
parent496122b446d2084f6117e2b8704d7c9ec6706422 (diff)
GmDocument: Added more site icons
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index bdf30807..20874d8a 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -546,22 +546,14 @@ void reset_GmDocument(iGmDocument *d) {
546 d->themeSeed = 0; 546 d->themeSeed = 0;
547} 547}
548 548
549static float fixHue_(float hue) {
550 if (hue > 260 && hue < 330) {
551 if (hue < 295) return hue - 90;
552 return hue + 90;
553 }
554 return hue;
555}
556
557void setThemeSeed_GmDocument(iGmDocument *d, const iBlock *seed) { 549void setThemeSeed_GmDocument(iGmDocument *d, const iBlock *seed) {
558 static const iChar siteIcons[] = { 550 static const iChar siteIcons[] = {
559 0x25ed, 0x2600, 0x2601, 0x2604, 0x2605, 0x2606, 0x265c, 0x265e, 0x2690, 551 0x203b, 0x2042, 0x205c, 0x2182, 0x25ed, 0x2600, 0x2601, 0x2604, 0x2605, 0x2606,
560 0x2691, 0x2693, 0x2698, 0x2699, 0x26f0, 0x270e, 0x2728, 0x272a, 0x272f, 552 0x265c, 0x265e, 0x2690, 0x2691, 0x2693, 0x2698, 0x2699, 0x26f0, 0x270e, 0x2728,
561 0x2731, 0x2738, 0x273a, 0x273e, 0x2740, 0x2742, 0x2744, 0x2748, 0x274a, 553 0x272a, 0x272f, 0x2731, 0x2738, 0x273a, 0x273e, 0x2740, 0x2742, 0x2744, 0x2748,
562 0x2751, 0x2756, 0x2766, 0x27bd, 0x27c1, 0x27d0, 0x2b19, 0x1f300, 0x1f303, 554 0x274a, 0x2751, 0x2756, 0x2766, 0x27bd, 0x27c1, 0x27d0, 0x2b19, 0x1f300, 0x1f303,
563 0x1f306, 0x1f308, 0x1f30a, 0x1f319, 0x1f31f, 0x1f320, 0x1f340, 0x1f4cd, 0x1f4e1, 555 0x1f306, 0x1f308, 0x1f30a, 0x1f319, 0x1f31f, 0x1f320, 0x1f340, 0x1f4cd, 0x1f4e1, 0x1f531,
564 0x1f657, 0x1f659, 0x1f665, 0x1f78b, 0x1f796, 0x1f79c, 556 0x1f533, 0x1f657, 0x1f659, 0x1f665, 0x1f668, 0x1f66b, 0x1f78b, 0x1f796, 0x1f79c,
565 }; 557 };
566 d->themeSeed = 0; 558 d->themeSeed = 0;
567 d->siteIcon = 0; 559 d->siteIcon = 0;