matugen/templates/Colors.qml
2026-01-20 12:33:06 +01:00

30 lines
1.6 KiB
QML

pragma Singleton
import QtQuick
import Quickshell
Singleton {
id: customColors
// Core Backgrounds
readonly property color background: "{{colors.background.default.hex}}"
readonly property color foreground: "{{colors.on_background.default.hex}}"
readonly property color cursor: "{{colors.primary.default.hex}}"
// Mapping Material Colors to the 16 slots
readonly property color color0: "{{colors.surface.default.hex}}"
readonly property color color1: "{{colors.error.default.hex}}"
readonly property color color2: "{{colors.primary.default.hex}}"
readonly property color color3: "{{colors.tertiary.default.hex}}"
readonly property color color4: "{{colors.secondary.default.hex}}"
readonly property color color5: "{{colors.primary_container.default.hex}}"
readonly property color color6: "{{colors.secondary_container.default.hex}}"
readonly property color color7: "{{colors.on_surface.default.hex}}"
readonly property color color8: "{{colors.surface_variant.default.hex}}"
readonly property color color9: "{{colors.error_container.default.hex}}"
readonly property color color10: "{{colors.inverse_primary.default.hex}}"
readonly property color color11: "{{colors.on_tertiary_container.default.hex}}"
readonly property color color12: "{{colors.on_secondary_container.default.hex}}"
readonly property color color13: "{{colors.on_primary_container.default.hex}}"
readonly property color color14: "{{colors.on_surface_variant.default.hex}}"
readonly property color color15: "{{colors.inverse_surface.default.hex}}"
}