From 456d727429e849c168a9dea6ae0977a6ce0e63f5 Mon Sep 17 00:00:00 2001 From: Jesus Date: Mon, 20 May 2024 03:40:50 +0800 Subject: [PATCH] Fix vscode-dark-plus-theme look --- modules/init-vscode-theme.el | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/modules/init-vscode-theme.el b/modules/init-vscode-theme.el index 022d583..359d4bb 100644 --- a/modules/init-vscode-theme.el +++ b/modules/init-vscode-theme.el @@ -15,8 +15,6 @@ (set-cursor-color "#2979FF") (set-background-color "#1C1E1F") - (set-face-foreground 'font-lock-string-face "#FFFFFF") - ;; highlight (set-face-foreground 'highlight "#F4F4F4") (set-face-background 'highlight "#004575") @@ -31,11 +29,17 @@ (set-face-background 'fringe nil) - ;; Fix linum current-line highlight - (defface my-linum-hl - '((t :background "#007acc" :foreground "#FFFFFF")) - "Face for the currently active Line number" - :group 'linum)) + ;; Define a face for the current line number + (defface my-line-number-current-line + '((t :background "#007ACC" :foreground "#FFFFFF")) + "Face for the currently active line number" + :group 'display-line-numbers) + + ;; Set the face for the current line number + (set-face-attribute 'line-number-current-line nil + :background "#007ACC" + :foreground "#FFFFFF") + ) ;; Invoke color (current-dark-color))