summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-10 17:28:05 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-10 17:28:05 +0200
commitda9bd1a8fa18ee958baebb204ef7a2a18972a6ad (patch)
tree124d78bb2898abf393b1451172ec992fb13fcd1b /src
parent11b5e74022461308da506f63f3e1902a64e5496a (diff)
Mobile: Adjusting sidebar appearance
Diffstat (limited to 'src')
-rw-r--r--src/ui/sidebarwidget.c12
-rw-r--r--src/ui/window.c9
2 files changed, 13 insertions, 8 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 8da09b2f..de61141f 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -544,11 +544,13 @@ void init_SidebarWidget(iSidebarWidget *d, enum iSidebarSide side) {
544 // } 544 // }
545 } 545 }
546 else { 546 else {
547 iLabelWidget *heading = new_LabelWidget("Identities", NULL); 547 iLabelWidget *heading = new_LabelWidget(person_Icon " Identities", NULL);
548 setBackgroundColor_Widget(as_Widget(heading), uiBackgroundUnfocusedSelection_ColorId); 548 checkIcon_LabelWidget(heading);
549 setTextColor_LabelWidget(heading, uiIcon_ColorId); 549 setBackgroundColor_Widget(as_Widget(heading), uiBackgroundSidebar_ColorId);
550 setFont_LabelWidget(addChildFlags_Widget(vdiv, iClob(heading), frameless_WidgetFlag), 550 setTextColor_LabelWidget(heading, uiTextSelected_ColorId);
551 uiLabelLarge_FontId); 551 setFont_LabelWidget(addChildFlags_Widget(vdiv, iClob(heading), borderTop_WidgetFlag |
552 alignLeft_WidgetFlag | frameless_WidgetFlag),
553 uiLabelLargeBold_FontId);
552 } 554 }
553 iWidget *content = new_Widget(); 555 iWidget *content = new_Widget();
554 setFlags_Widget(content, resizeChildren_WidgetFlag, iTrue); 556 setFlags_Widget(content, resizeChildren_WidgetFlag, iTrue);
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);