Make default_theme pub

This commit is contained in:
Tau Gärtli committed 2024-08-16 14:13:17 +02:00
1 parent ff81cfd584
commit 30b0143ccf
1 file changed
+3 -1
+3 -1
View File
@@ -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",