Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dbac78b

Browse files
authoredFeb 1, 2024
Set ui.virtual.ruler background for GitHub themes (#9487)
Turning on a ruler does not show a visible ruler line for the GitHub themes. This change renders rulers using the `canvas.subtle` color. This matches the color used for the `cursorline` and creates a visible ruler that fits the theme.
1 parent cf44921 commit dbac78b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎runtime/themes/github_dark.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ label = "scale.red.3"
6060
"ui.text.focus" = { fg = "fg.default" }
6161
"ui.text.inactive" = "fg.subtle"
6262
"ui.virtual" = { fg = "scale.gray.6" }
63+
"ui.virtual.ruler" = { bg = "canvas.subtle" }
6364

6465
"ui.selection" = { bg = "scale.blue.8" }
6566
"ui.selection.primary" = { bg = "scale.blue.7" }

‎runtime/themes/github_light.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ label = "scale.red.5"
6060
"ui.text.focus" = { fg = "fg.default" }
6161
"ui.text.inactive" = "fg.subtle"
6262
"ui.virtual" = { fg = "scale.gray.2" }
63+
"ui.virtual.ruler" = { bg = "canvas.subtle" }
6364

6465
"ui.selection" = { bg = "scale.blue.0" }
6566
"ui.selection.primary" = { bg = "scale.blue.1" }

0 commit comments

Comments
 (0)
Please sign in to comment.