1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

feat: layer namespaces (#635)

This commit is contained in:
claymorwan
2025-11-05 19:56:56 +01:00
committed by GitHub
parent 0ee89920fd
commit 95c711ce7e
29 changed files with 54 additions and 9 deletions

View File

@@ -7,6 +7,8 @@ import qs.Widgets
DankModal {
id: root
layerNamespace: "dms:bluetooth-pairing"
property string deviceName: ""
property string deviceAddress: ""
property string requestType: ""

View File

@@ -12,6 +12,8 @@ import qs.Widgets
DankModal {
id: clipboardHistoryModal
layerNamespace: "dms:clipboard"
property int totalCount: 0
property var clipboardEntries: []
property string searchText: ""

View File

@@ -8,8 +8,8 @@ import qs.Services
PanelWindow {
id: root
property string blurNamespace: "dms:modal"
WlrLayershell.namespace: blurNamespace
property string layerNamespace: "dms:modal"
WlrLayershell.namespace: layerNamespace
property alias content: contentLoader.sourceComponent
property alias contentLoader: contentLoader

View File

@@ -10,6 +10,8 @@ import qs.Widgets
DankModal {
id: root
layerNamespace: "dms:color-picker"
property string pickerTitle: "Choose Color"
property color selectedColor: SessionData.recentColors.length > 0 ? SessionData.recentColors[0] : Theme.primary
property var onColorSelectedCallback: null

View File

@@ -11,6 +11,8 @@ import qs.Widgets
DankModal {
id: fileBrowserModal
layerNamespace: "dms:file-browser"
property string homeDir: StandardPaths.writableLocation(StandardPaths.HomeLocation)
property string docsDir: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
property string musicDir: StandardPaths.writableLocation(StandardPaths.MusicLocation)

View File

@@ -9,6 +9,8 @@ import qs.Widgets
DankModal {
id: root
layerNamespace: "dms:hyprkeybinds"
width: 1400
height: 900
onBackgroundClicked: close()

View File

@@ -8,6 +8,8 @@ import qs.Widgets
DankModal {
id: root
layerNamespace: "dms:network-info"
property bool networkInfoModalVisible: false
property string networkSSID: ""
property var networkData: null

View File

@@ -8,6 +8,8 @@ import qs.Widgets
DankModal {
id: root
layerNamespace: "dms:network-info-wired"
property bool networkWiredInfoModalVisible: false
property string networkID: ""
property var networkData: null

View File

@@ -9,6 +9,8 @@ import qs.Widgets
DankModal {
id: notificationModal
layerNamespace: "dms:notification-modal"
property bool notificationModalOpen: false
property var notificationListRef: null

View File

@@ -7,6 +7,8 @@ import qs.Widgets
DankModal {
id: root
layerNamespace: "dms:polkit"
property string passwordInput: ""
property var currentFlow: PolkitService.agent?.flow
property bool isLoading: false

View File

@@ -7,6 +7,8 @@ import qs.Widgets
DankModal {
id: root
layerNamespace: "dms:power-menu"
property int selectedIndex: 0
property int optionCount: SessionService.hibernateSupported ? 5 : 4
property rect parentBounds: Qt.rect(0, 0, 0, 0)

View File

@@ -9,6 +9,8 @@ import qs.Widgets
DankModal {
id: processListModal
layerNamespace: "dms:process-list-modal"
property int currentTab: 0
property var tabNames: ["Processes", "Performance", "System"]

View File

@@ -11,6 +11,8 @@ import qs.Widgets
DankModal {
id: settingsModal
layerNamespace: "dms:settings"
property Component settingsContent
property alias profileBrowser: profileBrowser
property int currentTabIndex: 0

View File

@@ -12,6 +12,8 @@ import qs.Widgets
DankModal {
id: spotlightModal
layerNamespace: "dms:spotlight"
property bool spotlightOpen: false
property alias spotlightContent: spotlightContentInstance

View File

@@ -7,6 +7,8 @@ import qs.Widgets
DankModal {
id: root
layerNamespace: "dms:wifi-password"
property string wifiPasswordSSID: ""
property string wifiPasswordInput: ""
property string wifiUsernameInput: ""

View File

@@ -13,6 +13,8 @@ import qs.Widgets
DankPopout {
id: appDrawerPopout
layerNamespace: "dms:app-launcher"
property var triggerScreen: null
// Setting to Exclusive, so virtual keyboards can send input to app drawer

View File

@@ -20,6 +20,8 @@ import "./utils/state.js" as StateUtils
DankPopout {
id: root
layerNamespace: "dms:control-center"
property string expandedSection: ""
property var triggerScreen: null
property bool editMode: false

View File

@@ -146,7 +146,7 @@ Item {
}
WlrLayershell.layer: dBarLayer
WlrLayershell.namespace: "quickshell:bar"
WlrLayershell.namespace: "dms:bar"
property var modelData: item

View File

@@ -11,6 +11,8 @@ import qs.Widgets
DankPopout {
id: root
layerNamespace: "dms:battery"
property var triggerScreen: null
function setTriggerPosition(x, y, width, section, screen) {

View File

@@ -13,6 +13,8 @@ import qs.Widgets
DankPopout {
id: root
layerNamespace: "dms:vpn"
Ref {
service: DMSNetworkService
}

View File

@@ -12,6 +12,8 @@ import qs.Modules.DankDash
DankPopout {
id: root
layerNamespace: "dms:dash"
property bool dashVisible: false
property var triggerScreen: null
property int currentTabIndex: 0

View File

@@ -18,7 +18,7 @@ Variants {
delegate: PanelWindow {
id: dock
WlrLayershell.namespace: "quickshell:dock"
WlrLayershell.namespace: "dms:dock"
readonly property bool isVertical: SettingsData.dockPosition === SettingsData.Position.Left || SettingsData.dockPosition === SettingsData.Position.Right

View File

@@ -32,7 +32,7 @@ Scope {
visible: overviewScope.overviewOpen
color: "transparent"
WlrLayershell.namespace: "quickshell:overview"
WlrLayershell.namespace: "dms:workspace-overview"
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.exclusiveZone: -1
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive

View File

@@ -12,6 +12,8 @@ import qs.Modules.Notifications.Center
DankPopout {
id: root
layerNamespace: "dms:notification-center"
property bool notificationHistoryVisible: false
property var triggerScreen: null

View File

@@ -12,7 +12,7 @@ import qs.Widgets
PanelWindow {
id: win
WlrLayershell.namespace: "quickshell:notification"
WlrLayershell.namespace: "dms:notification-popup"
required property var notificationData
required property string notificationId

View File

@@ -14,6 +14,8 @@ import qs.Widgets
DankPopout {
id: processListPopout
layerNamespace: "dms:process-list-popout"
property var parentWidget: null
property var triggerScreen: null

View File

@@ -11,6 +11,8 @@ import qs.Widgets
DankPopout {
id: systemUpdatePopout
layerNamespace: "dms:system-update"
property var parentWidget: null
property var triggerScreen: null

View File

@@ -8,8 +8,8 @@ import qs.Services
PanelWindow {
id: root
property string blurNamespace: "dms:popout"
WlrLayershell.namespace: blurNamespace
property string layerNamespace: "dms:popout"
WlrLayershell.namespace: layerNamespace
property alias content: contentLoader.sourceComponent
property alias contentLoader: contentLoader

View File

@@ -10,7 +10,8 @@ pragma ComponentBehavior: Bound
PanelWindow {
id: root
WlrLayershell.namespace: "quickshell:slideout"
property string layerNamespace: "dms:slideout"
WlrLayershell.namespace: layerNamespace
property bool isVisible: false
property var targetScreen: null