Fix Android sandbox onboarding and surface insets; checkpoint application cache
android-ci / android-arm64 (push) Successful in 18m47s
android-ci / android-arm64 (push) Successful in 18m47s
This commit is contained in:
1 parent
52d2c22ec0
commit
fd41389d63
9 files changed
+365
-33
No files matched your search
@@ -32,9 +32,12 @@ component AndroidOnboarding inherits Rectangle {
|
||||
background: Theme.shaded;
|
||||
accessible-role: form;
|
||||
accessible-label: DialogBridge.title;
|
||||
property <bool> typing: Theme.ime-inset > 0px;
|
||||
// A resized Android surface can exclude the IME entirely, leaving a zero overlap inset.
|
||||
property <bool> typing: Theme.ime-inset > 0px || root.height < 480px;
|
||||
VerticalLayout {
|
||||
padding: root.typing ? 12px : 24px;
|
||||
padding-top: root.typing ? 16px : 28px;
|
||||
padding-bottom: 8px;
|
||||
spacing: root.typing ? 6px : 16px;
|
||||
Text { text: DialogBridge.title; color: Theme.fg; font-size: Theme.font-size * (root.typing ? 1.25 : 1.8); font-weight: 700; wrap: word-wrap; }
|
||||
if !root.typing: Text { text: DialogBridge.description; color: Theme.fg; font-size: Theme.font-size; wrap: word-wrap; }
|
||||
@@ -60,11 +63,6 @@ component AndroidOnboarding inherits Rectangle {
|
||||
if DialogBridge.error != "": Text { text: DialogBridge.error; color: Theme.error; wrap: word-wrap; accessible-live-region: assertive; }
|
||||
if DialogBridge.busy: Text { text: DialogBridge.loading-label; color: Theme.fg; }
|
||||
Rectangle { vertical-stretch: 1; min-height: 0px; }
|
||||
if !root.typing: VerticalLayout {
|
||||
spacing: 4px;
|
||||
vertical-stretch: 0;
|
||||
for action in DialogBridge.actions: ActionButton { text: action.label; enabled: action.enabled && !DialogBridge.busy; destructive: action.destructive; clicked => { ShellBridge.invoke(action.id); } }
|
||||
}
|
||||
ActionButton { height: Theme.touch-target; vertical-stretch: 0; text: DialogBridge.submit-label; primary: true; enabled: !DialogBridge.busy; clicked => { DialogBridge.submit(); } }
|
||||
ActionButton { height: Theme.touch-target; vertical-stretch: 0; text: DialogBridge.cancel-label; enabled: !DialogBridge.busy; clicked => { DialogBridge.cancel(); } }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user