diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 11:24:25 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 11:24:25 +0200 |
commit | 04da6153af1841effecc83b7e11c4e9ba1fb163a (patch) | |
tree | 070ac5837a7ba332b254d324abdd49e29edeefb3 /src/ui/documentwidget.c | |
parent | b297951d55703c9e4272c57b07325886d4845eef (diff) |
GmDocument: Trying out a footer
Currently disabled.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 7 |
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); |