summaryrefslogtreecommitdiff
path: root/modules/controlcenter/dashboard/DashboardPane.qml
diff options
context:
space:
mode:
authorRobin Seger <pixelkhaos@gmail.com>2026-03-10 15:22:23 +0100
committerGitHub <noreply@github.com>2026-03-11 01:22:23 +1100
commit3e0360401bbbb0f640958998f6625495e5b3fdff (patch)
tree8c240477df130a95211b64649b40e7ba25972454 /modules/controlcenter/dashboard/DashboardPane.qml
parentsystemusage: improve GPU detection for AMD RX series GPU (#1246) (diff)
downloadcaelestia-shell-3e0360401bbbb0f640958998f6625495e5b3fdff.tar.gz
caelestia-shell-3e0360401bbbb0f640958998f6625495e5b3fdff.tar.bz2
caelestia-shell-3e0360401bbbb0f640958998f6625495e5b3fdff.zip
dashboard: dynamic dashboard tabs + fix performance settings updating (#1253)
* [CI] chore: update flake * Dashboard perf settings save, visibility on none enabled * Dashboard heigh stutter fixed, persist current tab * restore binding * wrapper async=false * ScriptModel, centralized tabs/panes, individual toggle * fixes, missed mediaUpdateInterval, passing values --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'modules/controlcenter/dashboard/DashboardPane.qml')
-rw-r--r--modules/controlcenter/dashboard/DashboardPane.qml20
1 files changed, 16 insertions, 4 deletions
diff --git a/modules/controlcenter/dashboard/DashboardPane.qml b/modules/controlcenter/dashboard/DashboardPane.qml
index 72e3e6e..df29f09 100644
--- a/modules/controlcenter/dashboard/DashboardPane.qml
+++ b/modules/controlcenter/dashboard/DashboardPane.qml
@@ -22,15 +22,22 @@ Item {
// General Settings
property bool enabled: Config.dashboard.enabled ?? true
property bool showOnHover: Config.dashboard.showOnHover ?? true
- property int updateInterval: Config.dashboard.updateInterval ?? 1000
+ property int mediaUpdateInterval: Config.dashboard.mediaUpdateInterval ?? 1000
+ property int resourceUpdateInterval: Config.dashboard.resourceUpdateInterval ?? 1000
property int dragThreshold: Config.dashboard.dragThreshold ?? 50
-
+
+ // Dashboard Tabs
+ property bool showDashboard: Config.dashboard.showDashboard ?? true
+ property bool showMedia: Config.dashboard.showMedia ?? true
+ property bool showPerformance: Config.dashboard.showPerformance ?? true
+ property bool showWeather: Config.dashboard.showWeather ?? true
+
// Performance Resources
property bool showBattery: Config.dashboard.performance.showBattery ?? false
property bool showGpu: Config.dashboard.performance.showGpu ?? true
property bool showCpu: Config.dashboard.performance.showCpu ?? true
property bool showMemory: Config.dashboard.performance.showMemory ?? true
- property bool showStorage: Config.dashboard.performance.showStorage ?? true
+ property bool showStorage: Config.dashboard.performance.showStorage ?? true
property bool showNetwork: Config.dashboard.performance.showNetwork ?? true
anchors.fill: parent
@@ -38,8 +45,13 @@ Item {
function saveConfig() {
Config.dashboard.enabled = root.enabled;
Config.dashboard.showOnHover = root.showOnHover;
- Config.dashboard.updateInterval = root.updateInterval;
+ Config.dashboard.mediaUpdateInterval = root.mediaUpdateInterval;
+ Config.dashboard.resourceUpdateInterval = root.resourceUpdateInterval;
Config.dashboard.dragThreshold = root.dragThreshold;
+ Config.dashboard.showDashboard = root.showDashboard;
+ Config.dashboard.showMedia = root.showMedia;
+ Config.dashboard.showPerformance = root.showPerformance;
+ Config.dashboard.showWeather = root.showWeather;
Config.dashboard.performance.showBattery = root.showBattery;
Config.dashboard.performance.showGpu = root.showGpu;
Config.dashboard.performance.showCpu = root.showCpu;