diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-06-29 22:34:02 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-06-30 08:00:30 -0400 |
commit | 7d03c25266d84e64bab3bbf3c1782b980e8f5385 (patch) | |
tree | c8c9db167c5bd82666ae06fc9ad6a4a95dd77e54 /src/main.rs | |
parent | 3b2f709bdc9058d14efacaa4bc58b994c0885aea (diff) |
Rearrange: options::theme module
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
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)?; } } |