From f15fc62034cab450dc8b6ccd39bfb49b6b205005 Mon Sep 17 00:00:00 2001 From: Mica White Date: Sun, 7 Dec 2025 22:17:00 -0500 Subject: Fix the theme --- Cargo.toml | 6 ++++++ merged.profdata | Bin 0 -> 3979992 bytes src/main.rs | 5 +++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 merged.profdata diff --git a/Cargo.toml b/Cargo.toml index 1bc0f81..c89ae45 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,3 +5,9 @@ edition = "2024" [dependencies] syntect = "5" + +[profile.release] +strip = true +lto = true +panic = "unwind" +codegen-units = 1 diff --git a/merged.profdata b/merged.profdata new file mode 100644 index 0000000..458e7da Binary files /dev/null and b/merged.profdata differ 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}"); } -- cgit v1.2.3