diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-10 17:28:05 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-10 17:28:05 +0200 |
commit | da9bd1a8fa18ee958baebb204ef7a2a18972a6ad (patch) | |
tree | 124d78bb2898abf393b1451172ec992fb13fcd1b /src/ui/window.c | |
parent | 11b5e74022461308da506f63f3e1902a64e5496a (diff) |
Mobile: Adjusting sidebar appearance
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index afc05da9..2f7a2988 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -131,9 +131,12 @@ static iBool handleRootCommands_(iWidget *root, const char *cmd) { | |||
131 | iSidebarWidget *sidebar = findChild_Widget(root, "sidebar"); | 131 | iSidebarWidget *sidebar = findChild_Widget(root, "sidebar"); |
132 | removeChild_Widget(parent_Widget(sidebar), sidebar); | 132 | removeChild_Widget(parent_Widget(sidebar), sidebar); |
133 | setButtonFont_SidebarWidget(sidebar, isLandscape_App() ? uiLabel_FontId : uiLabelLarge_FontId); | 133 | setButtonFont_SidebarWidget(sidebar, isLandscape_App() ? uiLabel_FontId : uiLabelLarge_FontId); |
134 | setBackgroundColor_Widget(findChild_Widget(as_Widget(sidebar), "buttons"), | 134 | // setBackgroundColor_Widget(findChild_Widget(as_Widget(sidebar), "buttons"), |
135 | isPortrait_App() ? uiBackgroundUnfocusedSelection_ColorId | 135 | // isPortrait_App() ? uiBackgroundUnfocusedSelection_ColorId |
136 | : uiBackground_ColorId); | 136 | // : uiBackgroundSidebar_ColorId); |
137 | setFlags_Widget(findChild_Widget(as_Widget(sidebar), "buttons"), | ||
138 | borderTop_WidgetFlag, | ||
139 | isPortrait_App()); | ||
137 | if (isLandscape_App()) { | 140 | if (isLandscape_App()) { |
138 | addChildPos_Widget(findChild_Widget(root, "tabs.content"), iClob(sidebar), front_WidgetAddPos); | 141 | addChildPos_Widget(findChild_Widget(root, "tabs.content"), iClob(sidebar), front_WidgetAddPos); |
139 | setWidth_SidebarWidget(sidebar, 73 * gap_UI); | 142 | setWidth_SidebarWidget(sidebar, 73 * gap_UI); |