mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
ensure loader patterns everywhere
This commit is contained in:
@@ -312,7 +312,7 @@ DankModal {
|
||||
target: "clipboard"
|
||||
}
|
||||
|
||||
content: Component {
|
||||
property Component clipboardContent: Component {
|
||||
Column {
|
||||
anchors.fill: parent
|
||||
anchors.margins: Theme.spacingL
|
||||
@@ -637,4 +637,6 @@ DankModal {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
content: clipboardContent
|
||||
}
|
||||
|
||||
@@ -9,8 +9,14 @@ import qs.Modules.Notifications.Center
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
|
||||
Item {
|
||||
id: root
|
||||
DankModal {
|
||||
id: notificationModal
|
||||
|
||||
width: 500
|
||||
height: 700
|
||||
visible: notificationModalOpen
|
||||
keyboardFocus: "ondemand"
|
||||
onBackgroundClicked: hide()
|
||||
|
||||
NotificationKeyboardController {
|
||||
id: modalKeyboardController
|
||||
@@ -19,11 +25,6 @@ Item {
|
||||
onClose: function() { notificationModal.hide() }
|
||||
}
|
||||
|
||||
property alias notificationModal: notificationModal
|
||||
|
||||
DankModal {
|
||||
id: notificationModal
|
||||
|
||||
property bool notificationModalOpen: false
|
||||
property var notificationListRef: null
|
||||
|
||||
@@ -51,26 +52,6 @@ Item {
|
||||
show()
|
||||
}
|
||||
|
||||
|
||||
|
||||
visible: notificationModalOpen
|
||||
width: 500
|
||||
height: 700
|
||||
keyboardFocus: "ondemand"
|
||||
backgroundColor: Theme.popupBackground()
|
||||
cornerRadius: Theme.cornerRadius
|
||||
borderColor: Theme.outlineMedium
|
||||
borderWidth: 1
|
||||
enableShadow: true
|
||||
|
||||
onVisibleChanged: {
|
||||
if (visible && !notificationModalOpen)
|
||||
show()
|
||||
}
|
||||
|
||||
onBackgroundClicked: {
|
||||
notificationModalOpen = false
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
function open() {
|
||||
@@ -91,7 +72,7 @@ Item {
|
||||
target: "notifications"
|
||||
}
|
||||
|
||||
content: Component {
|
||||
property Component notificationContent: Component {
|
||||
FocusScope {
|
||||
id: notificationKeyHandler
|
||||
|
||||
@@ -171,5 +152,6 @@ Item {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
content: notificationContent
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
pragma ComponentBehavior
|
||||
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
@@ -33,7 +34,7 @@ DankModal {
|
||||
keyboardFocus: "ondemand"
|
||||
onBackgroundClicked: hide()
|
||||
|
||||
content: Component {
|
||||
property Component settingsContent: Component {
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
focus: true
|
||||
@@ -181,6 +182,8 @@ DankModal {
|
||||
}
|
||||
}
|
||||
|
||||
content: settingsContent
|
||||
|
||||
IpcHandler {
|
||||
function open() {
|
||||
settingsModal.show()
|
||||
|
||||
@@ -89,7 +89,7 @@ DankModal {
|
||||
target: "spotlight"
|
||||
}
|
||||
|
||||
content: Component {
|
||||
property Component spotlightContent: Component {
|
||||
Item {
|
||||
id: spotlightKeyHandler
|
||||
|
||||
@@ -846,4 +846,6 @@ DankModal {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
content: spotlightContent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user