diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-22 11:37:15 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-22 11:37:15 +0300 |
commit | 8700c039dc04b4c9f22584d4e901ed372442b0f4 (patch) | |
tree | c89a1c5cda9baa3204b46df0162f5b1ba62add04 /src/ui/color.h | |
parent | c6182b6b4158a3227546ae55895b72a326db19fb (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.h | 5 |
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 | ||
197 | iLocalDef iBool equal_Color(const iColor a, const iColor b) { | ||
198 | return memcmp(&a, &b, sizeof(a)) == 0; | ||
199 | } | ||
200 | |||
196 | struct Impl_HSLColor { | 201 | struct Impl_HSLColor { |
197 | float hue, sat, lum, a; | 202 | float hue, sat, lum, a; |
198 | }; | 203 | }; |