Use libcosmic theme for gutter background
This commit is contained in:
parent
f48ec227dd
commit
681c9ea92d
1 changed files with 7 additions and 1 deletions
|
|
@ -92,13 +92,19 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue