diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-11 22:33:19 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-11 22:33:19 +0300 |
commit | 38e09f15ff3e9c4781236016bfbb0b0f9062590b (patch) | |
tree | 43bf5e99e68d208056c9749d6e713502f66d143f /src/ui/scrollwidget.c | |
parent | 601f1dbde6f98b68ed6df9339bf6fafec16f0f57 (diff) |
SidebarWidget: Scrolling and the scrollbar
Diffstat (limited to 'src/ui/scrollwidget.c')
-rw-r--r-- | src/ui/scrollwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/scrollwidget.c b/src/ui/scrollwidget.c index 92139a60..d43a1fad 100644 --- a/src/ui/scrollwidget.c +++ b/src/ui/scrollwidget.c | |||
@@ -115,8 +115,8 @@ static void draw_ScrollWidget_(const iScrollWidget *d) { | |||
115 | iPaint p; | 115 | iPaint p; |
116 | init_Paint(&p); | 116 | init_Paint(&p); |
117 | drawRect_Paint(&p, bounds, black_ColorId); | 117 | drawRect_Paint(&p, bounds, black_ColorId); |
118 | fillRect_Paint(&p, shrunk_Rect(thumbRect_ScrollWidget_(d), init1_I2(gap_UI / 2)), | 118 | const iRect thumbRect = shrunk_Rect(thumbRect_ScrollWidget_(d), init_I2(gap_UI, gap_UI / 2)); |
119 | isPressed ? orange_ColorId : gray25_ColorId); | 119 | fillRect_Paint(&p, thumbRect, isPressed ? orange_ColorId : tmQuote_ColorId); |
120 | } | 120 | } |
121 | } | 121 | } |
122 | 122 | ||