From 960d7c45987cbb59a05af32a24cf900f32cc30e6 Mon Sep 17 00:00:00 2001 From: lucy Date: Sat, 23 May 2026 14:17:17 +0200 Subject: [PATCH] only show bat module when the device is a laptop --- Colors.qml | 32 ++++++++++++++++---------------- modules/bar/Bat.qml | 1 + settings/settings.ini | 2 +- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Colors.qml b/Colors.qml index c2c3ae2..dc56b37 100644 --- a/Colors.qml +++ b/Colors.qml @@ -3,24 +3,24 @@ import QtQuick QtObject { // --- The Backgrounds (Darkest to Lightest) --- - readonly property color base00: "#1e1e2e" // Default Background - readonly property color base01: "#181825" // Lighter Background (Status bars, panels) - readonly property color base02: "#313244" // Selection Background - readonly property color base03: "#45475a" // Comments, Invisibles, line highlighting + readonly property color base00: "#262427" // Default Background + readonly property color base01: "#3b393c" // Lighter Background (Status bars, panels) + readonly property color base02: "#514f52" // Selection Background + readonly property color base03: "#676567" // Comments, Invisibles, line highlighting // --- The Foregrounds (Darkest to Lightest) --- - readonly property color base04: "#585b70" // Dark Foreground (Used for status bars) - readonly property color base05: "#cdd6f4" // Default Foreground, Caret - readonly property color base06: "#f5e0dc" // Light Foreground (Rarely used) - readonly property color base07: "#b4befe" // Lightest Foreground + readonly property color base04: "#7c7b7d" // Dark Foreground (Used for status bars) + readonly property color base05: "#fcfcfc" // Default Foreground, Caret + readonly property color base06: "#eae9eb" // Light Foreground (Rarely used) + readonly property color base07: "#fcfcfc" // Lightest Foreground // --- The Accent Colors --- - readonly property color base08: "#f38ba8" // Red (Variables, errors) - readonly property color base09: "#fab387" // Orange (Integers, booleans, constants) - readonly property color base0A: "#f9e2af" // Yellow (Classes, search text bg, warnings) - readonly property color base0B: "#a6e3a1" // Green (Strings, success states) - readonly property color base0C: "#94e2d5" // Cyan (Support, regex, escape chars) - readonly property color base0D: "#89b4fa" // Blue (Functions, methods, headings) - readonly property color base0E: "#cba6f7" // Purple/Mauve (Keywords, storage, selectors) - readonly property color base0F: "#f2cdcd" // Brown/Flamingo (Deprecated, embedded tags) + readonly property color base08: "#ff7272" // Red (Variables, errors) + readonly property color base09: "#fc9d6f" // Orange (Integers, booleans, constants) + readonly property color base0A: "#ffca58" // Yellow (Classes, search text bg, warnings) + readonly property color base0B: "#bcdf59" // Green (Strings, success states) + readonly property color base0C: "#aee8f4" // Cyan (Support, regex, escape chars) + readonly property color base0D: "#49cae4" // Blue (Functions, methods, headings) + readonly property color base0E: "#a093e2" // Purple/Mauve (Keywords, storage, selectors) + readonly property color base0F: "#ff8787" // Brown/Flamingo (Deprecated, embedded tags) } diff --git a/modules/bar/Bat.qml b/modules/bar/Bat.qml index df41b10..b215c41 100644 --- a/modules/bar/Bat.qml +++ b/modules/bar/Bat.qml @@ -10,6 +10,7 @@ Rectangle { id: root clip: true color: Colors.base01 + visible: UPower.displayDevice.isLaptopBattery property double percent: UPower.displayDevice.percentage * 100 property bool hasBattery: UPower.displayDevice.isLaptopBattery property bool charging: UPower.displayDevice.state == UPowerDeviceState.Charging diff --git a/settings/settings.ini b/settings/settings.ini index 2967741..419c9ee 100644 --- a/settings/settings.ini +++ b/settings/settings.ini @@ -1,6 +1,6 @@ [General] barHeight=34 -font=Google Sans +font=0xProto Nerd Font fontSize=14 opacity=1 roudning=16