From d919056a03eb44b370b348ce10d18dfc399fa629 Mon Sep 17 00:00:00 2001 From: lucy Date: Sat, 16 May 2026 12:20:14 +0200 Subject: [PATCH] add bar transparency --- Colors.qml | 32 +++++++++++++++--------------- modules/bar/Bar.qml | 7 +++++-- modules/notifications/NotiCard.qml | 2 +- modules/wallpaper/Wallpaper.qml | 8 ++++---- settings/settings.ini | 8 ++++---- 5 files changed, 30 insertions(+), 27 deletions(-) diff --git a/Colors.qml b/Colors.qml index c23b961..fb96939 100644 --- a/Colors.qml +++ b/Colors.qml @@ -3,24 +3,24 @@ import QtQuick QtObject { // --- The Backgrounds (Darkest to Lightest) --- - readonly property color base00: "#1d2021" // Default Background - readonly property color base01: "#3c3836" // Lighter Background (Status bars, panels) - readonly property color base02: "#504945" // Selection Background - readonly property color base03: "#665c54" // Comments, Invisibles, line highlighting + readonly property color base00: "#11121d" // Default Background + readonly property color base01: "#212234" // Lighter Background (Status bars, panels) + readonly property color base02: "#212234" // Selection Background + readonly property color base03: "#353945" // Comments, Invisibles, line highlighting // --- The Foregrounds (Darkest to Lightest) --- - readonly property color base04: "#bdae93" // Dark Foreground (Used for status bars) - readonly property color base05: "#d5c4a1" // Default Foreground, Caret - readonly property color base06: "#ebdbb2" // Light Foreground (Rarely used) - readonly property color base07: "#fbf1c7" // Lightest Foreground + readonly property color base04: "#4a5057" // Dark Foreground (Used for status bars) + readonly property color base05: "#a0a8cd" // Default Foreground, Caret + readonly property color base06: "#abb2bf" // Light Foreground (Rarely used) + readonly property color base07: "#bcc2dc" // Lightest Foreground // --- The Accent Colors --- - readonly property color base08: "#fb4934" // Red (Variables, errors) - readonly property color base09: "#fe8019" // Orange (Integers, booleans, constants) - readonly property color base0A: "#fabd2f" // Yellow (Classes, search text bg, warnings) - readonly property color base0B: "#b8bb26" // Green (Strings, success states) - readonly property color base0C: "#8ec07c" // Cyan (Support, regex, escape chars) - readonly property color base0D: "#83a598" // Blue (Functions, methods, headings) - readonly property color base0E: "#d3869b" // Purple/Mauve (Keywords, storage, selectors) - readonly property color base0F: "#d65d0e" // Brown/Flamingo (Deprecated, embedded tags) + readonly property color base08: "#ee6d85" // Red (Variables, errors) + readonly property color base09: "#f6955b" // Orange (Integers, booleans, constants) + readonly property color base0A: "#d7a65f" // Yellow (Classes, search text bg, warnings) + readonly property color base0B: "#95c561" // Green (Strings, success states) + readonly property color base0C: "#9fbbf3" // Cyan (Support, regex, escape chars) + readonly property color base0D: "#7199ee" // Blue (Functions, methods, headings) + readonly property color base0E: "#a485dd" // Purple/Mauve (Keywords, storage, selectors) + readonly property color base0F: "#773440" // Brown/Flamingo (Deprecated, embedded tags) } diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 06ef958..b567d8a 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -1,13 +1,14 @@ import QtQuick import QtQuick.Layouts import Quickshell +import Quickshell.Wayland import qs import qs.settings Variants { model: Quickshell.screens - delegate: PanelWindow { + delegate: WlrLayershell { id: root required property var modelData screen: modelData @@ -17,7 +18,9 @@ Variants { right: true } implicitHeight: Config.barHeight - color: Colors.base00 + color: Qt.rgba(Colors.base00.r, Colors.base00.g, Colors.base00.b, 0.8) + layer: WlrLayer.Top + RowLayout { id: leftLayout spacing: 5 diff --git a/modules/notifications/NotiCard.qml b/modules/notifications/NotiCard.qml index 965a177..64cc052 100644 --- a/modules/notifications/NotiCard.qml +++ b/modules/notifications/NotiCard.qml @@ -84,7 +84,7 @@ WrapperRectangle { root.color = Colors.base01; } onClicked: { - root.notification.dismiss(); + root.notification ? root.notification.dismiss() : ''; } } } diff --git a/modules/wallpaper/Wallpaper.qml b/modules/wallpaper/Wallpaper.qml index 1b16909..9ad1b5f 100644 --- a/modules/wallpaper/Wallpaper.qml +++ b/modules/wallpaper/Wallpaper.qml @@ -10,6 +10,7 @@ Variants { layer: WlrLayer.Background required property ShellScreen modelData screen: modelData + exclusionMode: ExclusionMode.Ignore anchors { top: true @@ -18,10 +19,9 @@ Variants { right: true } Image { - cache: true - anchors.fill: parent - source: Config.wallpaper - + cache: true + anchors.fill: parent + source: Config.wallpaper } } } diff --git a/settings/settings.ini b/settings/settings.ini index d63718c..664a0fe 100644 --- a/settings/settings.ini +++ b/settings/settings.ini @@ -1,6 +1,6 @@ [General] -barHeight=30 +barHeight=34 font=Maple Mono -fontSize=14 -roudning=16 -wallpaper=@Variant(\0\0\0\x11\0\0\0\x31\x66ile:///home/lucy/.wall/kikis_deliveryservice.png) +fontSize=16 +roudning=0 +wallpaper=@Variant(\0\0\0\x11\0\0\0!file:///home/lucy/.wall/faris.png)