mirror of
https://github.com/redstrate/Astra.git
synced 2025-06-08 06:57:46 +00:00
Add close button in settings dialog in mobile mode
This commit is contained in:
parent
2db62f17d6
commit
7f1e1bcf51
2 changed files with 22 additions and 0 deletions
|
@ -22,6 +22,9 @@ Kirigami.ApplicationWindow {
|
|||
property bool checkedAutoLogin: false
|
||||
|
||||
pageStack {
|
||||
globalToolBar {
|
||||
style: Kirigami.ApplicationHeaderStyle.ToolBar
|
||||
}
|
||||
initialPage: Kirigami.Page {
|
||||
Kirigami.LoadingPlaceholder {
|
||||
anchors.centerIn: parent
|
||||
|
|
|
@ -2,12 +2,31 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
import org.kde.kirigamiaddons.settings as KirigamiSettings
|
||||
import org.kde.kirigami as Kirigami
|
||||
import org.kde.kirigamiaddons.components as KirigamiComponents
|
||||
|
||||
import zone.xiv.astra
|
||||
|
||||
KirigamiSettings.CategorizedSettings {
|
||||
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: [
|
||||
KirigamiSettings.SettingAction {
|
||||
actionName: "general"
|
||||
|
|
Loading…
Add table
Reference in a new issue