summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/widget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c
index f670d85c..d5e639fd 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -926,15 +926,16 @@ void drawBackground_Widget(const iWidget *d) {
926 iPaint p; 926 iPaint p;
927 init_Paint(&p); 927 init_Paint(&p);
928 const int hgt = gap_UI / 4; 928 const int hgt = gap_UI / 4;
929 const int borderColor = uiSeparator_ColorId; /* TODO: Add a property to customize? */
929 if (d->flags & borderTop_WidgetFlag) { 930 if (d->flags & borderTop_WidgetFlag) {
930 fillRect_Paint(&p, (iRect){ topLeft_Rect(rect), 931 fillRect_Paint(&p, (iRect){ topLeft_Rect(rect),
931 init_I2(width_Rect(rect), hgt) }, 932 init_I2(width_Rect(rect), hgt) },
932 uiBackgroundFramelessHover_ColorId); 933 borderColor);
933 } 934 }
934 if (d->flags & borderBottom_WidgetFlag) { 935 if (d->flags & borderBottom_WidgetFlag) {
935 fillRect_Paint(&p, (iRect) { addY_I2(bottomLeft_Rect(rect), -hgt), 936 fillRect_Paint(&p, (iRect) { addY_I2(bottomLeft_Rect(rect), -hgt),
936 init_I2(width_Rect(rect), hgt) }, 937 init_I2(width_Rect(rect), hgt) },
937 uiBackgroundFramelessHover_ColorId); 938 borderColor);
938 } 939 }
939 } 940 }
940} 941}