diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-12 21:00:44 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-12 21:00:44 +0300 |
commit | 0e7060d5306fef1f585982cc78223250d3ee8551 (patch) | |
tree | d21bb496f85cd275707db85ebac17e7e5f2a9adf /src/ui/root.c | |
parent | 12262e7642489f1764018ef23b4913c203ddd9ab (diff) |
Mobile: Better Settings tap targets; fixed safe area drawing
Diffstat (limited to 'src/ui/root.c')
-rw-r--r-- | src/ui/root.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/root.c b/src/ui/root.c index 7b2b5b15..59f98aa4 100644 --- a/src/ui/root.c +++ b/src/ui/root.c | |||
@@ -525,7 +525,9 @@ void updateToolbarColors_Root(iRoot *d) { | |||
525 | #if defined (iPlatformMobile) | 525 | #if defined (iPlatformMobile) |
526 | iWidget *toolBar = findChild_Widget(d->widget, "toolbar"); | 526 | iWidget *toolBar = findChild_Widget(d->widget, "toolbar"); |
527 | if (toolBar) { | 527 | if (toolBar) { |
528 | const iBool isSidebarVisible = isVisible_Widget(findChild_Widget(d->widget, "sidebar")); | 528 | const iBool isSidebarVisible = |
529 | isVisible_Widget(findChild_Widget(d->widget, "sidebar")) || | ||
530 | isVisible_Widget(findChild_Widget(d->widget, "sidebar2")); | ||
529 | const int bg = isSidebarVisible ? uiBackgroundSidebar_ColorId : | 531 | const int bg = isSidebarVisible ? uiBackgroundSidebar_ColorId : |
530 | tmBannerBackground_ColorId; | 532 | tmBannerBackground_ColorId; |
531 | setBackgroundColor_Widget(toolBar, bg); | 533 | setBackgroundColor_Widget(toolBar, bg); |