diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-17 18:35:44 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-17 18:36:38 +0200 |
commit | 8e590dc56f3d6e902a3d9f0c1c3b6c2f9e17c900 (patch) | |
tree | 23fb987310500dc289e15ac5ad9cb2a8bf5d9190 /src/ui/widget.c | |
parent | f4ced2f3da68b3e5cc4cbe25c26496646313fb63 (diff) |
Widget: Borders use the Separator color
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 5 |
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 | } |