From d4990b9b421f12e33a19a278225957de46994016 Mon Sep 17 00:00:00 2001 From: Djordje <34074618+tepavcevic@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:39:01 +0200 Subject: [PATCH] add `title_bar.inactive_background` styles (#26) * add `title_bar.inactive_background` styles * crust color. 80% transparent. blur? * bump version * 85% opacity; tad less transparent --------- Co-authored-by: Andrew Tec <21319730+tecandrew@users.noreply.github.com> --- extension.toml | 2 +- themes/catppuccin-mauve.json | 8 ++++++++ themes/catppuccin-no-italics-mauve.json | 8 ++++++++ zed.tera | 2 ++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/extension.toml b/extension.toml index 9ff8b62..6289081 100644 --- a/extension.toml +++ b/extension.toml @@ -1,7 +1,7 @@ id = "catppuccin" name = "Catppuccin Themes" schema_version = 1 -version = "0.2.8" +version = "0.2.9" authors = ["Andrew Tec "] description = "🦀 Soothing pastel theme for Zed" repository = "https://github.com/catppuccin/zed" diff --git a/themes/catppuccin-mauve.json b/themes/catppuccin-mauve.json index 032c666..1132a6b 100644 --- a/themes/catppuccin-mauve.json +++ b/themes/catppuccin-mauve.json @@ -7,6 +7,7 @@ "name": "Catppuccin Latte", "appearance": "light", "style": { + "background.appearance": "blurred", "border": "#ccd0da", "border.variant": "#9658eb", "border.focused": "#7287fd", @@ -39,6 +40,7 @@ "icon.accent": "#8839ef", "status_bar.background": "#dce0e8", "title_bar.background": "#dce0e8", + "title_bar.inactive_background": "#dce0e8d9", "toolbar.background": "#eff1f5", "tab_bar.background": "#dce0e8", "tab.inactive_background": "#e6e9ef", @@ -401,6 +403,7 @@ "name": "Catppuccin Frappé", "appearance": "dark", "style": { + "background.appearance": "blurred", "border": "#414559", "border.variant": "#af8cca", "border.focused": "#babbf1", @@ -433,6 +436,7 @@ "icon.accent": "#ca9ee6", "status_bar.background": "#232634", "title_bar.background": "#232634", + "title_bar.inactive_background": "#232634d9", "toolbar.background": "#303446", "tab_bar.background": "#232634", "tab.inactive_background": "#292c3c", @@ -795,6 +799,7 @@ "name": "Catppuccin Macchiato", "appearance": "dark", "style": { + "background.appearance": "blurred", "border": "#363a4f", "border.variant": "#a98cd5", "border.focused": "#b7bdf8", @@ -827,6 +832,7 @@ "icon.accent": "#c6a0f6", "status_bar.background": "#181926", "title_bar.background": "#181926", + "title_bar.inactive_background": "#181926d9", "toolbar.background": "#24273a", "tab_bar.background": "#181926", "tab.inactive_background": "#1e2030", @@ -1189,6 +1195,7 @@ "name": "Catppuccin Mocha", "appearance": "dark", "style": { + "background.appearance": "blurred", "border": "#313244", "border.variant": "#ac8fd4", "border.focused": "#b4befe", @@ -1221,6 +1228,7 @@ "icon.accent": "#cba6f7", "status_bar.background": "#11111b", "title_bar.background": "#11111b", + "title_bar.inactive_background": "#11111bd9", "toolbar.background": "#1e1e2e", "tab_bar.background": "#11111b", "tab.inactive_background": "#181825", diff --git a/themes/catppuccin-no-italics-mauve.json b/themes/catppuccin-no-italics-mauve.json index 7c4838c..619fb31 100644 --- a/themes/catppuccin-no-italics-mauve.json +++ b/themes/catppuccin-no-italics-mauve.json @@ -7,6 +7,7 @@ "name": "Catppuccin Latte - No Italics", "appearance": "light", "style": { + "background.appearance": "blurred", "border": "#ccd0da", "border.variant": "#9658eb", "border.focused": "#7287fd", @@ -39,6 +40,7 @@ "icon.accent": "#8839ef", "status_bar.background": "#dce0e8", "title_bar.background": "#dce0e8", + "title_bar.inactive_background": "#dce0e8d9", "toolbar.background": "#eff1f5", "tab_bar.background": "#dce0e8", "tab.inactive_background": "#e6e9ef", @@ -401,6 +403,7 @@ "name": "Catppuccin Frappé - No Italics", "appearance": "dark", "style": { + "background.appearance": "blurred", "border": "#414559", "border.variant": "#af8cca", "border.focused": "#babbf1", @@ -433,6 +436,7 @@ "icon.accent": "#ca9ee6", "status_bar.background": "#232634", "title_bar.background": "#232634", + "title_bar.inactive_background": "#232634d9", "toolbar.background": "#303446", "tab_bar.background": "#232634", "tab.inactive_background": "#292c3c", @@ -795,6 +799,7 @@ "name": "Catppuccin Macchiato - No Italics", "appearance": "dark", "style": { + "background.appearance": "blurred", "border": "#363a4f", "border.variant": "#a98cd5", "border.focused": "#b7bdf8", @@ -827,6 +832,7 @@ "icon.accent": "#c6a0f6", "status_bar.background": "#181926", "title_bar.background": "#181926", + "title_bar.inactive_background": "#181926d9", "toolbar.background": "#24273a", "tab_bar.background": "#181926", "tab.inactive_background": "#1e2030", @@ -1189,6 +1195,7 @@ "name": "Catppuccin Mocha - No Italics", "appearance": "dark", "style": { + "background.appearance": "blurred", "border": "#313244", "border.variant": "#ac8fd4", "border.focused": "#b4befe", @@ -1221,6 +1228,7 @@ "icon.accent": "#cba6f7", "status_bar.background": "#11111b", "title_bar.background": "#11111b", + "title_bar.inactive_background": "#11111bd9", "toolbar.background": "#1e1e2e", "tab_bar.background": "#11111b", "tab.inactive_background": "#181825", diff --git a/zed.tera b/zed.tera index 2bf0c36..f4c6c4b 100644 --- a/zed.tera +++ b/zed.tera @@ -28,6 +28,7 @@ whiskers: "name": "Catppuccin {{flavor.name}} {%- if accentName != 'mauve' %} ({{accentName}}) {%- endif -%} {%- if variant == "-no-italics" %} - No Italics {%- endif -%}", "appearance": {% if flavor.dark %}"dark"{% else %}"light"{% endif %}, "style": { + "background.appearance": "blurred", "border": "#{{c.surface0.hex}}", "border.variant": "#{{ c[accent] | mix(color=c.surface0, amount=0.8) | get(key="hex") }}", "border.focused": "#{{c.lavender.hex}}", @@ -60,6 +61,7 @@ whiskers: "icon.accent": "#{{c[accent].hex}}", "status_bar.background": "#{{c.crust.hex}}", "title_bar.background": "#{{c.crust.hex}}", + "title_bar.inactive_background": "#{{ c.crust | mod(opacity=0.85) | get(key="hex") }}", "toolbar.background": "#{{c.base.hex}}", "tab_bar.background": "#{{c.crust.hex}}", "tab.inactive_background": "#{{c.mantle.hex}}",