pub struct FileExplorerStyle {
pub border_style: Style,
pub cursor_style: Style,
pub dir_style: Style,
pub file_colors: Vec<(Vec<&'static str>, Color)>,
pub default_file_color: Color,
pub size_style: Style,
pub checkbox_checked: &'static str,
pub checkbox_unchecked: &'static str,
pub dir_icon: &'static str,
pub parent_icon: &'static str,
pub symlink_icon: &'static str,
}Expand description
Style configuration for file explorer
Fields§
§border_style: StyleBorder style
cursor_style: StyleStyle for selected (cursor) item
dir_style: StyleStyle for directory names
file_colors: Vec<(Vec<&'static str>, Color)>Style for file names (by extension)
default_file_color: ColorDefault file color
size_style: StyleStyle for file sizes
checkbox_checked: &'static strCheckbox checked
checkbox_unchecked: &'static strCheckbox unchecked
dir_icon: &'static strDirectory icon
parent_icon: &'static strParent directory icon
symlink_icon: &'static strSymlink icon
Implementations§
Source§impl FileExplorerStyle
impl FileExplorerStyle
Sourcepub fn color_for_extension(&self, ext: Option<&str>) -> Color
pub fn color_for_extension(&self, ext: Option<&str>) -> Color
Get color for a file extension
Trait Implementations§
Source§impl Clone for FileExplorerStyle
impl Clone for FileExplorerStyle
Source§fn clone(&self) -> FileExplorerStyle
fn clone(&self) -> FileExplorerStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileExplorerStyle
impl Debug for FileExplorerStyle
Auto Trait Implementations§
impl Freeze for FileExplorerStyle
impl RefUnwindSafe for FileExplorerStyle
impl Send for FileExplorerStyle
impl Sync for FileExplorerStyle
impl Unpin for FileExplorerStyle
impl UnwindSafe for FileExplorerStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more