From 098680c7d19bcb3ae5c0bd3b08cda947aaf55cf2 Mon Sep 17 00:00:00 2001 From: Sho Date: Sun, 2 Aug 2026 02:34:41 +0900 Subject: [PATCH] feat: add full bracket pair colorization and active guide lines to VSCode theme engine --- quickshell/services/python/theme_sync.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/quickshell/services/python/theme_sync.py b/quickshell/services/python/theme_sync.py index 2157c60..9d186b6 100644 --- a/quickshell/services/python/theme_sync.py +++ b/quickshell/services/python/theme_sync.py @@ -685,7 +685,20 @@ def sync_vscode(bg, surface, current_line, fg, accent, sub_accent, is_dark, vari "panel.background": surface, "panelTitle.activeBorder": accent, "terminal.background": bg, - "terminal.foreground": fg + "terminal.foreground": fg, + + "editorBracketHighlight.foreground1": keyword_color, + "editorBracketHighlight.foreground2": function_color, + "editorBracketHighlight.foreground3": type_color, + "editorBracketHighlight.foreground4": string_color, + "editorBracketHighlight.foreground5": number_color, + "editorBracketHighlight.foreground6": operator_color, + "editorBracketHighlight.unexpectedBracket.foreground": "#ff9580" if is_dark else "#dc2626", + "editorBracketMatch.background": current_line, + "editorBracketMatch.border": accent, + "editorBracketPairGuide.activeBackground1": keyword_color, + "editorBracketPairGuide.activeBackground2": function_color, + "editorBracketPairGuide.activeBackground3": type_color } token_colors = { @@ -832,6 +845,8 @@ def sync_vscode(bg, surface, current_line, fg, accent, sub_accent, is_dark, vari data["workbench.colorCustomizations"] = colors_dict data["editor.tokenColorCustomizations"] = token_colors + data["editor.bracketPairColorization.enabled"] = True + data["editor.guides.bracketPairs"] = "active" data["workbench.colorTheme"] = "Default Dark Modern" if is_dark else "Default Light Modern" with open(settings_path, 'w', encoding='utf-8') as f: