From 43f56b63f6d017e340bb2f17a8ef07c5bb3c4083 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Mon, 25 Aug 2025 08:25:58 +0200 Subject: [PATCH] Add Kitty matugen template, format --- Assets/Matugen/matugen.toml | 6 ++- Assets/Matugen/templates/kitty.conf | 40 +++++++++++++++++++ Modules/SettingsPanel/Tabs/ColorSchemeTab.qml | 6 +-- 3 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 Assets/Matugen/templates/kitty.conf diff --git a/Assets/Matugen/matugen.toml b/Assets/Matugen/matugen.toml index c456eda..dea2b91 100644 --- a/Assets/Matugen/matugen.toml +++ b/Assets/Matugen/matugen.toml @@ -23,4 +23,8 @@ output_path = "~/.config/qt6ct/colors/noctalia.conf" [templates.qt5] input_path = "templates/qtct.conf" -output_path = "~/.config/qt5ct/colors/noctalia.conf" \ No newline at end of file +output_path = "~/.config/qt5ct/colors/noctalia.conf" + +[templates.kitty] +input_path = "templates/kitty.conf" +output_path = "~/.config/kitty/noctalia.conf" \ No newline at end of file diff --git a/Assets/Matugen/templates/kitty.conf b/Assets/Matugen/templates/kitty.conf new file mode 100644 index 0000000..430b880 --- /dev/null +++ b/Assets/Matugen/templates/kitty.conf @@ -0,0 +1,40 @@ +cursor {{colors.on_surface.default.hex}} +cursor_text_color {{colors.on_surface_variant.default.hex}} + +foreground {{colors.on_surface.default.hex}} +background {{colors.surface.default.hex}} +selection_foreground {{colors.on_secondary.default.hex}} +selection_background {{colors.secondary.default.hex}} +url_color {{colors.primary.default.hex}} + +# black +color0 {{colors.surface_container.default.hex}} +color8 {{colors.on_surface_variant.default.hex}} + +# red +color1 {{colors.error.default.hex}} +color9 {{colors.on_error.default.hex}} + +# green +color2 {{colors.tertiary.default.hex}} +color10 {{colors.on_tertiary.default.hex}} + +# yellow +color3 {{colors.secondary.default.hex}} +color11 {{colors.on_secondary.default.hex}} + +# blue +color4 {{colors.primary.default.hex}} +color12 {{colors.on_primary.default.hex}} + +# magenta +color5 {{colors.surface_container.default.hex}} +color13 {{colors.on_surface.default.hex}} + +# cyan +color6 {{colors.outline_variant.default.hex}} +color14 {{colors.on_surface_variant.default.hex}} + +# white +color7 {{colors.on_surface_variant.default.hex}} +color15 {{colors.on_surface.default.hex}} diff --git a/Modules/SettingsPanel/Tabs/ColorSchemeTab.qml b/Modules/SettingsPanel/Tabs/ColorSchemeTab.qml index c7343b6..61b7159 100644 --- a/Modules/SettingsPanel/Tabs/ColorSchemeTab.qml +++ b/Modules/SettingsPanel/Tabs/ColorSchemeTab.qml @@ -128,10 +128,10 @@ ColumnLayout { } } - // GTK/QT theming + // App theming NToggle { - label: "Theme external apps (GTK & Qt)" - description: "Writes GTK (gtk.css) and Qt (qt6ct) themes based on your colors." + label: "Theme external apps (GTK, Qt & kitty)" + description: "Writes GTK (gtk.css), Qt5/6 (noctalia.conf) and Kitty (noctalia.conf) themes based on your colors." checked: Settings.data.colorSchemes.themeApps onToggled: checked => { Settings.data.colorSchemes.themeApps = checked