summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2025-12-07 22:17:00 -0500
committerMica White <botahamec@outlook.com>2025-12-07 22:17:00 -0500
commitf15fc62034cab450dc8b6ccd39bfb49b6b205005 (patch)
treef9dd488649b0e0e7cfd6e7fe20ab6d634941b750 /src
parent56ea63502be5ae1ec03d82e98f25217c1224a339 (diff)
Fix the theme
Diffstat (limited to 'src')
-rw-r--r--src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index cca25e5..50bc5a9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -8,7 +8,8 @@ use syntect::parsing::SyntaxSet;
fn main() {
let syntax_set = SyntaxSet::load_defaults_newlines();
let theme_set = ThemeSet::load_defaults();
- let theme = &theme_set.themes["base16-ocean.dark"];
+ let mut theme = theme_set.themes["InspiredGitHub"].clone();
+ theme.settings.background = None;
let filename = std::env::args().nth(1).map(PathBuf::from);
let extension = filename
@@ -26,6 +27,6 @@ fn main() {
};
let highlighted_file =
- highlighted_html_for_string(&file, &syntax_set, syntax, theme).unwrap_or(file);
+ highlighted_html_for_string(&file, &syntax_set, syntax, &theme).unwrap_or(file);
println!("{highlighted_file}");
}