1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

settings: break out dank bar widgets

This commit is contained in:
bbedward
2025-12-03 18:17:06 -05:00
parent 293c7b42c6
commit 62bd6e41ef
16 changed files with 2521 additions and 3774 deletions

View File

@@ -381,5 +381,23 @@ FocusScope {
}
}
}
Loader {
id: widgetsLoader
anchors.fill: parent
active: root.currentIndex === 22
visible: active
focus: active
sourceComponent: WidgetsTab {
parentModal: root.parentModal
}
onActiveChanged: {
if (active && item) {
Qt.callLater(() => item.forceActiveFocus());
}
}
}
}
}

View File

@@ -41,7 +41,7 @@ FloatingWindow {
title: I18n.tr("Settings", "settings window title")
minimumSize: Qt.size(500, 400)
implicitWidth: 800
implicitHeight: 875
implicitHeight: 940
color: Theme.withAlpha(Theme.surfaceContainer, Theme.popupTransparency)
visible: false

View File

@@ -52,7 +52,18 @@ Rectangle {
"id": "dankbar",
"text": I18n.tr("Dank Bar"),
"icon": "toolbar",
"tabIndex": 3
"children": [
{
"text": I18n.tr("Settings"),
"icon": "tune",
"tabIndex": 3
},
{
"text": I18n.tr("Widgets"),
"icon": "widgets",
"tabIndex": 22
}
]
},
{
"id": "workspaces_widgets",