This commit is contained in:
sxyazi 2023-09-24 12:10:36 +08:00
parent afb44d1825
commit 1816622732
No known key found for this signature in database

View file

@ -50,7 +50,7 @@ impl<'a> Folder<'a> {
} }
#[inline] #[inline]
fn hovered_style(&self, file: &File) -> Style { fn item_style(&self, file: &File) -> Style {
let mimetype = &self.cx.manager.mimetype; let mimetype = &self.cx.manager.mimetype;
THEME THEME
.filetypes .filetypes
@ -115,7 +115,7 @@ impl<'a> Widget for Folder<'a> {
} else if hovered { } else if hovered {
THEME.selection.hovered.get() THEME.selection.hovered.get()
} else { } else {
self.hovered_style(f) self.item_style(f)
}; };
let mut spans = Vec::with_capacity(10); let mut spans = Vec::with_capacity(10);