Skip to content

Commit

Permalink
feat(extra): add aerc mail client theme
Browse files Browse the repository at this point in the history
  • Loading branch information
rizqicy committed Mar 9, 2024
1 parent 610179f commit 96237c7
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 0 deletions.
113 changes: 113 additions & 0 deletions lua/tokyonight/extra/aerc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
local util = require("tokyonight.util")

local M = {}

--- @param colors ColorScheme
function M.generate(colors)
local aerc = util.template(
[[
# vim: ft=dosini
#
# aerc TokyoNight styleset
# set styleset-name=tokyonight-xxx.ini in 'aerc.conf' to load the style
#
*.default=true
*.normal=true
border.fg=${fg_gutter}
border.bg=${bg}
title.fg=${black}
title.bg=${blue}
title.bold=true
header.fg=${red}
#header.bg=${bg}
header.bold=true
tab.fg=${fg_gutter}
tab.bg=${bg_statusline}
tab.selected.fg=${black}
tab.selected.bg=${blue}
statusline_default.fg=${fg}
statusline_default.bg=${bg_dark}
statusline_error.fg=${error}
statusline_success.fg=${green1}
*error.bold=true
*error.fg=${error}
*warning.fg=${warning}
*success.fg=${green1}
dirlist_*.bg=${bg}
dirlist_*.fg=${fg}
dirlist_*.selected.bg=${bg_visual}
dirlist_*.selected.fg=${fg}
msglist_*.bg=${bg}
msglist_*.fg=${fg}
msglist_*.selected.bg=${bg_visual}
#msglist_*.selected.fg=${fg}
msglist_unread.bold=true
msglist_unread.fg=${blue}
msglist_marked.fg=${orange}
msglist_thread_folded.italic=true
msglist_thread_folded.underline=true
msglist_gutter.bg=${bg_highlight}
msglist_pill.bg=${fg_gutter}
msglist_pill.reverse=false
part_*.fg=${fg}
part_*.bg=${bg_popup}
part_*.selected.fg=${fg}
part_*.selected.bg=${fg_gutter}
completion_default.bg=${bg_popup}
completion_default.fg=${fg}
completion_default.selected.bg=${fg_gutter}
completion_default.selected.fg=${fg}
completion_gutter.bg=${bg_highlight}
completion_pill.bg=${fg_gutter}
completion_pill.reverse=false
spinner.bg=${bg}
spinner.fg=${fg}
selector_focused.bold=false
selector_focused.bg=${bg_visual}
selector_focused.fg=${fg}
selector_chooser.bold=false
selector_chooser.bg=${bg_visual}
selector_chooser.fg=${fg}
default.selected.bold=false
default.selected.fg=${fg}
default.selected.bg=${bg_visual}
[viewer]
url.underline=true
url.fg=${dark5}
header.fg=${purple}
signature.fg=${magenta}
diff_add.fg=${diff.add}
diff_del.fg=${diff.delete}
diff_meta.bold=true
diff_chunk.dim=true
quote_1.fg=${yellow}
quote_2.fg=${green}
quote_3.fg=${teal}
quote_3.dim=true
quote_4.fg=${blue}
quote_4.dim=true
quote_x.fg=${comment}
quote_x.dim=true
]],
colors
)

return aerc
end

return M
1 change: 1 addition & 0 deletions lua/tokyonight/extra/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ M.extras = {
gitui = {ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI"},
helix = { ext = "toml", url = "https://helix-editor.com/", label = "Helix"},
fzf = { ext = "zsh", url = "https://github.com/junegunn/fzf", label = "Fzf"},
aerc = { ext = "ini", url = "https://git.sr.ht/~rjarry/aerc/", label = "Aerc"},
}

local function write(str, fileName)
Expand Down

0 comments on commit 96237c7

Please sign in to comment.