This commit is contained in:
sxyazi 2023-10-12 23:28:25 +08:00
parent 80dd0347c5
commit 57de07aff6
No known key found for this signature in database
4 changed files with 14 additions and 18 deletions

View file

@ -24,13 +24,13 @@ impl Widget for Bindings<'_> {
.map(|c| ListItem::new(c.on()).style(THEME.help.on.into()))
.collect::<Vec<_>>();
// Execution
// Exec
let col2 = bindings
.iter()
.map(|c| ListItem::new(c.exec()).style(THEME.help.exec.into()))
.collect::<Vec<_>>();
// Description
// Desc
let col3 = bindings
.iter()
.map(|c| ListItem::new(c.desc.as_deref().unwrap_or("-")).style(THEME.help.desc.into()))

View file

@ -32,7 +32,7 @@ impl Widget for Side<'_> {
THEME.which.separator_style.into(),
));
// Exec
// Desc / Exec
spans.push(Span::styled(c.desc_or_exec(), THEME.which.desc.into()));
ListItem::new(Line::from(spans))

View file

@ -32,7 +32,6 @@ permissions_s = { fg = "#6D738F" }
[tabs]
active = { fg = "#1E2031", bg = "#80AEFA" }
inactive = { fg = "#C8D3F8", bg = "#484D66" }
header = { fg = "#00FFFF" }
max_width = 1
[files]
@ -43,9 +42,6 @@ selected = { fg = "#97DC8D", bg = "#97DC8D" }
copied = { fg = "#F3D398", bg = "#F3D398" }
cut = { fg = "#FF84A9", bg = "#FF84A9" }
[find]
# arrow = { fg = "LightYellow", italic = true }
[preview]
hovered = { underline = true }
syntect_theme = "~/.config/bat/themes/Catppuccin-macchiato.tmTheme"
@ -211,11 +207,12 @@ hovered = { underline = true }
# : Which {{{
[which]
# block = { bg = "Black" }
# key = { fg = "LightCyan" }
# extend = { fg = "DarkGray" }
# desc = { fg = "Magenta" }
# separator = { separator = " -> ", color = "DarkGray" }
mask = { bg = "Black" }
cand = { fg = "LightCyan" }
rest = { fg = "DarkGray" }
desc = { fg = "Magenta" }
separator = "  "
separator_style = { fg = "DarkGray" }
# : }}}
@ -223,10 +220,10 @@ hovered = { underline = true }
# : Help {{{
[help]
# key = { fg = "#E5E510" }
# exec = { fg = "#11A8CD" }
# desc = { fg = "#E5E5E5" }
# curr = { bg = "#666666", bold = true }
# btm = { fg = "#666666", bg = "#E5E5E5" }
on = { fg = "#E5E510" }
exec = { fg = "#11A8CD" }
desc = { fg = "#E5E5E5" }
hovered = { bg = "#666666", bold = true }
footer = { fg = "#666666", bg = "#E5E5E5" }
# : }}}

View file

@ -9,7 +9,6 @@ use super::Style;
pub struct Tabs {
pub active: Style,
pub inactive: Style,
pub header: Style,
#[validate(range(min = 1, message = "Must be greater than 0"))]
pub max_width: u8,
}