1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-01-19 04:21:06 +00:00

Make default_theme pub

This commit is contained in:
Tau Gärtli 2024-07-18 15:44:33 +02:00
parent ff81cfd584
commit 30b0143ccf
No known key found for this signature in database

View File

@ -10,7 +10,9 @@ pub fn theme(options: ThemeOptions) -> String {
theme_from_detector(options, &TerminalColorSchemeDetector) theme_from_detector(options, &TerminalColorSchemeDetector)
} }
pub(crate) const fn default_theme(color_scheme: ColorScheme) -> &'static str { /// The default theme, suitable for the given color scheme.
/// Use [`theme`], if you want to automatically detect the color scheme from the terminal.
pub const fn default_theme(color_scheme: ColorScheme) -> &'static str {
match color_scheme { match color_scheme {
ColorScheme::Dark => "Monokai Extended", ColorScheme::Dark => "Monokai Extended",
ColorScheme::Light => "Monokai Extended Light", ColorScheme::Light => "Monokai Extended Light",