Files
DankMaterialShell/quickshell/Modules/Settings/Widgets/IslandRouteRow.qml
T
purian23 5623476126 feat(island): host the island as a widget in any bar configuration
- 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
2026-09-27 02:02:30 -04:00

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"))
}