mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-29 22:47:47 -04:00
- The island is now a bar widget so any bar can host one alongside the island layout and dot - Routing got simpler: pick which shortcuts open here, the rest follow the shared rules - IPC close/hide take down every surface showing the activity - Qt 6.11 pointer prune workaround so the expanded island stays clickable
20 lines
758 B
QML
20 lines
758 B
QML
import QtQuick
|
|
import qs.Common
|
|
|
|
SettingsToggleRow {
|
|
id: root
|
|
|
|
required property var store
|
|
required property string activity
|
|
property bool hosted: false
|
|
readonly property string routeKey: SettingsData.islandRouteKey(root.activity)
|
|
|
|
tags: ["island", "routing", "shortcuts", "ipc"]
|
|
visible: root.hosted || SettingsData.islandSharedRoutingMode(root.store.config) !== "always"
|
|
resetStore: root.store
|
|
resetKeys: [root.routeKey]
|
|
resetByKeys: true
|
|
checked: root.hosted ? SettingsData.islandActivityRoutingMode(root.store.config, root.activity) === "always" : root.store.setting(root.routeKey) === "island"
|
|
onToggled: checked => root.store.apply(root.routeKey, checked ? "island" : (root.hosted ? "bar" : "follow"))
|
|
}
|