125 lines
3.3 KiB
Lua
125 lines
3.3 KiB
Lua
|
--
|
||
|
-- Base16 Default Dark
|
||
|
-- Author: Chris Kempson (http://chriskempson.com)
|
||
|
--
|
||
|
|
||
|
function hex2rgb(hex)
|
||
|
local hex = hex:gsub("#","")
|
||
|
return string.format("%s, %s, %s",tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6)))
|
||
|
end
|
||
|
|
||
|
local base00 = "#101010" -- ----
|
||
|
local base01 = "#282828" -- ---
|
||
|
local base02 = "#383838" -- --
|
||
|
local base03 = "#585858" -- -
|
||
|
local base04 = "#b8b8b8" -- +
|
||
|
local base05 = "#d8d8d8" -- ++
|
||
|
local base06 = "#e8e8e8" -- +++
|
||
|
local base07 = "#f8f8f8" -- ++++
|
||
|
local base08 = "#ab4642" -- red
|
||
|
local base09 = "#dc9656" -- orange
|
||
|
local base0A = "#f7ca88" -- yellow
|
||
|
local base0B = "#a1b56c" -- green
|
||
|
local base0C = "#86c1b9" -- aqua/cyan
|
||
|
local base0D = "#7cafc2" -- blue
|
||
|
local base0E = "#ba8baf" -- purple
|
||
|
local base0F = "#a16946" -- brown
|
||
|
|
||
|
local theme = {}
|
||
|
|
||
|
-- Default settings
|
||
|
theme.fg = base00
|
||
|
theme.bg = base07
|
||
|
|
||
|
-- Genaral colours
|
||
|
theme.success_fg = base0C
|
||
|
theme.loaded_fg = base0D
|
||
|
theme.error_fg = base00
|
||
|
theme.error_bg = base08
|
||
|
|
||
|
-- Warning colours
|
||
|
theme.warning_fg = base00
|
||
|
theme.warning_bg = base0E
|
||
|
|
||
|
-- Notification colours
|
||
|
theme.notif_fg = base00
|
||
|
theme.notif_bg = base05
|
||
|
|
||
|
-- Menu colours
|
||
|
theme.menu_fg = base05
|
||
|
theme.menu_bg = base00
|
||
|
theme.menu_selected_fg = base01
|
||
|
theme.menu_selected_bg = base0A
|
||
|
|
||
|
theme.menu_title_bg = base00
|
||
|
theme.menu_primary_title_fg = base05
|
||
|
theme.menu_secondary_title_fg = base04
|
||
|
|
||
|
theme.menu_disabled_fg = base03
|
||
|
theme.menu_disabled_bg = theme.menu_bg
|
||
|
theme.menu_enabled_fg = theme.menu_fg
|
||
|
theme.menu_enabled_bg = theme.menu_bg
|
||
|
theme.menu_active_fg = base06
|
||
|
theme.menu_active_bg = theme.menu_bg
|
||
|
|
||
|
-- Proxy manager
|
||
|
theme.proxy_active_menu_fg = base05
|
||
|
theme.proxy_active_menu_bg = base00
|
||
|
theme.proxy_inactive_menu_fg = base03
|
||
|
theme.proxy_inactive_menu_bg = base00
|
||
|
|
||
|
-- Statusbar specific
|
||
|
theme.sbar_fg = base05
|
||
|
theme.sbar_bg = base00
|
||
|
|
||
|
-- Downloadbar specific
|
||
|
theme.dbar_fg = base00
|
||
|
theme.dbar_bg = base0D
|
||
|
theme.dbar_error_fg = base08
|
||
|
|
||
|
-- Input bar specific
|
||
|
theme.ibar_fg = base05
|
||
|
theme.ibar_bg = base00
|
||
|
|
||
|
-- Tab label
|
||
|
theme.tab_fg = base05
|
||
|
theme.tab_bg = base00
|
||
|
theme.tab_hover_bg = base03
|
||
|
theme.tab_ntheme = base03
|
||
|
theme.selected_fg = base05
|
||
|
theme.selected_bg = base03
|
||
|
theme.selected_ntheme = base00
|
||
|
theme.loading_fg = base0D
|
||
|
theme.loading_bg = base00
|
||
|
|
||
|
theme.selected_private_tab_bg = base05
|
||
|
theme.private_tab_bg = base03
|
||
|
|
||
|
-- Trusted/untrusted ssl colours
|
||
|
theme.trust_fg = base0B
|
||
|
theme.notrust_fg = base0D
|
||
|
|
||
|
-- Follow mode hints
|
||
|
theme.hint_fg = base00
|
||
|
theme.hint_bg = base0A
|
||
|
theme.hint_border = string.format("1px dashed %s", base0A)
|
||
|
|
||
|
theme.hint_overlay_bg = string.format("rgba(%s, 0.3)", hex2rgb(base07))
|
||
|
theme.hint_overlay_border = string.format("1px dotted %s", base07)
|
||
|
|
||
|
theme.hint_overlay_selected_bg = string.format("rgba(%s, 0.3)", hex2rgb(base0B))
|
||
|
theme.hint_overlay_selected_border = theme.hint_overlay_border
|
||
|
|
||
|
-- General colour pairings
|
||
|
theme.ok = { fg = base05, bg = base00 }
|
||
|
theme.warn = { fg = base00, bg = base0E }
|
||
|
theme.error = { fg = base08, bg = base00 }
|
||
|
|
||
|
-- Font
|
||
|
theme.font = "10px Hack Nerd Font"
|
||
|
theme.hint_font = "10px Hack Nerd Font"
|
||
|
|
||
|
return theme
|
||
|
|
||
|
-- vim: et:sw=4:ts=8:sts=4:tw=80:ft=lua
|