summaryrefslogtreecommitdiff
path: root/src/ui/color.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-22 11:37:15 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-22 11:37:15 +0300
commit8700c039dc04b4c9f22584d4e901ed372442b0f4 (patch)
treec89a1c5cda9baa3204b46df0162f5b1ba62add04 /src/ui/color.h
parentc6182b6b4158a3227546ae55895b72a326db19fb (diff)
DocumentWidget: Drawing side elements
The banner appears on the left, if there is room in the margin. Also added a document timestamp in the bottom to see when the data was received.
Diffstat (limited to 'src/ui/color.h')
-rw-r--r--src/ui/color.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/color.h b/src/ui/color.h
index 51d3370f..0f534272 100644
--- a/src/ui/color.h
+++ b/src/ui/color.h
@@ -117,6 +117,7 @@ enum iColorId {
117 tmBannerBackground_ColorId, 117 tmBannerBackground_ColorId,
118 tmBannerTitle_ColorId, 118 tmBannerTitle_ColorId,
119 tmBannerIcon_ColorId, 119 tmBannerIcon_ColorId,
120 tmBannerSideTitle_ColorId,
120 tmInlineContentMetadata_ColorId, 121 tmInlineContentMetadata_ColorId,
121 tmBadLink_ColorId, 122 tmBadLink_ColorId,
122 123
@@ -193,6 +194,10 @@ struct Impl_Color {
193 uint8_t r, g, b, a; 194 uint8_t r, g, b, a;
194}; 195};
195 196
197iLocalDef iBool equal_Color(const iColor a, const iColor b) {
198 return memcmp(&a, &b, sizeof(a)) == 0;
199}
200
196struct Impl_HSLColor { 201struct Impl_HSLColor {
197 float hue, sat, lum, a; 202 float hue, sat, lum, a;
198}; 203};