mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 16:02:51 -05:00
feat: layer namespaces (#635)
This commit is contained in:
@@ -7,6 +7,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:bluetooth-pairing"
|
||||||
|
|
||||||
property string deviceName: ""
|
property string deviceName: ""
|
||||||
property string deviceAddress: ""
|
property string deviceAddress: ""
|
||||||
property string requestType: ""
|
property string requestType: ""
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: clipboardHistoryModal
|
id: clipboardHistoryModal
|
||||||
|
|
||||||
|
layerNamespace: "dms:clipboard"
|
||||||
|
|
||||||
property int totalCount: 0
|
property int totalCount: 0
|
||||||
property var clipboardEntries: []
|
property var clipboardEntries: []
|
||||||
property string searchText: ""
|
property string searchText: ""
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import qs.Services
|
|||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property string blurNamespace: "dms:modal"
|
property string layerNamespace: "dms:modal"
|
||||||
WlrLayershell.namespace: blurNamespace
|
WlrLayershell.namespace: layerNamespace
|
||||||
|
|
||||||
property alias content: contentLoader.sourceComponent
|
property alias content: contentLoader.sourceComponent
|
||||||
property alias contentLoader: contentLoader
|
property alias contentLoader: contentLoader
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:color-picker"
|
||||||
|
|
||||||
property string pickerTitle: "Choose Color"
|
property string pickerTitle: "Choose Color"
|
||||||
property color selectedColor: SessionData.recentColors.length > 0 ? SessionData.recentColors[0] : Theme.primary
|
property color selectedColor: SessionData.recentColors.length > 0 ? SessionData.recentColors[0] : Theme.primary
|
||||||
property var onColorSelectedCallback: null
|
property var onColorSelectedCallback: null
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: fileBrowserModal
|
id: fileBrowserModal
|
||||||
|
|
||||||
|
layerNamespace: "dms:file-browser"
|
||||||
|
|
||||||
property string homeDir: StandardPaths.writableLocation(StandardPaths.HomeLocation)
|
property string homeDir: StandardPaths.writableLocation(StandardPaths.HomeLocation)
|
||||||
property string docsDir: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
|
property string docsDir: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
|
||||||
property string musicDir: StandardPaths.writableLocation(StandardPaths.MusicLocation)
|
property string musicDir: StandardPaths.writableLocation(StandardPaths.MusicLocation)
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:hyprkeybinds"
|
||||||
|
|
||||||
width: 1400
|
width: 1400
|
||||||
height: 900
|
height: 900
|
||||||
onBackgroundClicked: close()
|
onBackgroundClicked: close()
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:network-info"
|
||||||
|
|
||||||
property bool networkInfoModalVisible: false
|
property bool networkInfoModalVisible: false
|
||||||
property string networkSSID: ""
|
property string networkSSID: ""
|
||||||
property var networkData: null
|
property var networkData: null
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:network-info-wired"
|
||||||
|
|
||||||
property bool networkWiredInfoModalVisible: false
|
property bool networkWiredInfoModalVisible: false
|
||||||
property string networkID: ""
|
property string networkID: ""
|
||||||
property var networkData: null
|
property var networkData: null
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: notificationModal
|
id: notificationModal
|
||||||
|
|
||||||
|
layerNamespace: "dms:notification-modal"
|
||||||
|
|
||||||
property bool notificationModalOpen: false
|
property bool notificationModalOpen: false
|
||||||
property var notificationListRef: null
|
property var notificationListRef: null
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:polkit"
|
||||||
|
|
||||||
property string passwordInput: ""
|
property string passwordInput: ""
|
||||||
property var currentFlow: PolkitService.agent?.flow
|
property var currentFlow: PolkitService.agent?.flow
|
||||||
property bool isLoading: false
|
property bool isLoading: false
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:power-menu"
|
||||||
|
|
||||||
property int selectedIndex: 0
|
property int selectedIndex: 0
|
||||||
property int optionCount: SessionService.hibernateSupported ? 5 : 4
|
property int optionCount: SessionService.hibernateSupported ? 5 : 4
|
||||||
property rect parentBounds: Qt.rect(0, 0, 0, 0)
|
property rect parentBounds: Qt.rect(0, 0, 0, 0)
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: processListModal
|
id: processListModal
|
||||||
|
|
||||||
|
layerNamespace: "dms:process-list-modal"
|
||||||
|
|
||||||
property int currentTab: 0
|
property int currentTab: 0
|
||||||
property var tabNames: ["Processes", "Performance", "System"]
|
property var tabNames: ["Processes", "Performance", "System"]
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: settingsModal
|
id: settingsModal
|
||||||
|
|
||||||
|
layerNamespace: "dms:settings"
|
||||||
|
|
||||||
property Component settingsContent
|
property Component settingsContent
|
||||||
property alias profileBrowser: profileBrowser
|
property alias profileBrowser: profileBrowser
|
||||||
property int currentTabIndex: 0
|
property int currentTabIndex: 0
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: spotlightModal
|
id: spotlightModal
|
||||||
|
|
||||||
|
layerNamespace: "dms:spotlight"
|
||||||
|
|
||||||
property bool spotlightOpen: false
|
property bool spotlightOpen: false
|
||||||
property alias spotlightContent: spotlightContentInstance
|
property alias spotlightContent: spotlightContentInstance
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import qs.Widgets
|
|||||||
DankModal {
|
DankModal {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:wifi-password"
|
||||||
|
|
||||||
property string wifiPasswordSSID: ""
|
property string wifiPasswordSSID: ""
|
||||||
property string wifiPasswordInput: ""
|
property string wifiPasswordInput: ""
|
||||||
property string wifiUsernameInput: ""
|
property string wifiUsernameInput: ""
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import qs.Widgets
|
|||||||
DankPopout {
|
DankPopout {
|
||||||
id: appDrawerPopout
|
id: appDrawerPopout
|
||||||
|
|
||||||
|
layerNamespace: "dms:app-launcher"
|
||||||
|
|
||||||
property var triggerScreen: null
|
property var triggerScreen: null
|
||||||
|
|
||||||
// Setting to Exclusive, so virtual keyboards can send input to app drawer
|
// Setting to Exclusive, so virtual keyboards can send input to app drawer
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ import "./utils/state.js" as StateUtils
|
|||||||
DankPopout {
|
DankPopout {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:control-center"
|
||||||
|
|
||||||
property string expandedSection: ""
|
property string expandedSection: ""
|
||||||
property var triggerScreen: null
|
property var triggerScreen: null
|
||||||
property bool editMode: false
|
property bool editMode: false
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
WlrLayershell.layer: dBarLayer
|
WlrLayershell.layer: dBarLayer
|
||||||
WlrLayershell.namespace: "quickshell:bar"
|
WlrLayershell.namespace: "dms:bar"
|
||||||
|
|
||||||
property var modelData: item
|
property var modelData: item
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ import qs.Widgets
|
|||||||
DankPopout {
|
DankPopout {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:battery"
|
||||||
|
|
||||||
property var triggerScreen: null
|
property var triggerScreen: null
|
||||||
|
|
||||||
function setTriggerPosition(x, y, width, section, screen) {
|
function setTriggerPosition(x, y, width, section, screen) {
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import qs.Widgets
|
|||||||
DankPopout {
|
DankPopout {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:vpn"
|
||||||
|
|
||||||
Ref {
|
Ref {
|
||||||
service: DMSNetworkService
|
service: DMSNetworkService
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import qs.Modules.DankDash
|
|||||||
DankPopout {
|
DankPopout {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:dash"
|
||||||
|
|
||||||
property bool dashVisible: false
|
property bool dashVisible: false
|
||||||
property var triggerScreen: null
|
property var triggerScreen: null
|
||||||
property int currentTabIndex: 0
|
property int currentTabIndex: 0
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ Variants {
|
|||||||
delegate: PanelWindow {
|
delegate: PanelWindow {
|
||||||
id: dock
|
id: dock
|
||||||
|
|
||||||
WlrLayershell.namespace: "quickshell:dock"
|
WlrLayershell.namespace: "dms:dock"
|
||||||
|
|
||||||
readonly property bool isVertical: SettingsData.dockPosition === SettingsData.Position.Left || SettingsData.dockPosition === SettingsData.Position.Right
|
readonly property bool isVertical: SettingsData.dockPosition === SettingsData.Position.Left || SettingsData.dockPosition === SettingsData.Position.Right
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Scope {
|
|||||||
visible: overviewScope.overviewOpen
|
visible: overviewScope.overviewOpen
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
WlrLayershell.namespace: "quickshell:overview"
|
WlrLayershell.namespace: "dms:workspace-overview"
|
||||||
WlrLayershell.layer: WlrLayer.Overlay
|
WlrLayershell.layer: WlrLayer.Overlay
|
||||||
WlrLayershell.exclusiveZone: -1
|
WlrLayershell.exclusiveZone: -1
|
||||||
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import qs.Modules.Notifications.Center
|
|||||||
DankPopout {
|
DankPopout {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
layerNamespace: "dms:notification-center"
|
||||||
|
|
||||||
property bool notificationHistoryVisible: false
|
property bool notificationHistoryVisible: false
|
||||||
property var triggerScreen: null
|
property var triggerScreen: null
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import qs.Widgets
|
|||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: win
|
id: win
|
||||||
|
|
||||||
WlrLayershell.namespace: "quickshell:notification"
|
WlrLayershell.namespace: "dms:notification-popup"
|
||||||
|
|
||||||
required property var notificationData
|
required property var notificationData
|
||||||
required property string notificationId
|
required property string notificationId
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ import qs.Widgets
|
|||||||
DankPopout {
|
DankPopout {
|
||||||
id: processListPopout
|
id: processListPopout
|
||||||
|
|
||||||
|
layerNamespace: "dms:process-list-popout"
|
||||||
|
|
||||||
property var parentWidget: null
|
property var parentWidget: null
|
||||||
property var triggerScreen: null
|
property var triggerScreen: null
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ import qs.Widgets
|
|||||||
DankPopout {
|
DankPopout {
|
||||||
id: systemUpdatePopout
|
id: systemUpdatePopout
|
||||||
|
|
||||||
|
layerNamespace: "dms:system-update"
|
||||||
|
|
||||||
property var parentWidget: null
|
property var parentWidget: null
|
||||||
property var triggerScreen: null
|
property var triggerScreen: null
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import qs.Services
|
|||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property string blurNamespace: "dms:popout"
|
property string layerNamespace: "dms:popout"
|
||||||
WlrLayershell.namespace: blurNamespace
|
WlrLayershell.namespace: layerNamespace
|
||||||
|
|
||||||
property alias content: contentLoader.sourceComponent
|
property alias content: contentLoader.sourceComponent
|
||||||
property alias contentLoader: contentLoader
|
property alias contentLoader: contentLoader
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ pragma ComponentBehavior: Bound
|
|||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
WlrLayershell.namespace: "quickshell:slideout"
|
property string layerNamespace: "dms:slideout"
|
||||||
|
WlrLayershell.namespace: layerNamespace
|
||||||
|
|
||||||
property bool isVisible: false
|
property bool isVisible: false
|
||||||
property var targetScreen: null
|
property var targetScreen: null
|
||||||
|
|||||||
Reference in New Issue
Block a user