summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-06-29 22:34:02 -0400
committerDan Davison <dandavison7@gmail.com>2020-06-30 08:00:30 -0400
commit7d03c25266d84e64bab3bbf3c1782b980e8f5385 (patch)
treec8c9db167c5bd82666ae06fc9ad6a4a95dd77e54 /src/main.rs
parent3b2f709bdc9058d14efacaa4bc58b994c0885aea (diff)
Rearrange: options::theme module
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index c556b92e..ba106d7b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -19,7 +19,6 @@ mod paint;
mod parse;
mod parse_style;
mod style;
-mod syntax_theme;
mod syntect_color;
mod tests;
@@ -35,6 +34,7 @@ use structopt::StructOpt;
use crate::bat::assets::{list_languages, HighlightingAssets};
use crate::bat::output::{OutputType, PagingMode};
use crate::delta::delta;
+use crate::options::theme::is_light_syntax_theme;
mod errors {
error_chain! {
@@ -278,7 +278,7 @@ index f38589a..0f1bb83 100644
.theme_set
.themes
.iter()
- .filter(|(t, _)| syntax_theme::is_light_theme(t) == is_light_mode)
+ .filter(|(t, _)| is_light_syntax_theme(t) == is_light_mode)
.map(|(t, _)| t)
{
writeln!(writer, "\n\nTheme: {}\n", title_style.paint(syntax_theme))?;
@@ -305,13 +305,13 @@ pub fn list_syntax_themes() -> std::io::Result<()> {
writeln!(stdout, "Light themes:")?;
for (theme, _) in themes.iter() {
- if syntax_theme::is_light_theme(theme) {
+ if is_light_syntax_theme(theme) {
writeln!(stdout, " {}", theme)?;
}
}
writeln!(stdout, "Dark themes:")?;
for (theme, _) in themes.iter() {
- if !syntax_theme::is_light_theme(theme) {
+ if !is_light_syntax_theme(theme) {
writeln!(stdout, " {}", theme)?;
}
}