Skip to content

Commit

Permalink
feat(highlights): improve default highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
myypo committed Aug 17, 2024
1 parent aae283a commit 29a0780
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 24 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ The plugin defines highlights that can be overwritten by colorschemes or manuall
<td>

```
guibg=grey gui=bold
NONE
```

</td>
Expand All @@ -192,7 +192,7 @@ guibg=grey gui=bold
<td>

```
guibg=grey gui=bold
guibg=#303030 gui=bold
```

</td>
Expand All @@ -202,7 +202,7 @@ guibg=grey gui=bold
<td>

```
guifg=red gui=bold
guifg=DarkRed guibg=#303030 gui=bold
```

</td>
Expand All @@ -212,7 +212,7 @@ guifg=red gui=bold
<td>

```
guifg=red gui=bold
guifg=DarkRed gui=bold
```

</td>
Expand All @@ -232,7 +232,7 @@ guifg=red gui=bold
<td>

```
guibg=grey gui=bold
NONE
```

</td>
Expand All @@ -242,7 +242,7 @@ guibg=grey gui=bold
<td>

```
guibg=grey gui=bold
guibg=#303030 gui=bold
```

</td>
Expand All @@ -252,7 +252,7 @@ guibg=grey gui=bold
<td>

```
guifg=blue gui=bold
guifg=DarkCyan guibg=#303030 gui=bold
```

</td>
Expand All @@ -262,7 +262,7 @@ guifg=blue gui=bold
<td>

```
guifg=blue gui=bold
guifg=DarkCyan gui=bold
```

</td>
Expand All @@ -282,7 +282,7 @@ guifg=blue gui=bold
<td>

```
guifg=black guibg=yellow gui=bold
guifg=black guibg=DarkYellow gui=bold
```

</td>
Expand All @@ -292,7 +292,7 @@ guifg=black guibg=yellow gui=bold
<td>

```
guifg=black gui=bold
guifg=DarkYellow gui=bold
```

</td>
Expand All @@ -302,7 +302,7 @@ guifg=black gui=bold
<td>

```
guifg=black guibg=yellow gui=bold
guifg=black guibg=DarkYellow gui=bold
```

</td>
Expand All @@ -312,7 +312,7 @@ guifg=black guibg=yellow gui=bold
<td>

```
guifg=black gui=bold
guifg=DarkYellow gui=bold
```

</td>
Expand Down
38 changes: 26 additions & 12 deletions compass/src/highlights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
},
}
}
Expand Down Expand Up @@ -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(),
},
}
}
Expand Down

0 comments on commit 29a0780

Please sign in to comment.