aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/theme.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/theme.rs')
-rw-r--r--helix-view/src/theme.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs
index 3f45aac6..fa5fa702 100644
--- a/helix-view/src/theme.rs
+++ b/helix-view/src/theme.rs
@@ -77,6 +77,14 @@ impl Loader {
names
}
+ pub fn default_theme(&self, true_color: bool) -> Theme {
+ if true_color {
+ self.default()
+ } else {
+ self.base16_default()
+ }
+ }
+
/// Returns the default theme
pub fn default(&self) -> Theme {
DEFAULT_THEME.clone()