Skip to content

Commit

Permalink
Reorganize theme code
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Apr 11, 2023
1 parent c417f9c commit 70d9105
Show file tree
Hide file tree
Showing 12 changed files with 985 additions and 964 deletions.
2 changes: 1 addition & 1 deletion src/prompts/confirm.rs
Expand Up @@ -3,7 +3,7 @@ use std::io;
use console::{Key, Term};

use crate::{
theme::{SimpleTheme, TermThemeRenderer, Theme},
theme::{render::TermThemeRenderer, SimpleTheme, Theme},
Result,
};

Expand Down
2 changes: 1 addition & 1 deletion src/prompts/fuzzy_select.rs
Expand Up @@ -4,7 +4,7 @@ use console::{Key, Term};
use fuzzy_matcher::FuzzyMatcher;

use crate::{
theme::{SimpleTheme, TermThemeRenderer, Theme},
theme::{render::TermThemeRenderer, SimpleTheme, Theme},
Result,
};

Expand Down
2 changes: 1 addition & 1 deletion src/prompts/input.rs
Expand Up @@ -7,7 +7,7 @@ use crate::completion::Completion;
#[cfg(feature = "history")]
use crate::history::History;
use crate::{
theme::{SimpleTheme, TermThemeRenderer, Theme},
theme::{render::TermThemeRenderer, SimpleTheme, Theme},
validate::Validator,
Result,
};
Expand Down
2 changes: 1 addition & 1 deletion src/prompts/multi_select.rs
Expand Up @@ -3,7 +3,7 @@ use std::{io, iter::repeat, ops::Rem};
use console::{Key, Term};

use crate::{
theme::{SimpleTheme, TermThemeRenderer, Theme},
theme::{render::TermThemeRenderer, SimpleTheme, Theme},
Paging, Result,
};

Expand Down
2 changes: 1 addition & 1 deletion src/prompts/password.rs
Expand Up @@ -2,7 +2,7 @@ use console::Term;
use zeroize::Zeroizing;

use crate::{
theme::{SimpleTheme, TermThemeRenderer, Theme},
theme::{render::TermThemeRenderer, SimpleTheme, Theme},
validate::PasswordValidator,
Result,
};
Expand Down
2 changes: 1 addition & 1 deletion src/prompts/select.rs
Expand Up @@ -3,7 +3,7 @@ use std::{io, ops::Rem};
use console::{Key, Term};

use crate::{
theme::{SimpleTheme, TermThemeRenderer, Theme},
theme::{render::TermThemeRenderer, SimpleTheme, Theme},
Paging, Result,
};

Expand Down
2 changes: 1 addition & 1 deletion src/prompts/sort.rs
Expand Up @@ -3,7 +3,7 @@ use std::{io, ops::Rem};
use console::{Key, Term};

use crate::{
theme::{SimpleTheme, TermThemeRenderer, Theme},
theme::{render::TermThemeRenderer, SimpleTheme, Theme},
Paging, Result,
};

Expand Down

0 comments on commit 70d9105

Please sign in to comment.