syntect icon indicating copy to clipboard operation
syntect copied to clipboard

Question: Change background color with easy module

Open ogarcia opened this issue 2 years ago • 2 comments

Maybe this is a stupid question, but I have searched the documentation and issues and have not found any information.

Is there any way to change the background color when using the easy module without creating a new theme?

If this is not possible, perhaps it would be interesting to include a variant of the base16-ocean.dark theme where the background color is completely black (It could be called base16-ocean.black), since many of the terminals use that kind of background color.

ogarcia avatar Jan 20 '23 12:01 ogarcia

You can change the background of whatever theme you go with

let mut theme_set = ThemeSet::load_defaults();
theme_set
    .get_mut("base16-ocean.dark")
    .unwrap()
    .settings
    .background = Some(Color::BLACK);

CosmicHorrorDev avatar May 21 '23 07:05 CosmicHorrorDev

@CosmicHorrorDev thanks, is a very good workaround. But I still think that syntect should have a true black theme by itself.

ogarcia avatar May 29 '23 12:05 ogarcia