From 29a0780483a92932e12b085f9403551adef1c8a0 Mon Sep 17 00:00:00 2001 From: myypo Date: Sat, 17 Aug 2024 23:57:16 +0300 Subject: [PATCH] feat(highlights): improve default highlights --- README.md | 24 ++++++++++++------------ compass/src/highlights.rs | 38 ++++++++++++++++++++++++++------------ 2 files changed, 38 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 13f5670..dd080e9 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,7 @@ The plugin defines highlights that can be overwritten by colorschemes or manuall ``` -guibg=grey gui=bold +NONE ``` @@ -192,7 +192,7 @@ guibg=grey gui=bold ``` -guibg=grey gui=bold +guibg=#303030 gui=bold ``` @@ -202,7 +202,7 @@ guibg=grey gui=bold ``` -guifg=red gui=bold +guifg=DarkRed guibg=#303030 gui=bold ``` @@ -212,7 +212,7 @@ guifg=red gui=bold ``` -guifg=red gui=bold +guifg=DarkRed gui=bold ``` @@ -232,7 +232,7 @@ guifg=red gui=bold ``` -guibg=grey gui=bold +NONE ``` @@ -242,7 +242,7 @@ guibg=grey gui=bold ``` -guibg=grey gui=bold +guibg=#303030 gui=bold ``` @@ -252,7 +252,7 @@ guibg=grey gui=bold ``` -guifg=blue gui=bold +guifg=DarkCyan guibg=#303030 gui=bold ``` @@ -262,7 +262,7 @@ guifg=blue gui=bold ``` -guifg=blue gui=bold +guifg=DarkCyan gui=bold ``` @@ -282,7 +282,7 @@ guifg=blue gui=bold ``` -guifg=black guibg=yellow gui=bold +guifg=black guibg=DarkYellow gui=bold ``` @@ -292,7 +292,7 @@ guifg=black guibg=yellow gui=bold ``` -guifg=black gui=bold +guifg=DarkYellow gui=bold ``` @@ -302,7 +302,7 @@ guifg=black gui=bold ``` -guifg=black guibg=yellow gui=bold +guifg=black guibg=DarkYellow gui=bold ``` @@ -312,7 +312,7 @@ guifg=black guibg=yellow gui=bold ``` -guifg=black gui=bold +guifg=DarkYellow gui=bold ``` diff --git a/compass/src/highlights.rs b/compass/src/highlights.rs index a4cd46c..62f4d65 100644 --- a/compass/src/highlights.rs +++ b/compass/src/highlights.rs @@ -67,21 +67,29 @@ impl<'a> Default for RecordHighlightList<'a> { fn default() -> Self { Self { past: RecordHighlight { - mark: OptsHighlight::builder().bg("grey").gui("bold").build(), - sign: OptsHighlight::builder().fg("grey").gui("bold").build(), + mark: OptsHighlight::builder().build(), + sign: OptsHighlight::builder().fg("#303030").gui("bold").build(), }, close_past: RecordHighlight { - mark: OptsHighlight::builder().fg("red").gui("bold").build(), - sign: OptsHighlight::builder().fg("red").gui("bold").build(), + mark: OptsHighlight::builder() + .fg("DarkRed") + .bg("#303030") + .gui("bold") + .build(), + sign: OptsHighlight::builder().fg("DarkRed").gui("bold").build(), }, future: RecordHighlight { - mark: OptsHighlight::builder().bg("grey").gui("bold").build(), - sign: OptsHighlight::builder().fg("grey").gui("bold").build(), + mark: OptsHighlight::builder().build(), + sign: OptsHighlight::builder().fg("#303030").gui("bold").build(), }, close_future: RecordHighlight { - mark: OptsHighlight::builder().fg("blue").gui("bold").build(), - sign: OptsHighlight::builder().fg("blue").gui("bold").build(), + mark: OptsHighlight::builder() + .fg("DarkCyan") + .bg("#303030") + .gui("bold") + .build(), + sign: OptsHighlight::builder().fg("DarkCyan").gui("bold").build(), }, } } @@ -129,20 +137,26 @@ impl<'a> Default for HintHighlightList<'a> { open: HintHighlight { label: OptsHighlight::builder() .fg("black") - .bg("yellow") + .bg("DarkYellow") .gui("bold") .build(), - path: OptsHighlight::builder().fg("yellow").gui("bold").build(), + path: OptsHighlight::builder() + .fg("DarkYellow") + .gui("bold") + .build(), }, follow: HintHighlight { label: OptsHighlight::builder() .fg("black") - .bg("yellow") + .bg("DarkYellow") .gui("bold") .build(), - path: OptsHighlight::builder().fg("yellow").gui("bold").build(), + path: OptsHighlight::builder() + .fg("DarkYellow") + .gui("bold") + .build(), }, } }