From 681c9ea92d22f803e53a52b3ae5ccb9cae1fcf09 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 2 Feb 2024 09:40:28 -0700 Subject: [PATCH] Use libcosmic theme for gutter background --- src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a641375..74c36ff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,13 +92,19 @@ fn main() -> Result<(), Box> { let mut cursor = io::Cursor::new(theme_data); match syntect::highlighting::ThemeSet::load_from_reader(&mut cursor) { Ok(mut theme) => { - // Use cosmic theme background + // Use libcosmic theme for background and gutter theme.settings.background = Some(syntect::highlighting::Color { r: 0, g: 0, b: 0, a: 0, }); + theme.settings.gutter = Some(syntect::highlighting::Color { + r: 0, + g: 0, + b: 0, + a: 0, + }); theme_set.themes.insert(theme_name.to_string(), theme); } Err(err) => {