add functions for picking colorscheme

This commit is contained in:
lucy 2026-05-28 16:55:47 +02:00
commit 479808a5a1
3 changed files with 34 additions and 18 deletions

View file

@ -3,24 +3,24 @@ import QtQuick
QtObject {
// --- The Backgrounds (Darkest to Lightest) ---
readonly property color base00: "#282828" // 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: "#928374" // Dark Foreground (Used for status bars)
readonly property color base05: "#ebdbb2" // Default Foreground, Caret
readonly property color base06: "#fbf1c7" // Light Foreground (Rarely used)
readonly property color base07: "#f9f5d7" // 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: "#cc241d" // Red (Variables, errors)
readonly property color base09: "#d65d0e" // Orange (Integers, booleans, constants)
readonly property color base0A: "#d79921" // Yellow (Classes, search text bg, warnings)
readonly property color base0B: "#98971a" // Green (Strings, success states)
readonly property color base0C: "#689d6a" // Cyan (Support, regex, escape chars)
readonly property color base0D: "#458588" // Blue (Functions, methods, headings)
readonly property color base0E: "#b16286" // Purple/Mauve (Keywords, storage, selectors)
readonly property color base0F: "#9d0006" // 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)
}

18
functions.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/env bash
command=$(tinty list | $launcher)
qsc() { qs ipc call "$@"; }
switch-theme() {
case ${1} in
fuzzel)
choice=$(tinty list | fuzzel -d)
tinty apply $choice
;;
fzf)
choice=$(tinty list | fzf)
tinty apply $choice
;;
*)
printf "usage: switch-theme <selector>\n<selector can be either fuzzel or fzf\n"
esac
}

View file

@ -1,2 +0,0 @@
#!/bin/env bash
qsc() { qs ipc call "$@"; }