diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/root.c | 4 | ||||
-rw-r--r-- | src/ui/widget.c | 3 | ||||
-rw-r--r-- | src/ui/widget.h | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/root.c b/src/ui/root.c index 28aa4b92..18a71200 100644 --- a/src/ui/root.c +++ b/src/ui/root.c | |||
@@ -490,6 +490,7 @@ static iBool handleRootCommands_(iWidget *root, const char *cmd) { | |||
490 | /* Place the sidebar next to or under doctabs depending on orientation. */ | 490 | /* Place the sidebar next to or under doctabs depending on orientation. */ |
491 | iSidebarWidget *sidebar = findChild_Widget(root, "sidebar"); | 491 | iSidebarWidget *sidebar = findChild_Widget(root, "sidebar"); |
492 | removeChild_Widget(parent_Widget(sidebar), sidebar); | 492 | removeChild_Widget(parent_Widget(sidebar), sidebar); |
493 | iChangeFlags(as_Widget(sidebar)->flags2, fadeBackground_WidgetFlag2, isPortrait_App()); | ||
493 | if (isLandscape_App()) { | 494 | if (isLandscape_App()) { |
494 | setVisualOffset_Widget(as_Widget(sidebar), 0, 0, 0); | 495 | setVisualOffset_Widget(as_Widget(sidebar), 0, 0, 0); |
495 | addChildPos_Widget(findChild_Widget(root, "tabs.content"), iClob(sidebar), front_WidgetAddPos); | 496 | addChildPos_Widget(findChild_Widget(root, "tabs.content"), iClob(sidebar), front_WidgetAddPos); |
@@ -829,6 +830,8 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) { | |||
829 | } | 830 | } |
830 | else if (equal_Command(cmd, "navbar.clear")) { | 831 | else if (equal_Command(cmd, "navbar.clear")) { |
831 | iInputWidget *url = findChild_Widget(navBar, "url"); | 832 | iInputWidget *url = findChild_Widget(navBar, "url"); |
833 | setText_InputWidget(url, collectNew_String()); | ||
834 | #if 0 | ||
832 | selectAll_InputWidget(url); | 835 | selectAll_InputWidget(url); |
833 | /* Emulate a Backspace keypress. */ | 836 | /* Emulate a Backspace keypress. */ |
834 | class_InputWidget(url)->processEvent( | 837 | class_InputWidget(url)->processEvent( |
@@ -837,6 +840,7 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) { | |||
837 | .timestamp = SDL_GetTicks(), | 840 | .timestamp = SDL_GetTicks(), |
838 | .state = SDL_PRESSED, | 841 | .state = SDL_PRESSED, |
839 | .keysym = { .sym = SDLK_BACKSPACE } }); | 842 | .keysym = { .sym = SDLK_BACKSPACE } }); |
843 | #endif | ||
840 | return iTrue; | 844 | return iTrue; |
841 | } | 845 | } |
842 | else if (equal_Command(cmd, "navbar.cancel")) { | 846 | else if (equal_Command(cmd, "navbar.cancel")) { |
diff --git a/src/ui/widget.c b/src/ui/widget.c index bb3a39f1..9f1c8640 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -1393,7 +1393,8 @@ void drawLayerEffects_Widget(const iWidget *d) { | |||
1393 | shadowBorder = iFalse; | 1393 | shadowBorder = iFalse; |
1394 | } | 1394 | } |
1395 | } | 1395 | } |
1396 | const iBool isFaded = fadeBackground && ~d->flags & noFadeBackground_WidgetFlag; | 1396 | const iBool isFaded = (fadeBackground && ~d->flags & noFadeBackground_WidgetFlag) || |
1397 | (d->flags2 & fadeBackground_WidgetFlag2); | ||
1397 | if (shadowBorder && ~d->flags & noShadowBorder_WidgetFlag) { | 1398 | if (shadowBorder && ~d->flags & noShadowBorder_WidgetFlag) { |
1398 | iPaint p; | 1399 | iPaint p; |
1399 | init_Paint(&p); | 1400 | init_Paint(&p); |
diff --git a/src/ui/widget.h b/src/ui/widget.h index 35be1bcb..9c4c44fb 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -125,6 +125,7 @@ enum iWidgetFlag { | |||
125 | 125 | ||
126 | enum iWidgetFlag2 { | 126 | enum iWidgetFlag2 { |
127 | slidingSheetDraggable_WidgetFlag2 = iBit(1), | 127 | slidingSheetDraggable_WidgetFlag2 = iBit(1), |
128 | fadeBackground_WidgetFlag2 = iBit(2), | ||
128 | }; | 129 | }; |
129 | 130 | ||
130 | enum iWidgetAddPos { | 131 | enum iWidgetAddPos { |