From 479808a5a12fc2560555b56b5c8a0e62bec808aa Mon Sep 17 00:00:00 2001 From: lucy Date: Thu, 28 May 2026 16:55:47 +0200 Subject: [PATCH] add functions for picking colorscheme --- Colors.qml | 32 ++++++++++++++++---------------- functions.sh | 18 ++++++++++++++++++ shell-alias-and-completion.sh | 2 -- 3 files changed, 34 insertions(+), 18 deletions(-) create mode 100755 functions.sh delete mode 100644 shell-alias-and-completion.sh diff --git a/Colors.qml b/Colors.qml index 6729df2..fb96939 100644 --- a/Colors.qml +++ b/Colors.qml @@ -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) } diff --git a/functions.sh b/functions.sh new file mode 100755 index 0000000..4a3a847 --- /dev/null +++ b/functions.sh @@ -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 \n