From 96429160c30ba5f6dcd25c8e6a181221195c41d8 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 15 Jun 2025 18:08:45 +1000 Subject: feat: user config file Config file at `~/.config/caelestia/shell.json` --- modules/osd/Background.qml | 4 ++-- modules/osd/Content.qml | 8 ++++---- modules/osd/Interactions.qml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/osd') diff --git a/modules/osd/Background.qml b/modules/osd/Background.qml index 551637b..12cce6a 100644 --- a/modules/osd/Background.qml +++ b/modules/osd/Background.qml @@ -7,12 +7,12 @@ ShapePath { id: root required property Wrapper wrapper - readonly property real rounding: BorderConfig.rounding + readonly property real rounding: Config.border.rounding readonly property bool flatten: wrapper.width < rounding * 2 readonly property real roundingX: flatten ? wrapper.width / 2 : rounding strokeWidth: -1 - fillColor: BorderConfig.colour + fillColor: Config.border.colour PathArc { relativeX: -root.roundingX diff --git a/modules/osd/Content.qml b/modules/osd/Content.qml index 6814966..4bd43af 100644 --- a/modules/osd/Content.qml +++ b/modules/osd/Content.qml @@ -28,8 +28,8 @@ Column { value: Audio.volume onMoved: Audio.setVolume(value) - implicitWidth: OsdConfig.sizes.sliderWidth - implicitHeight: OsdConfig.sizes.sliderHeight + implicitWidth: Config.osd.sizes.sliderWidth + implicitHeight: Config.osd.sizes.sliderHeight } VerticalSlider { @@ -37,7 +37,7 @@ Column { value: root.monitor?.brightness ?? 0 onMoved: root.monitor?.setBrightness(value) - implicitWidth: OsdConfig.sizes.sliderWidth - implicitHeight: OsdConfig.sizes.sliderHeight + implicitWidth: Config.osd.sizes.sliderWidth + implicitHeight: Config.osd.sizes.sliderHeight } } diff --git a/modules/osd/Interactions.qml b/modules/osd/Interactions.qml index eecf0b6..fa75aa0 100644 --- a/modules/osd/Interactions.qml +++ b/modules/osd/Interactions.qml @@ -39,7 +39,7 @@ Scope { Timer { id: timer - interval: OsdConfig.hideDelay + interval: Config.osd.hideDelay onTriggered: { if (!root.hovered) root.visibilities.osd = false; -- cgit v1.2.3-freya