mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-08 04:09:15 -04:00
69f3dee25a
- add dedicated Compositor pages for comp specifc features - add Dank Bar Appearance subsection - improve lazy loading, caching, search routing, & IPC navigation - standardized responsive Setting categories from global animations
26 lines
477 B
QML
26 lines
477 B
QML
pragma Singleton
|
|
|
|
import QtQuick
|
|
import Quickshell
|
|
import qs.Common
|
|
|
|
Singleton {
|
|
id: root
|
|
|
|
property string selectedBarId: "default"
|
|
|
|
function normalizeSelectedBar() {
|
|
if (SettingsData.getBarConfig(selectedBarId))
|
|
return;
|
|
selectedBarId = SettingsData.barConfigs[0]?.id ?? "default";
|
|
}
|
|
|
|
Connections {
|
|
target: SettingsData
|
|
|
|
function onBarConfigsChanged() {
|
|
root.normalizeSelectedBar();
|
|
}
|
|
}
|
|
}
|