mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Rebase
This commit is contained in:
parent
20b136d478
commit
f28f01ac59
2 changed files with 27 additions and 16 deletions
|
|
@ -149,6 +149,21 @@ footer = { fg = "black", bg = "white" }
|
|||
# : }}}
|
||||
|
||||
|
||||
# : Notify {{{
|
||||
|
||||
[notify]
|
||||
title_info = { fg = "green" }
|
||||
title_warn = { bg = "yellow" }
|
||||
title_error = { fg = "red" }
|
||||
|
||||
# Icons
|
||||
icon_info = ""
|
||||
icon_warn = ""
|
||||
icon_error = ""
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : File-specific styles {{{
|
||||
|
||||
[filetype]
|
||||
|
|
@ -335,20 +350,4 @@ rules = [
|
|||
{ name = "*/", text = "" },
|
||||
]
|
||||
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Notify {{{
|
||||
|
||||
[notify]
|
||||
title_info = { fg = "green" }
|
||||
title_warn = { bg = "yellow" }
|
||||
title_error = { fg = "red" }
|
||||
|
||||
# Icons
|
||||
icon_info = ""
|
||||
icon_warn = ""
|
||||
icon_error = ""
|
||||
|
||||
# : }}}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ pub struct Theme {
|
|||
pub tasks: Tasks,
|
||||
pub which: Which,
|
||||
pub help: Help,
|
||||
pub notify: Notify,
|
||||
|
||||
// File-specific styles
|
||||
#[serde(rename = "filetype", deserialize_with = "Filetype::deserialize", skip_serializing)]
|
||||
|
|
@ -160,3 +161,14 @@ pub struct Help {
|
|||
pub hovered: Style,
|
||||
pub footer: Style,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct Notify {
|
||||
pub title_info: Style,
|
||||
pub title_warn: Style,
|
||||
pub title_error: Style,
|
||||
|
||||
pub icon_info: String,
|
||||
pub icon_warn: String,
|
||||
pub icon_error: String,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue