mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
afb44d1825
commit
1816622732
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue