summaryrefslogtreecommitdiff
path: root/src/ui/widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r--src/ui/widget.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 6a6480e5..8641dd61 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -871,12 +871,15 @@ void drawBackground_Widget(const iWidget *d) {
871 const iRect rect = bounds_Widget(d); 871 const iRect rect = bounds_Widget(d);
872 iPaint p; 872 iPaint p;
873 init_Paint(&p); 873 init_Paint(&p);
874 const int hgt = gap_UI / 4;
874 if (d->flags & borderTop_WidgetFlag) { 875 if (d->flags & borderTop_WidgetFlag) {
875 drawHLine_Paint(&p, topLeft_Rect(rect), width_Rect(rect), 876 fillRect_Paint(&p, (iRect){ topLeft_Rect(rect),
877 init_I2(width_Rect(rect), hgt) },
876 uiBackgroundFramelessHover_ColorId); 878 uiBackgroundFramelessHover_ColorId);
877 } 879 }
878 if (d->flags & borderBottom_WidgetFlag) { 880 if (d->flags & borderBottom_WidgetFlag) {
879 drawHLine_Paint(&p, addY_I2(bottomLeft_Rect(rect), -1), width_Rect(rect), 881 fillRect_Paint(&p, (iRect) { addY_I2(bottomLeft_Rect(rect), -hgt),
882 init_I2(width_Rect(rect), hgt) },
880 uiBackgroundFramelessHover_ColorId); 883 uiBackgroundFramelessHover_ColorId);
881 } 884 }
882 } 885 }