don't repeat myself and formatting

This commit is contained in:
lelgenio 2020-12-02 23:58:13 -03:00
parent 611f89656b
commit 546eef0331
1 changed files with 36 additions and 13 deletions

View File

@ -1,32 +1,33 @@
colors: colors:
######################################################## ########################################################
# Tabs # Tabs
######################################################## ########################################################
tabs: tabs:
bar: bar:
bg: "{{@@ color.bg @@}}" bg: "{{@@ color.bg @@}}"
odd: pinned: &tabs_defaults
bg: "{{@@ color.bg @@}}"
fg: "{{@@ color.txt @@}}"
even:
bg: "{{@@ color.bg_dark @@}}"
fg: "{{@@ color.txt @@}}"
selected:
odd: odd:
bg: "{{@@ accent_color @@}}" bg: "{{@@ color.bg @@}}"
fg: "{{@@ color.txt @@}}" fg: "{{@@ color.txt @@}}"
even: even:
bg: "{{@@ accent_color @@}}" bg: "{{@@ color.bg_dark @@}}"
fg: "{{@@ color.txt @@}}" fg: "{{@@ color.txt @@}}"
pinned:
selected: selected:
odd: odd:
bg: "{{@@ color.bg @@}}" bg: "{{@@ accent_color @@}}"
fg: "{{@@ color.txt @@}}"
even: even:
bg: "{{@@ color.bg_dark @@}}" bg: "{{@@ accent_color @@}}"
fg: "{{@@ color.txt @@}}"
<<: *tabs_defaults
######################################################## ########################################################
# Completion for urls and commands # Completion for urls and commands
######################################################## ########################################################
completion: completion:
fg: "{{@@ color.txt @@}}" fg: "{{@@ color.txt @@}}"
even: even:
@ -35,6 +36,8 @@ colors:
bg: "{{@@ color.bg @@}}" bg: "{{@@ color.bg @@}}"
scrollbar: scrollbar:
bg: "{{@@ color.bg_light @@}}" bg: "{{@@ color.bg_light @@}}"
match:
fg: "{{@@ accent_color @@}}"
category: category:
fg: "{{@@ color.txt @@}}" fg: "{{@@ color.txt @@}}"
bg: "{{@@ color.bg_light @@}}" bg: "{{@@ color.bg_light @@}}"
@ -50,9 +53,12 @@ colors:
bottom: "{{@@ color.bg_dark @@}}" bottom: "{{@@ color.bg_dark @@}}"
match: match:
fg: "{{@@ color.txt @@}}" fg: "{{@@ color.txt @@}}"
######################################################## ########################################################
# Statusbar # Statusbar
######################################################## ########################################################
statusbar: statusbar:
normal: normal:
fg: "{{@@ color.txt @@}}" fg: "{{@@ color.txt @@}}"
@ -70,12 +76,16 @@ colors:
success: success:
https: https:
fg: "{{@@ color.txt @@}}" fg: "{{@@ color.txt @@}}"
fg: "{{@@ color.normal.yellow @@}}" http:
fg: "{{@@ color.normal.red @@}}"
hover: hover:
fg: "{{@@ color.normal.cyan @@}}" fg: "{{@@ color.normal.cyan @@}}"
######################################################## ########################################################
# Downloads # Downloads
######################################################## ########################################################
downloads: downloads:
start: start:
bg: "{{@@ color.normal.blue @@}}" bg: "{{@@ color.normal.blue @@}}"
@ -83,25 +93,34 @@ colors:
bg: "{{@@ color.normal.green @@}}" bg: "{{@@ color.normal.green @@}}"
bar: bar:
bg: "{{@@ color.bg @@}}" bg: "{{@@ color.bg @@}}"
######################################################## ########################################################
# Choice of what element should be clicked # Choice of what element should be clicked
######################################################## ########################################################
hints: hints:
fg: "{{@@ color.txt @@}}" fg: "{{@@ color.txt @@}}"
bg: "{{@@ color.bg @@}}" bg: "{{@@ color.bg @@}}"
match: match:
fg: "{{@@ accent_color @@}}" fg: "{{@@ accent_color @@}}"
######################################################## ########################################################
# List of what each keybinding does # List of what each keybinding does
######################################################## ########################################################
keyhint: keyhint:
fg: "{{@@ color.txt @@}}" fg: "{{@@ color.txt @@}}"
bg: "rgba({{@@ hex2rgb(color.bg) @@}}, {{@@ opacity @@}})" bg: "rgba({{@@ hex2rgb(color.bg) @@}}, {{@@ opacity @@}})"
suffix: suffix:
fg: "{{@@ accent_color @@}}" fg: "{{@@ accent_color @@}}"
######################################################## ########################################################
# Right click menu # Right click menu
######################################################## ########################################################
contextmenu: contextmenu:
menu: menu:
bg: "{{@@ color.bg @@}}" bg: "{{@@ color.bg @@}}"
@ -111,10 +130,13 @@ colors:
disabled: disabled:
fg: "{{@@ color.bg_light @@}}" fg: "{{@@ color.bg_light @@}}"
######################################################## ########################################################
# Dark theme # Dark theme
######################################################## ########################################################
# {%@@ if color.type == "dark" @@%} # # {%@@ if color.type == "dark" @@%} #
webpage: webpage:
bg: "{{@@ color.bg @@}}" bg: "{{@@ color.bg @@}}"
prefers_color_scheme_dark: True prefers_color_scheme_dark: True
@ -123,4 +145,5 @@ colors:
threshold: threshold:
background: {{@@ 256 // 2 @@}} background: {{@@ 256 // 2 @@}}
text: {{@@ 256 // 2 @@}} text: {{@@ 256 // 2 @@}}
# {%@@ endif @@%} # {%@@ endif @@%}