Add hover_line_number color token (#23279)

This enables having a dedicated color for the line number hover state.
That's relevant because line numbers can now be clicked to jump to
cursor location in multibuffers.

Release Notes:

- N/A

---------

Co-authored-by: João Marcos <marcospb19@hotmail.com>
This commit is contained in:
Danilo Leal
2025-01-17 09:24:42 -03:00
committed by GitHub
co-authored by João Marcos
parent 37dcca62b7
commit da1c3d8b40
14 changed files with 133 additions and 79 deletions
+8
View File
@@ -390,6 +390,10 @@ pub struct ThemeColorsContent {
#[serde(rename = "editor.active_line_number")]
pub editor_active_line_number: Option<String>,
/// Text Color. Used for the text of the line number in the editor gutter when the line is hovered over.
#[serde(rename = "editor.hover_line_number")]
pub editor_hover_line_number: Option<String>,
/// Text Color. Used to mark invisible characters in the editor.
///
/// Example: spaces, tabs, carriage returns, etc.
@@ -793,6 +797,10 @@ impl ThemeColorsContent {
.editor_line_number
.as_ref()
.and_then(|color| try_parse_color(color).ok()),
editor_hover_line_number: self
.editor_hover_line_number
.as_ref()
.and_then(|color| try_parse_color(color).ok()),
editor_active_line_number: self
.editor_active_line_number
.as_ref()