summaryrefslogtreecommitdiff
path: root/src/ui/color.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 11:19:47 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 11:19:47 +0300
commita75a0073789decad190aad51b2cfbcc9977122a3 (patch)
tree3889bc2e220d1ab6c49fd3c00f895bef5f17c5f8 /src/ui/color.h
parentd58be1088928cc0da98f2c5f7f42f5b240ce13d2 (diff)
Cleanup
Diffstat (limited to 'src/ui/color.h')
-rw-r--r--src/ui/color.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/color.h b/src/ui/color.h
index 4f179534..8b5ef306 100644
--- a/src/ui/color.h
+++ b/src/ui/color.h
@@ -60,20 +60,20 @@ enum iColorId {
60 max_ColorId 60 max_ColorId
61}; 61};
62 62
63iLocalDef isLink_ColorId(enum iColorId d) { 63iLocalDef iBool isLink_ColorId(enum iColorId d) {
64 return d >= tmBadLink_ColorId; 64 return d >= tmBadLink_ColorId;
65} 65}
66iLocalDef isBackground_ColorId(enum iColorId d) { 66iLocalDef iBool isBackground_ColorId(enum iColorId d) {
67 return d == tmBackground_ColorId || d == tmBannerBackground_ColorId; 67 return d == tmBackground_ColorId || d == tmBannerBackground_ColorId;
68} 68}
69iLocalDef isText_ColorId(enum iColorId d) { 69iLocalDef iBool isText_ColorId(enum iColorId d) {
70 return d >= tmFirst_ColorId && !isBackground_ColorId(d); 70 return d >= tmFirst_ColorId && !isBackground_ColorId(d);
71} 71}
72iLocalDef isLinkText_ColorId(enum iColorId d) { 72iLocalDef iBool isLinkText_ColorId(enum iColorId d) {
73 return d == tmLinkText_ColorId || d == tmHypertextLinkText_ColorId || 73 return d == tmLinkText_ColorId || d == tmHypertextLinkText_ColorId ||
74 d == tmGopherLinkText_ColorId; 74 d == tmGopherLinkText_ColorId;
75} 75}
76iLocalDef isRegularText_ColorId(enum iColorId d) { 76iLocalDef iBool isRegularText_ColorId(enum iColorId d) {
77 return isLinkText_ColorId(d) || d == tmParagraph_ColorId || d == tmFirstParagraph_ColorId; 77 return isLinkText_ColorId(d) || d == tmParagraph_ColorId || d == tmFirstParagraph_ColorId;
78} 78}
79 79