summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-08 15:25:33 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-08 15:25:33 +0300
commitdeea4951aa8e4068daccb15b7960aa84ebfe906f (patch)
treec3ee737e4aaf81b5ff5ea2303a8532f653ff1a73 /src/ui
parentfa30f577ccb170196b32e53a3631e836f101470d (diff)
Colored popup frames
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/util.c2
-rw-r--r--src/ui/window.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index 354b1467..ae72dbee 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -841,7 +841,7 @@ iWidget *makeMenu_Widget(iWidget *parent, const iMenuItem *items, size_t n) {
841 (isPortraitPhone_App() ? drawBackgroundToVerticalSafeArea_WidgetFlag : 0), 841 (isPortraitPhone_App() ? drawBackgroundToVerticalSafeArea_WidgetFlag : 0),
842 iTrue); 842 iTrue);
843 if (!isPortraitPhone_App()) { 843 if (!isPortraitPhone_App()) {
844 setFrameColor_Widget(menu, uiSeparator_ColorId); 844 setFrameColor_Widget(menu, uiBackgroundSelected_ColorId);
845 } 845 }
846 makeMenuItems_Widget(menu, items, n); 846 makeMenuItems_Widget(menu, items, n);
847 addChild_Widget(parent, menu); 847 addChild_Widget(parent, menu);
diff --git a/src/ui/window.c b/src/ui/window.c
index ea783331..569ec919 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1192,8 +1192,8 @@ void draw_Window(iWindow *d) {
1192 drawCount_ = 0; 1192 drawCount_ = 0;
1193#endif 1193#endif
1194 } 1194 }
1195 drawRectThickness_Paint( 1195 drawRectThickness_Paint(&p, (iRect){ zero_I2(), sub_I2(d->size, one_I2()) }, gap_UI / 4,
1196 &p, (iRect){ zero_I2(), sub_I2(d->size, one_I2()) }, gap_UI / 4, uiSeparator_ColorId); 1196 uiBackgroundSelected_ColorId);
1197 setCurrent_Root(NULL); 1197 setCurrent_Root(NULL);
1198 SDL_RenderPresent(d->render); 1198 SDL_RenderPresent(d->render);
1199} 1199}