From 04da6153af1841effecc83b7e11c4e9ba1fb163a Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 18 Mar 2021 11:24:25 +0200 Subject: GmDocument: Trying out a footer Currently disabled. --- src/ui/documentwidget.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ui') 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) { const iInt2 visPos = addX_I2(add_I2(run->visBounds.pos, origin), /* Preformatted runs can be scrolled. */ runOffset_DocumentWidget_(d->widget, run)); + if (run->flags & footer_GmRunFlag) { + iRect footerBack = + (iRect){ visPos, init_I2(width_Rect(d->widgetBounds), run->visBounds.size.y) }; + footerBack.pos.x = left_Rect(d->widgetBounds); + fillRect_Paint(&d->paint, footerBack, tmBackground_ColorId); + return; + } fillRect_Paint(&d->paint, (iRect){ visPos, run->visBounds.size }, tmBackground_ColorId); if (run->linkId && ~run->flags & decoration_GmRunFlag) { fg = linkColor_GmDocument(doc, run->linkId, isHover ? textHover_GmLinkPart : text_GmLinkPart); -- cgit v1.2.3