diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-31 07:43:49 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-31 07:43:49 +0200 |
commit | 7d0d4a6821644a73fc52b54eba6774ba5a64cb54 (patch) | |
tree | 489d7ad74c7a3e900053f5a514444a497cdb7c4e /src/ui/widget.c | |
parent | 8269e07885b433b578c5ede8fba4af62c830268e (diff) |
Preferences: Changed apperance of tabs
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index d10d73e1..d8c2c421 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -599,6 +599,12 @@ iBool processEvent_Widget(iWidget *d, const SDL_Event *ev) { | |||
599 | 599 | ||
600 | void drawBackground_Widget(const iWidget *d) { | 600 | void drawBackground_Widget(const iWidget *d) { |
601 | if (d->flags & hidden_WidgetFlag) return; | 601 | if (d->flags & hidden_WidgetFlag) return; |
602 | if (flags_Widget(d) & borderTop_WidgetFlag) { | ||
603 | const iRect rect = bounds_Widget(d); | ||
604 | iPaint p; | ||
605 | init_Paint(&p); | ||
606 | drawHLine_Paint(&p, topLeft_Rect(rect), width_Rect(rect), uiBackgroundFramelessHover_ColorId); | ||
607 | } | ||
602 | if (d->bgColor >= 0 || d->frameColor >= 0) { | 608 | if (d->bgColor >= 0 || d->frameColor >= 0) { |
603 | const iRect rect = bounds_Widget(d); | 609 | const iRect rect = bounds_Widget(d); |
604 | iPaint p; | 610 | iPaint p; |