1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-12 15:29:43 -04:00

quickshell: drop support for 0.2, require 0.3+

- Remove all compat code
- Rewire LegacyNetworkService to use Quickshell.Networking
- Add parentWindow to settings child windows
This commit is contained in:
bbedward
2026-05-11 13:04:29 -04:00
parent 3989c7f801
commit b8f4c350a8
52 changed files with 1472 additions and 2064 deletions
@@ -1,6 +1,7 @@
import QtQuick
import Quickshell.Wayland
import qs.Common
import qs.Modals
import qs.Services
import qs.Widgets
@@ -18,9 +19,23 @@ DankPopout {
property bool _reopenAfterUpgrade: false
readonly property bool polkitModalOpen: PopoutService.polkitAuthModal?.visible ?? false
readonly property bool polkitModalOpen: polkitAuthSurfaceModal.shouldBeVisible
readonly property bool anyModalOpen: polkitModalOpen
Connections {
target: PolkitService.agent
enabled: PolkitService.polkitAvailable && systemUpdatePopout.shouldBeVisible
function onAuthenticationRequestStarted() {
polkitAuthSurfaceModal.open();
}
}
PolkitAuthSurfaceModal {
id: polkitAuthSurfaceModal
parentPopout: systemUpdatePopout
}
backgroundInteractive: !anyModalOpen
customKeyboardFocus: {
@@ -33,16 +48,6 @@ DankPopout {
return WlrKeyboardFocus.Exclusive;
}
Connections {
target: PolkitService.agent
enabled: PolkitService.polkitAvailable && triggerScreen !== null
function onAuthenticationRequestStarted() {
if (PopoutService.polkitAuthModal && triggerScreen)
PopoutService.polkitAuthModal.screen = triggerScreen;
}
}
Connections {
target: SystemUpdateService
function onIsUpgradingChanged() {