mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-07 05:42:25 +01:00
Use default_theme()
function from theme module
This commit is contained in:
@@ -32,7 +32,7 @@ fn detect(when: DetectColorScheme, detector: &dyn ColorSchemeDetector) -> Option
|
||||
should_detect.then(|| detector.detect()).flatten()
|
||||
}
|
||||
|
||||
const fn default_theme(color_scheme: ColorScheme) -> &'static str {
|
||||
pub(crate) const fn default_theme(color_scheme: ColorScheme) -> &'static str {
|
||||
match color_scheme {
|
||||
ColorScheme::Dark => "Monokai Extended",
|
||||
ColorScheme::Light => "Monokai Extended Light",
|
||||
|
Reference in New Issue
Block a user