Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs12
1 files changed, 11 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 7f491309..cb270b86 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -441,7 +441,17 @@ impl Application {
e
})
.ok()
- .filter(|theme| (true_color || theme.is_16_color()))
+ .filter(|theme| {
+ let colors_ok = true_color || theme.is_16_color();
+ if !colors_ok {
+ log::warn!(
+ "loaded theme `{}` but cannot use it because true color \
+ support is not enabled",
+ theme.name()
+ );
+ }
+ colors_ok
+ })
})
.unwrap_or_else(|| editor.theme_loader.default_theme(true_color));
editor.set_theme(theme);