mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-18 20:11:03 +00:00
Make default_theme pub
This commit is contained in:
parent
ff81cfd584
commit
30b0143ccf
@ -10,7 +10,9 @@ pub fn theme(options: ThemeOptions) -> String {
|
||||
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 {
|
||||
ColorScheme::Dark => "Monokai Extended",
|
||||
ColorScheme::Light => "Monokai Extended Light",
|
||||
|
Loading…
x
Reference in New Issue
Block a user