Use libcosmic theme for gutter background

This commit is contained in:
Jeremy Soller 2024-02-02 09:40:28 -07:00
parent f48ec227dd
commit 681c9ea92d
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -92,13 +92,19 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut cursor = io::Cursor::new(theme_data); let mut cursor = io::Cursor::new(theme_data);
match syntect::highlighting::ThemeSet::load_from_reader(&mut cursor) { match syntect::highlighting::ThemeSet::load_from_reader(&mut cursor) {
Ok(mut theme) => { Ok(mut theme) => {
// Use cosmic theme background // Use libcosmic theme for background and gutter
theme.settings.background = Some(syntect::highlighting::Color { theme.settings.background = Some(syntect::highlighting::Color {
r: 0, r: 0,
g: 0, g: 0,
b: 0, b: 0,
a: 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); theme_set.themes.insert(theme_name.to_string(), theme);
} }
Err(err) => { Err(err) => {