add full proj
This commit is contained in:
49
config/Theme.qml
Normal file
49
config/Theme.qml
Normal file
@@ -0,0 +1,49 @@
|
||||
pragma Singleton
|
||||
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
|
||||
Singleton {
|
||||
// --- geometry ---
|
||||
readonly property int barHeight: 34
|
||||
readonly property int radius: 8
|
||||
readonly property int spacing: 6
|
||||
readonly property int padding: 10
|
||||
readonly property int gap: 4
|
||||
|
||||
// --- palette (Catppuccin Mocha, darkened toward OLED black) ---
|
||||
readonly property color base: "#0d0d12"
|
||||
readonly property color mantle: "#08080b"
|
||||
readonly property color surface0: "#1c1c28"
|
||||
readonly property color surface1: "#2a2a3a"
|
||||
readonly property color overlay: "#52526a"
|
||||
readonly property color text: "#cdd6f4"
|
||||
readonly property color subtext: "#a6adc8"
|
||||
|
||||
readonly property color rosewater: "#f5e0dc"
|
||||
readonly property color red: "#f38ba8"
|
||||
readonly property color peach: "#fab387"
|
||||
readonly property color yellow: "#f9e2af"
|
||||
readonly property color green: "#a6e3a1"
|
||||
readonly property color teal: "#94e2d5"
|
||||
readonly property color sky: "#89dceb"
|
||||
readonly property color blue: "#89b4fa"
|
||||
readonly property color mauve: "#cba6f7"
|
||||
readonly property color lavender: "#b4befe"
|
||||
|
||||
// bar background, slightly translucent
|
||||
readonly property color barColor: Qt.rgba(0.051, 0.051, 0.071, 0.94)
|
||||
|
||||
// --- typography ---
|
||||
readonly property string font: "Inter, sans-serif"
|
||||
readonly property string monoFont: "JetBrainsMono Nerd Font, monospace"
|
||||
readonly property int fontSize: 15
|
||||
|
||||
// map a 0..100 load value to a colour (green -> yellow -> red)
|
||||
function loadColor(pct) {
|
||||
if (pct >= 85) return red;
|
||||
if (pct >= 60) return peach;
|
||||
if (pct >= 35) return yellow;
|
||||
return green;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user