Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Change background color with easy module #463

Open
ogarcia opened this issue Jan 20, 2023 · 2 comments
Open

Question: Change background color with easy module #463

ogarcia opened this issue Jan 20, 2023 · 2 comments

Comments

@ogarcia
Copy link

ogarcia commented Jan 20, 2023

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.

@CosmicHorrorDev
Copy link
Contributor

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);

@ogarcia
Copy link
Author

ogarcia commented May 29, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants