diff options
Diffstat (limited to 'src/ui/root.c')
-rw-r--r-- | src/ui/root.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ui/root.c b/src/ui/root.c index 91f9fbb3..89f71697 100644 --- a/src/ui/root.c +++ b/src/ui/root.c | |||
@@ -692,6 +692,7 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) { | |||
692 | iInputWidget *url = findChild_Widget(navBar, "url"); | 692 | iInputWidget *url = findChild_Widget(navBar, "url"); |
693 | if (pointer_Command(cmd) == url) { | 693 | if (pointer_Command(cmd) == url) { |
694 | const iBool isFocused = equal_Command(cmd, "focus.gained"); | 694 | const iBool isFocused = equal_Command(cmd, "focus.gained"); |
695 | setFlags_Widget(findChild_Widget(navBar, "navbar.lock"), hidden_WidgetFlag, isFocused); | ||
695 | setFlags_Widget(findChild_Widget(navBar, "navbar.clear"), hidden_WidgetFlag, !isFocused); | 696 | setFlags_Widget(findChild_Widget(navBar, "navbar.clear"), hidden_WidgetFlag, !isFocused); |
696 | showCollapsed_Widget(findChild_Widget(navBar, "navbar.cancel"), isFocused); | 697 | showCollapsed_Widget(findChild_Widget(navBar, "navbar.cancel"), isFocused); |
697 | showCollapsed_Widget(findChild_Widget(navBar, "pagemenubutton"), !isFocused); | 698 | showCollapsed_Widget(findChild_Widget(navBar, "pagemenubutton"), !isFocused); |
@@ -1130,11 +1131,11 @@ void createUserInterface_Root(iRoot *d) { | |||
1130 | iLabelWidget *clear = addChildFlags_Widget( | 1131 | iLabelWidget *clear = addChildFlags_Widget( |
1131 | as_Widget(url), | 1132 | as_Widget(url), |
1132 | iClob(newIcon_LabelWidget(delete_Icon, 0, 0, "navbar.clear")), | 1133 | iClob(newIcon_LabelWidget(delete_Icon, 0, 0, "navbar.clear")), |
1133 | hidden_WidgetFlag | embedFlags | moveToParentLeftEdge_WidgetFlag); | 1134 | hidden_WidgetFlag | embedFlags | moveToParentLeftEdge_WidgetFlag | tight_WidgetFlag); |
1134 | setId_Widget(as_Widget(clear), "navbar.clear"); | 1135 | setId_Widget(as_Widget(clear), "navbar.clear"); |
1135 | setFont_LabelWidget(clear, symbols2_FontId + uiNormal_FontSize); | 1136 | setFont_LabelWidget(clear, symbols2_FontId + uiNormal_FontSize); |
1136 | setFlags_Widget(as_Widget(clear), noBackground_WidgetFlag, iFalse); | 1137 | // setFlags_Widget(as_Widget(clear), noBackground_WidgetFlag, iFalse); |
1137 | setBackgroundColor_Widget(as_Widget(clear), uiBackground_ColorId); | 1138 | // setBackgroundColor_Widget(as_Widget(clear), uiBackground_ColorId); |
1138 | } | 1139 | } |
1139 | iWidget *rightEmbed = new_Widget(); | 1140 | iWidget *rightEmbed = new_Widget(); |
1140 | setId_Widget(rightEmbed, "url.rightembed"); | 1141 | setId_Widget(rightEmbed, "url.rightembed"); |
@@ -1195,9 +1196,9 @@ void createUserInterface_Root(iRoot *d) { | |||
1195 | iLabelWidget *navCancel = new_LabelWidget("${cancel}", "navbar.cancel"); | 1196 | iLabelWidget *navCancel = new_LabelWidget("${cancel}", "navbar.cancel"); |
1196 | addChildFlags_Widget(urlButtons, iClob(navCancel), | 1197 | addChildFlags_Widget(urlButtons, iClob(navCancel), |
1197 | (embedFlags | tight_WidgetFlag | hidden_WidgetFlag | | 1198 | (embedFlags | tight_WidgetFlag | hidden_WidgetFlag | |
1198 | collapse_WidgetFlag) & ~noBackground_WidgetFlag); | 1199 | collapse_WidgetFlag) /*& ~noBackground_WidgetFlag*/); |
1199 | as_Widget(navCancel)->sizeRef = as_Widget(url); | 1200 | as_Widget(navCancel)->sizeRef = as_Widget(url); |
1200 | // setFont_LabelWidget(navCancel, defaultBold_FontId); | 1201 | setFont_LabelWidget(navCancel, uiContentBold_FontId); |
1201 | setId_Widget(as_Widget(navCancel), "navbar.cancel"); | 1202 | setId_Widget(as_Widget(navCancel), "navbar.cancel"); |
1202 | iLabelWidget *pageMenuButton; | 1203 | iLabelWidget *pageMenuButton; |
1203 | /* In a mobile layout, the reload button is replaced with the Page/Ellipsis menu. */ | 1204 | /* In a mobile layout, the reload button is replaced with the Page/Ellipsis menu. */ |