pub struct FileExplorerStyle {
pub tree: TreeViewStyle,
}Expand description
File explorer styling delegated to the underlying tree view.
§Examples
use ailloli_ui_widgets::files::FileExplorerStyle;
let style = FileExplorerStyle::default();
let _ = style.tree;Fields§
§tree: TreeViewStyleComplete tree row, indent, icon, and interaction styling.
Implementations§
Source§impl FileExplorerStyle
impl FileExplorerStyle
Sourcepub fn from_theme(theme: Theme, size: FileExplorerSize) -> Self
pub fn from_theme(theme: Theme, size: FileExplorerSize) -> Self
Maps file density to the equivalent tree-view size under theme.
§Examples
use ailloli_ui_core::Theme;
use ailloli_ui_widgets::files::{FileExplorerSize, FileExplorerStyle};
let style = FileExplorerStyle::from_theme(Theme::default(), FileExplorerSize::Compact);
let _ = style.tree;Trait Implementations§
Source§impl Clone for FileExplorerStyle
impl Clone for FileExplorerStyle
Source§fn clone(&self) -> FileExplorerStyle
fn clone(&self) -> FileExplorerStyle
Returns a copy 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
Source§impl Default for FileExplorerStyle
Derives standard-density styling from the default theme.
impl Default for FileExplorerStyle
Derives standard-density styling from the default theme.
Source§impl PartialEq for FileExplorerStyle
impl PartialEq for FileExplorerStyle
impl StructuralPartialEq 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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.