mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +00:00
Add close button in settings dialog in mobile mode
(cherry picked from commit 7f1e1bcf51
)
This commit is contained in:
parent
7bac60de17
commit
b6f04db01b
3 changed files with 28 additions and 4 deletions
2
external/libphysis
vendored
2
external/libphysis
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 6e0b38612bcde1597c366bf341db02c8549299be
|
Subproject commit ca98182e41ea2e06af831e1613343c7172cfd6ce
|
|
@ -21,11 +21,16 @@ Kirigami.ApplicationWindow {
|
||||||
|
|
||||||
property bool checkedAutoLogin: false
|
property bool checkedAutoLogin: false
|
||||||
|
|
||||||
pageStack.initialPage: Kirigami.Page {
|
pageStack {
|
||||||
|
globalToolBar {
|
||||||
|
style: Kirigami.ApplicationHeaderStyle.ToolBar
|
||||||
|
}
|
||||||
|
initialPage: Kirigami.Page {
|
||||||
Kirigami.LoadingPlaceholder {
|
Kirigami.LoadingPlaceholder {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onClosing: (close) => {
|
onClosing: (close) => {
|
||||||
if (LauncherCore.isPatching()) {
|
if (LauncherCore.isPatching()) {
|
||||||
|
|
|
@ -2,12 +2,31 @@
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import org.kde.kirigamiaddons.settings as KirigamiSettings
|
import org.kde.kirigamiaddons.settings as KirigamiSettings
|
||||||
|
import org.kde.kirigami as Kirigami
|
||||||
|
import org.kde.kirigamiaddons.components as KirigamiComponents
|
||||||
|
|
||||||
import zone.xiv.astra
|
import zone.xiv.astra
|
||||||
|
|
||||||
KirigamiSettings.CategorizedSettings {
|
KirigamiSettings.CategorizedSettings {
|
||||||
id: settingsPage
|
id: settingsPage
|
||||||
|
|
||||||
|
KirigamiComponents.FloatingButton {
|
||||||
|
anchors {
|
||||||
|
right: parent.right
|
||||||
|
bottom: parent.bottom
|
||||||
|
}
|
||||||
|
|
||||||
|
z: 100
|
||||||
|
margins: Kirigami.Units.largeSpacing
|
||||||
|
visible: LauncherCore.isSteamDeck
|
||||||
|
|
||||||
|
action: Kirigami.Action {
|
||||||
|
text: i18nc("@action:button Close Settings")
|
||||||
|
icon.name: "dialog-close-symbolic"
|
||||||
|
onTriggered: pageStack.layers.pop()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
actions: [
|
actions: [
|
||||||
KirigamiSettings.SettingAction {
|
KirigamiSettings.SettingAction {
|
||||||
actionName: "general"
|
actionName: "general"
|
||||||
|
|
Loading…
Add table
Reference in a new issue