diff options
| author | Mica White <botahamec@outlook.com> | 2025-12-07 22:17:00 -0500 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2025-12-07 22:17:00 -0500 |
| commit | f15fc62034cab450dc8b6ccd39bfb49b6b205005 (patch) | |
| tree | f9dd488649b0e0e7cfd6e7fe20ab6d634941b750 | |
| parent | 56ea63502be5ae1ec03d82e98f25217c1224a339 (diff) | |
Fix the theme
| -rw-r--r-- | Cargo.toml | 6 | ||||
| -rw-r--r-- | merged.profdata | bin | 0 -> 3979992 bytes | |||
| -rw-r--r-- | src/main.rs | 5 |
3 files changed, 9 insertions, 2 deletions
@@ -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 Binary files differnew file mode 100644 index 0000000..458e7da --- /dev/null +++ b/merged.profdata 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}"); } |
