Files
arch/noctalia-dotfiles/.config/noctalia/templates/yazi-theme.toml
2026-03-31 20:13:15 +08:00

279 lines
10 KiB
TOML

# : Manager [[[
[mgr]
cwd = { fg = "{{colors.on_surface.default.hex}}" }
# Find
find_keyword = { fg = "{{colors.error.default.hex}}", bold = true, italic = true, underline = true }
find_position = { fg = "{{colors.error.default.hex}}", bold = true, italic = true }
# Marker
marker_copied = { fg = "{{colors.tertiary_fixed.default.hex | auto_lightness: 20.0}}", bg = "{{colors.tertiary_fixed.default.hex | auto_lightness: 20.0}}" }
marker_cut = { fg = "{{colors.tertiary_fixed.default.hex}}", bg = "{{colors.tertiary_fixed.default.hex}}" }
marker_marked = { fg = "{{colors.error.default.hex}}", bg = "{{colors.error.default.hex}}" }
marker_selected = { fg = "{{colors.tertiary.default.hex}}", bg = "{{colors.tertiary.default.hex}}" }
# Count
count_copied = { fg = "{{colors.on_tertiary_fixed.default.hex}}", bg = "{{colors.tertiary_fixed.default.hex}}" }
count_cut = { fg = "{{colors.on_tertiary_fixed.default.hex}}", bg = "{{colors.tertiary_fixed.default.hex}}" }
count_selected = { fg = "{{colors.on_primary.default.hex}}", bg = "{{colors.tertiary.default.hex}}" }
# Border
border_symbol = "│"
border_style = { fg = "{{colors.surface_tint.default.hex}}" }
# : ]]]
# : Indicator [[[
[indicator]
padding = { open = "█", close = "█" }
# : ]]]
# : Tabs [[[
[tabs]
active = { fg = "{{colors.primary.default.hex}}", bold = true, bg = "{{colors.surface.default.hex}}" }
inactive = { fg = "{{colors.secondary.default.hex}}", bg = "{{colors.surface.default.hex}}" }
sep_inner = { open = "[", close = "]" }
# : ]]]
# : Mode [[[
[mode]
# Mode
normal_main = { bg = "{{colors.primary.default.hex}}", fg = "{{colors.on_primary.default.hex}}", bold = true }
normal_alt = { bg = "{{colors.surface_variant.default.hex}}", fg = "{{colors.on_surface_variant.default.hex}}" }
# Select mode
select_main = { bg = "{{colors.secondary.default.hex}}", fg = "{{colors.on_secondary.default.hex}}", bold = true }
select_alt = { bg = "{{colors.surface_variant.default.hex}}", fg = "{{colors.on_surface_variant.default.hex}}" }
# Unset mode
unset_main = { bg = "{{colors.tertiary.default.hex}}", fg = "{{colors.on_tertiary.default.hex}}", bold = true }
unset_alt = { bg = "{{colors.surface_variant.default.hex}}", fg = "{{colors.on_surface_variant.default.hex}}" }
# : ]]]
# : Status [[[
[status]
sep_left = { open = "🭁", close = "🭠" }
sep_right = { open = "🭁", close = "🭠" }
# Permissions
perm_type = { fg = "{{colors.secondary.default.hex | auto_lightness: 30.0}}" }
perm_write = { fg = "{{colors.tertiary.default.hex | auto_lightness: 30.0}}" }
perm_read = { fg = "{{colors.error.default.hex | auto_lightness: 30.0}}" }
perm_exec = { fg = "{{colors.tertiary_fixed.default.hex | auto_lightness: 30.0}}" }
perm_sep = { fg = "{{colors.primary_fixed.default.hex | auto_lightness: 30.0}}" }
# Progress
progress_label = { bold = true }
progress_normal = { fg = "{{colors.primary.default.hex}}", bg = "{{colors.surface_bright.default.hex}}" }
progress_error = { fg = "{{colors.error.default.hex}}", bg = "{{colors.surface_bright.default.hex}}" }
# : ]]]
# : Which [[[
[which]
cols = 3
mask = { bg = "{{colors.surface_bright.default.hex}}" }
cand = { fg = "{{colors.primary.default.hex}}" }
rest = { fg = "{{colors.on_primary.default.hex}}" }
desc = { fg = "{{colors.on_surface.default.hex}}" }
separator = " ▶ "
separator_style = { fg = "{{colors.on_surface.default.hex}}" }
# : ]]]
# : Notify [[[
[notify]
title_info = { fg = "{{colors.tertiary.default.hex}}" }
title_warn = { fg = "{{colors.primary.default.hex}}" }
title_error = { fg = "{{colors.error.default.hex}}" }
# : ]]]
# : Picker [[[
[pick]
border = { fg = "{{colors.primary.default.hex}}" }
active = { fg = "{{colors.tertiary.default.hex}}", bold = true }
inactive = {}
# : ]]]
# : Input [[[
[input]
border = { fg = "{{colors.primary.default.hex}}" }
value = { fg = "{{colors.on_surface.default.hex}}" }
# : ]]]
# : Completion [[[
[cmp]
border = { fg = "{{colors.primary.default.hex}}", bg = "{{colors.on_primary.default.hex}}" }
# : ]]]
# : Tasks [[[
[tasks]
border = { fg = "{{colors.primary.default.hex}}" }
title = {}
hovered = { fg = "{{colors.tertiary_fixed.default.hex}}", underline = true }
# : ]]]
# : Help [[[
[help]
on = { fg = "{{colors.on_surface.default.hex}}" }
run = { fg = "{{colors.on_surface.default.hex}}" }
footer = { fg = "{{colors.on_secondary.default.hex}}", bg = "{{colors.secondary.default.hex}}" }
# : ]]]
# : File-specific styles [[[
[filetype]
rules = [
# Images
{ mime = "image/*", fg = "#94e2d5" },
# Media
{ mime = "{audio,video}/*", fg = "#f9e2af" },
# Archives
{ mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", fg = "#f5c2e7" },
# Documents
{ mime = "application/{pdf,doc,rtf}", fg = "#a6e3a1" },
# Special files
{ name = "*", is = "orphan", bg = "{{colors.error_container.default.hex}}" },
{ name = "*", is = "exec", fg = "{{colors.on_error_container.default.hex}}" },
# Fallback
{ url = "*", fg = "{{colors.on_surface.default.hex}}" },
{ url = "*/", fg = "{{colors.surface_tint.default.hex}}" },
]
# : ]]]
# : Icon [[[
[icon]
# ==========================================
# 1. 预设条件 (最高优先级)
# ==========================================
prepend_conds = [
# 隐藏的文件夹 (半透明或较暗的颜色)
{ if = "dir & hidden", text = "", fg = "{{colors.surface_tint.default.hex | auto_lightness: -20.0}}" },
# 普通文件夹 - 提到前面来,确保文件夹图标最先被匹配
{ if = "dir", text = "", fg = "{{colors.surface_tint.default.hex}}" },
# 损坏的符号链接 (孤儿) - 使用 Error 色
{ if = "orphan", text = "󰌌", fg = "{{colors.error.default.hex}}" },
# 正常的符号链接 - 使用 Tertiary 固定色
{ if = "link", text = "󰌷", fg = "{{colors.tertiary_fixed.default.hex}}" },
# 可执行文件 - 【关键修复:必须排除文件夹 (!dir)】
{ if = "exec & !dir", text = "󰆧", fg = "{{colors.secondary.default.hex}}" },
# 普通隐藏文件 (暗淡的文字色)
{ if = "hidden", text = "󰈙", fg = "{{colors.on_surface_variant.default.hex}}" },
]
# ==========================================
# 2. 预设目录 (特殊文件夹图标与主色调)
# ==========================================
prepend_dirs = [
# 使用 Primary 颜色高亮常用主目录
{ name = "Desktop", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "Documents", text = "󰈙", fg = "{{colors.primary.default.hex}}" },
{ name = "Downloads", text = "󰇚", fg = "{{colors.primary.default.hex}}" },
{ name = "Pictures", text = "󰉏", fg = "{{colors.primary.default.hex}}" },
{ name = "Music", text = "󰎆", fg = "{{colors.primary.default.hex}}" },
{ name = "Videos", text = "󰕧", fg = "{{colors.primary.default.hex}}" },
{ name = "Public", text = "", fg = "{{colors.primary.default.hex}}" },
# 使用 Secondary 颜色标记开发/配置目录
{ name = ".config", text = "", fg = "{{colors.secondary.default.hex}}" },
{ name = ".git", text = "󰊢", fg = "{{colors.secondary.default.hex}}" },
{ name = "Github", text = "󰊢", fg = "{{colors.secondary.default.hex}}" },
{ name = "src", text = "", fg = "{{colors.secondary.default.hex}}" },
]
# ==========================================
# 3. 预设文件扩展名
# ==========================================
prepend_exts = [
# 图片/媒体 - 使用 Tertiary 颜色 (提供视觉对比)
{ name = "png", text = "󰉏", fg = "{{colors.tertiary.default.hex}}" },
{ name = "jpg", text = "󰉏", fg = "{{colors.tertiary.default.hex}}" },
{ name = "jpeg", text = "󰉏", fg = "{{colors.tertiary.default.hex}}" },
{ name = "webp", text = "󰉏", fg = "{{colors.tertiary.default.hex}}" },
{ name = "svg", text = "󰜡", fg = "{{colors.tertiary.default.hex}}" },
{ name = "mp4", text = "󰕧", fg = "{{colors.tertiary.default.hex}}" },
{ name = "mkv", text = "󰕧", fg = "{{colors.tertiary.default.hex}}" },
{ name = "mp3", text = "󰎆", fg = "{{colors.tertiary.default.hex}}" },
{ name = "flac", text = "󰎆", fg = "{{colors.tertiary.default.hex}}" },
# 档案/压缩包 - 使用 Error Container 相关的颜色 (以示区别,或可选 tertiary_fixed)
{ name = "zip", text = "󰛫", fg = "{{colors.tertiary_fixed_dim.default.hex}}" },
{ name = "tar", text = "󰛫", fg = "{{colors.tertiary_fixed_dim.default.hex}}" },
{ name = "gz", text = "󰛫", fg = "{{colors.tertiary_fixed_dim.default.hex}}" },
{ name = "rar", text = "󰛫", fg = "{{colors.tertiary_fixed_dim.default.hex}}" },
{ name = "7z", text = "󰛫", fg = "{{colors.tertiary_fixed_dim.default.hex}}" },
# 常用代码/配置文件 - 使用 Primary 或 On Surface 色
{ name = "conf", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "toml", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "yaml", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "yml", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "json", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "sh", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "bash", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "py", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "rs", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "c", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "cpp", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "md", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "txt", text = "󰈙", fg = "{{colors.on_surface.default.hex}}" },
]
# ==========================================
# 4. 预设特定文件名
# ==========================================
prepend_files = [
{ name = "PKGBUILD", text = "", fg = "{{colors.primary.default.hex}}" },
{ name = "README.md", text = "󰂺", fg = "{{colors.secondary.default.hex}}" },
{ name = "Makefile", text = "", fg = "{{colors.secondary.default.hex}}" },
{ name = ".bashrc", text = "", fg = "{{colors.secondary.default.hex}}" },
{ name = ".zshrc", text = "", fg = "{{colors.secondary.default.hex}}" },
]
# : ]]]