diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/util.c | 6 | ||||
-rw-r--r-- | src/ui/widget.c | 6 | ||||
-rw-r--r-- | src/ui/widget.h | 1 |
3 files changed, 12 insertions, 1 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 3c40d4a5..44f7e089 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -924,7 +924,7 @@ static iWidget *appendTwoColumnPage_(iWidget *tabs, const char *title, int short | |||
924 | iWidget **values) { | 924 | iWidget **values) { |
925 | iWidget *page = new_Widget(); | 925 | iWidget *page = new_Widget(); |
926 | setFlags_Widget(page, arrangeVertical_WidgetFlag | arrangeSize_WidgetFlag | | 926 | setFlags_Widget(page, arrangeVertical_WidgetFlag | arrangeSize_WidgetFlag | |
927 | resizeHeightOfChildren_WidgetFlag, iTrue); | 927 | resizeHeightOfChildren_WidgetFlag | borderTop_WidgetFlag, iTrue); |
928 | addChildFlags_Widget(page, iClob(new_Widget()), expand_WidgetFlag); | 928 | addChildFlags_Widget(page, iClob(new_Widget()), expand_WidgetFlag); |
929 | iWidget *columns = new_Widget(); | 929 | iWidget *columns = new_Widget(); |
930 | addChildFlags_Widget(page, iClob(columns), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | 930 | addChildFlags_Widget(page, iClob(columns), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); |
@@ -934,6 +934,10 @@ static iWidget *appendTwoColumnPage_(iWidget *tabs, const char *title, int short | |||
934 | columns, iClob(new_Widget()), arrangeVertical_WidgetFlag | arrangeSize_WidgetFlag); | 934 | columns, iClob(new_Widget()), arrangeVertical_WidgetFlag | arrangeSize_WidgetFlag); |
935 | addChildFlags_Widget(page, iClob(new_Widget()), expand_WidgetFlag); | 935 | addChildFlags_Widget(page, iClob(new_Widget()), expand_WidgetFlag); |
936 | appendTabPage_Widget(tabs, page, title, shortcut, shortcut ? KMOD_PRIMARY : 0); | 936 | appendTabPage_Widget(tabs, page, title, shortcut, shortcut ? KMOD_PRIMARY : 0); |
937 | setFlags_Widget( | ||
938 | (iWidget *) back_ObjectList(children_Widget(findChild_Widget(tabs, "tabs.buttons"))), | ||
939 | frameless_WidgetFlag, | ||
940 | iTrue); | ||
937 | return page; | 941 | return page; |
938 | } | 942 | } |
939 | 943 | ||
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; |
diff --git a/src/ui/widget.h b/src/ui/widget.h index fd7ee316..f5e255f2 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -87,6 +87,7 @@ enum iWidgetFlag { | |||
87 | #define centerHorizontal_WidgetFlag iBit64(33) | 87 | #define centerHorizontal_WidgetFlag iBit64(33) |
88 | #define moveToParentRightEdge_WidgetFlag iBit64(34) | 88 | #define moveToParentRightEdge_WidgetFlag iBit64(34) |
89 | #define wrapText_WidgetFlag iBit64(35) | 89 | #define wrapText_WidgetFlag iBit64(35) |
90 | #define borderTop_WidgetFlag iBit64(36) | ||
90 | 91 | ||
91 | enum iWidgetAddPos { | 92 | enum iWidgetAddPos { |
92 | back_WidgetAddPos, | 93 | back_WidgetAddPos, |