summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-08 18:59:45 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-08 18:59:45 +0200
commitf5d39a1487db6259cc7a99e98d2fe70e29c61c46 (patch)
treecb972fa0a163cc72a476985185476a98b0ee92ec /src/ui
parenta31b3f27037cc75b733a34871cfadc9707055b16 (diff)
Improved custom link icons; link list spacing
Link lists and bullet lists are spaced the same way.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/color.h1
-rw-r--r--src/ui/text.h10
2 files changed, 7 insertions, 4 deletions
diff --git a/src/ui/color.h b/src/ui/color.h
index 695e6302..a4a7b93e 100644
--- a/src/ui/color.h
+++ b/src/ui/color.h
@@ -115,6 +115,7 @@ enum iColorId {
115 uiTextAppTitle_ColorId, 115 uiTextAppTitle_ColorId,
116 uiBackgroundSidebar_ColorId, 116 uiBackgroundSidebar_ColorId,
117 uiBackgroundMenu_ColorId, 117 uiBackgroundMenu_ColorId,
118 tmLinkCustomIconVisited_ColorId,
118 119
119 /* content theme colors */ 120 /* content theme colors */
120 tmFirst_ColorId, 121 tmFirst_ColorId,
diff --git a/src/ui/text.h b/src/ui/text.h
index d57c2c62..8a023546 100644
--- a/src/ui/text.h
+++ b/src/ui/text.h
@@ -39,7 +39,7 @@ enum iFontId {
39 defaultLarge_FontId, 39 defaultLarge_FontId,
40 defaultLargeBold_FontId, 40 defaultLargeBold_FontId,
41 defaultMonospace_FontId, 41 defaultMonospace_FontId,
42 defaultContentSized_FontId, 42 defaultContentSized_FontId,
43 /* content fonts */ 43 /* content fonts */
44 regular_FontId, 44 regular_FontId,
45 monospace_FontId, 45 monospace_FontId,
@@ -138,14 +138,16 @@ iLocalDef iBool isDefaultIgnorable_Char(iChar c) {
138} 138}
139iLocalDef iBool isEmoji_Char(iChar c) { 139iLocalDef iBool isEmoji_Char(iChar c) {
140 return (c >= 0x1f300 && c < 0x1f700) || (c >= 0x1f7e0 && c <= 0x1f7eb) || 140 return (c >= 0x1f300 && c < 0x1f700) || (c >= 0x1f7e0 && c <= 0x1f7eb) ||
141 (c >= 0x1f900 && c <= 0x1f9ff); 141 (c >= 0x1f900 && c <= 0x1f9ff) || (c >= 0x1fa70 && c <= 0x1faff);
142} 142}
143iLocalDef iBool isDingbats_Char(iChar c) { 143iLocalDef iBool isDingbats_Char(iChar c) {
144 return c >= 0x2702 && c <= 0x27b0; 144 return c >= 0x2702 && c <= 0x27b0;
145} 145}
146iLocalDef iBool isSymbol_Char(iChar c) { 146iLocalDef iBool isSymbol_Char(iChar c) {
147 return (c == 0x2218 || c == 0x2219) || (c >= 0x1f680 && c <= 0x1f6c0) || 147 return (c == 0x21a9) ||
148 (c >= 0x2300 && c <= 0x26ff); 148 (c == 0x2218 || c == 0x2219) ||
149 (c >= 0x2300 && c <= 0x26ff) ||
150 (c >= 0x1f680 && c <= 0x1f6c0);
149} 151}
150 152
151#define emojiVariationSelector_Char ((iChar) 0xfe0f) 153#define emojiVariationSelector_Char ((iChar) 0xfe0f)