diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-06 11:19:47 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-06 11:19:47 +0300 |
commit | a75a0073789decad190aad51b2cfbcc9977122a3 (patch) | |
tree | 3889bc2e220d1ab6c49fd3c00f895bef5f17c5f8 /src/ui/color.h | |
parent | d58be1088928cc0da98f2c5f7f42f5b240ce13d2 (diff) |
Cleanup
Diffstat (limited to 'src/ui/color.h')
-rw-r--r-- | src/ui/color.h | 10 |
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 | ||
63 | iLocalDef isLink_ColorId(enum iColorId d) { | 63 | iLocalDef iBool isLink_ColorId(enum iColorId d) { |
64 | return d >= tmBadLink_ColorId; | 64 | return d >= tmBadLink_ColorId; |
65 | } | 65 | } |
66 | iLocalDef isBackground_ColorId(enum iColorId d) { | 66 | iLocalDef iBool isBackground_ColorId(enum iColorId d) { |
67 | return d == tmBackground_ColorId || d == tmBannerBackground_ColorId; | 67 | return d == tmBackground_ColorId || d == tmBannerBackground_ColorId; |
68 | } | 68 | } |
69 | iLocalDef isText_ColorId(enum iColorId d) { | 69 | iLocalDef iBool isText_ColorId(enum iColorId d) { |
70 | return d >= tmFirst_ColorId && !isBackground_ColorId(d); | 70 | return d >= tmFirst_ColorId && !isBackground_ColorId(d); |
71 | } | 71 | } |
72 | iLocalDef isLinkText_ColorId(enum iColorId d) { | 72 | iLocalDef 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 | } |
76 | iLocalDef isRegularText_ColorId(enum iColorId d) { | 76 | iLocalDef 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 | ||