Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Oct 12, 2023
1 parent 80dd034 commit 57de07a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
4 changes: 2 additions & 2 deletions app/src/help/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down
2 changes: 1 addition & 1 deletion app/src/which/side.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
25 changes: 11 additions & 14 deletions config/preset/theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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"
Expand Down Expand Up @@ -211,22 +207,23 @@ 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" }

# : }}}


# : 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" }

# : }}}
1 change: 0 additions & 1 deletion config/src/theme/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 57de07a

Please sign in to comment.