wallust/templates/Colors.qml
2026-02-03 19:12:20 +01:00

94 lines
4.0 KiB
QML

pragma Singleton
import QtQuick
import Quickshell
Singleton {
id: customColors
// --- Core Colors ---
// Mapping specific Wallust terminal colors to UI roles
// Adjust these numbers (color4, color5) if you want different accent colors!
readonly property color primary: "{{color4}}"
readonly property color onPrimaryColor: "{{background}}"
readonly property color primaryContainer: "{{color12}}"
readonly property color onPrimaryContainerColor: "{{background}}"
readonly property color inversePrimary: "{{color4}}"
readonly property color secondary: "{{color5}}"
readonly property color onSecondaryColor: "{{background}}"
readonly property color secondaryContainer: "{{color13}}"
readonly property color onSecondaryContainerColor: "{{background}}"
readonly property color tertiary: "{{color6}}"
readonly property color onTertiaryColor: "{{background}}"
readonly property color tertiaryContainer: "{{color14}}"
readonly property color onTertiaryContainerColor: "{{background}}"
readonly property color error: "{{color1}}"
readonly property color onErrorColor: "{{background}}"
readonly property color errorContainer: "{{color9}}"
readonly property color onErrorContainerColor: "{{foreground}}"
readonly property color background: "{{background}}"
readonly property color onBackgroundColor: "{{foreground}}"
// --- Surfaces ---
readonly property color surface: "{{background}}"
readonly property color onSurfaceColor: "{{foreground}}"
readonly property color surfaceVariant: "{{color0}}"
readonly property color onSurfaceVariantColor: "{{color7}}"
readonly property color inverseSurface: "{{foreground}}"
readonly property color inverseOnSurface: "{{background}}"
readonly property color surfaceDim: "{{color0}}"
readonly property color surfaceBright: "{{color8}}"
readonly property color surfaceContainerLowest: "{{background}}"
readonly property color surfaceContainerLow: "{{color0}}"
readonly property color surfaceContainer: "{{color0}}"
readonly property color surfaceContainerHigh: "{{color8}}"
readonly property color surfaceContainerHighest: "{{color8}}"
// --- Outlines & Shadows ---
readonly property color outline: "{{color8}}"
readonly property color outlineVariant: "{{color8}}"
readonly property color shadow: "{{color0}}"
readonly property color scrim: "{{color0}}"
// --- Fixed Colors ---
readonly property color primaryFixed: "{{color4}}"
readonly property color primaryFixedDim: "{{color4}}"
readonly property color onPrimaryFixedColor: "{{background}}"
readonly property color onPrimaryFixedVariant: "{{color4}}"
readonly property color secondaryFixed: "{{color5}}"
readonly property color secondaryFixedDim: "{{color5}}"
readonly property color onSecondaryFixedColor: "{{background}}"
readonly property color onSecondaryFixedVariant: "{{color5}}"
readonly property color tertiaryFixed: "{{color6}}"
readonly property color tertiaryFixedDim: "{{color6}}"
readonly property color onTertiaryFixedColor: "{{background}}"
readonly property color onTertiaryFixedVariant: "{{color6}}"
// --- Legacy / Terminal Mappings ---
readonly property color color0: "{{color0}}"
readonly property color color1: "{{color1}}"
readonly property color color2: "{{color2}}"
readonly property color color3: "{{color3}}"
readonly property color color4: "{{color4}}"
readonly property color color5: "{{color5}}"
readonly property color color6: "{{color6}}"
readonly property color color7: "{{color7}}"
readonly property color color8: "{{color8}}"
readonly property color color9: "{{color9}}"
readonly property color color10: "{{color10}}"
readonly property color color11: "{{color11}}"
readonly property color color12: "{{color12}}"
readonly property color color13: "{{color13}}"
readonly property color color14: "{{color14}}"
readonly property color color15: "{{color15}}"
// Helper alias
readonly property color cursor: "{{cursor}}"
}