From c665c0ca98d72c172893e8bbd9c893aaa2b9f46e Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 5 May 2025 10:19:46 +1000 Subject: feat: border + colour changes --- config/Appearance.qml | 1 - config/BackgroundConfig.qml | 16 ++++++++++++++++ config/BarConfig.qml | 3 +-- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 config/BackgroundConfig.qml (limited to 'config') diff --git a/config/Appearance.qml b/config/Appearance.qml index a806aa1..1a5f58a 100644 --- a/config/Appearance.qml +++ b/config/Appearance.qml @@ -8,7 +8,6 @@ import Qt.labs.platform Singleton { id: root - property bool borders: true property bool light: false readonly property Transparency transparency: Transparency {} readonly property Rounding rounding: Rounding {} diff --git a/config/BackgroundConfig.qml b/config/BackgroundConfig.qml new file mode 100644 index 0000000..a4481fd --- /dev/null +++ b/config/BackgroundConfig.qml @@ -0,0 +1,16 @@ +pragma Singleton + +import Quickshell +import QtQuick + +Singleton { + id: root + + readonly property Border border: Border {} + + component Border: QtObject { + readonly property bool enabled: false + readonly property int thickness: Appearance.padding.normal + readonly property int rounding: Appearance.rounding.large + } +} diff --git a/config/BarConfig.qml b/config/BarConfig.qml index f0899b4..18eaf23 100644 --- a/config/BarConfig.qml +++ b/config/BarConfig.qml @@ -19,8 +19,7 @@ Singleton { property int totalHeight: height property int height: 40 property int innerHeight: 30 - property int floatingGap: 10 - property int floatingGapLarge: 15 + property int floatingGap: 10 + BackgroundConfig.border.thickness property int maxLabelWidth: 600 property int maxLabelHeight: 400 } -- cgit v1.2.3-freya