summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-18 11:24:25 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-18 11:24:25 +0200
commit04da6153af1841effecc83b7e11c4e9ba1fb163a (patch)
tree070ac5837a7ba332b254d324abdd49e29edeefb3 /src/ui
parentb297951d55703c9e4272c57b07325886d4845eef (diff)
GmDocument: Trying out a footer
Currently disabled.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 83f270bd..72867133 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2911,6 +2911,13 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) {
2911 const iInt2 visPos = addX_I2(add_I2(run->visBounds.pos, origin), 2911 const iInt2 visPos = addX_I2(add_I2(run->visBounds.pos, origin),
2912 /* Preformatted runs can be scrolled. */ 2912 /* Preformatted runs can be scrolled. */
2913 runOffset_DocumentWidget_(d->widget, run)); 2913 runOffset_DocumentWidget_(d->widget, run));
2914 if (run->flags & footer_GmRunFlag) {
2915 iRect footerBack =
2916 (iRect){ visPos, init_I2(width_Rect(d->widgetBounds), run->visBounds.size.y) };
2917 footerBack.pos.x = left_Rect(d->widgetBounds);
2918 fillRect_Paint(&d->paint, footerBack, tmBackground_ColorId);
2919 return;
2920 }
2914 fillRect_Paint(&d->paint, (iRect){ visPos, run->visBounds.size }, tmBackground_ColorId); 2921 fillRect_Paint(&d->paint, (iRect){ visPos, run->visBounds.size }, tmBackground_ColorId);
2915 if (run->linkId && ~run->flags & decoration_GmRunFlag) { 2922 if (run->linkId && ~run->flags & decoration_GmRunFlag) {
2916 fg = linkColor_GmDocument(doc, run->linkId, isHover ? textHover_GmLinkPart : text_GmLinkPart); 2923 fg = linkColor_GmDocument(doc, run->linkId, isHover ? textHover_GmLinkPart : text_GmLinkPart);