From d21665956484da7855cb9c3c3cc205db3b09592a Mon Sep 17 00:00:00 2001 From: lucy Date: Tue, 25 Aug 2026 20:45:16 +0200 Subject: [PATCH] make text color derive from base00 --- Colors.js | 32 ++++++++++++++++---------------- Colors.qml | 13 ++++++++++++- modules/bar/Pw.qml | 2 +- modules/bar/VolPopup.qml | 2 +- 4 files changed, 30 insertions(+), 19 deletions(-) diff --git a/Colors.js b/Colors.js index 4f4d276..122fb62 100644 --- a/Colors.js +++ b/Colors.js @@ -1,18 +1,18 @@ const colors = { - base00: "#161616", - base01: "#262626", - base02: "#393939", - base03: "#525252", - base04: "#dde1e6", - base05: "#f2f4f8", - base06: "#ffffff", - base07: "#08bdba", - base08: "#ee5396", - base09: "#ff7eb6", - base0A: "#ff6f00", - base0B: "#42be65", - base0C: "#3ddbd9", - base0D: "#33b1ff", - base0E: "#be95ff", - base0F: "#82cfff", + base00: "#191724", + base01: "#1f1d2e", + base02: "#26233a", + base03: "#6e6a86", + base04: "#908caa", + base05: "#e0def4", + base06: "#e0def4", + base07: "#524f67", + base08: "#eb6f92", + base09: "#f6c177", + base0A: "#ebbcba", + base0B: "#31748f", + base0C: "#9ccfd8", + base0D: "#c4a7e7", + base0E: "#f6c177", + base0F: "#524f67", } diff --git a/Colors.qml b/Colors.qml index b8ce299..8abb7bf 100644 --- a/Colors.qml +++ b/Colors.qml @@ -2,16 +2,27 @@ pragma ComponentBehavior: Bound pragma Singleton import QtQuick import Quickshell +import Quickshell.Io import "Colors.js" as Colors Singleton { id: root + Process { + running: true + id: checkRosePine + command: [ "tinty", "current" ] + stdout: StdioCollector { + id: collector + } + onExited: { console.log(collector.text) } + } + readonly property color accent: base0D readonly property color barBg: base01 readonly property color moduleBg: Qt.hsla(base01.hslHue, base01.hslSaturation, base01.hslLightness + 0.05, 1.0) readonly property color activeModuleBg: Qt.hsla(base01.hslHue, base01.hslSaturation, base01.hslLightness + 0.1, 1.0) - readonly property color text: base07 + readonly property color text: Qt.lighter(base00, 7) readonly property color base00: Colors.colors.base00 readonly property color base01: Colors.colors.base01 readonly property color base02: Colors.colors.base02 diff --git a/modules/bar/Pw.qml b/modules/bar/Pw.qml index 9fed159..ad5b57d 100644 --- a/modules/bar/Pw.qml +++ b/modules/bar/Pw.qml @@ -29,7 +29,7 @@ BarComponent { layer.effect: MultiEffect { colorization: 1.0 colorizationColor: Colors.text - brightness: 0.5 + brightness: 0.0 } } StyledText { diff --git a/modules/bar/VolPopup.qml b/modules/bar/VolPopup.qml index e74fcfa..6fb001a 100644 --- a/modules/bar/VolPopup.qml +++ b/modules/bar/VolPopup.qml @@ -56,7 +56,7 @@ PopupWindow { layer.effect: MultiEffect { colorization: 1.0 colorizationColor: Colors.text - brightness: 0.5 + } MouseArea {