helm/modules/themes/alucard/config/qutebrowser/theme.py

223 lines
9.3 KiB
Python
Raw Normal View History

2021-02-01 22:32:43 -08:00
## Colors
palette = {
'background': '#282a36',
'background-alt': '#282a36',
'background-attention': '#181920',
'border': '#282a36',
'current-line': '#44475a',
'selection': '#44475a',
'foreground': '#f8f8f2',
'foreground-alt': '#e0e0e0',
'foreground-attention': '#ffffff',
'comment': '#6272a4',
'cyan': '#8be9fd',
'green': '#50fa7b',
'orange': '#ffb86c',
'pink': '#ff79c6',
'purple': '#bd93f9',
'red': '#ff5555',
'yellow': '#f1fa8c'
}
2021-02-01 21:24:47 -08:00
2021-02-01 22:32:43 -08:00
spacing = {
'vertical': 5,
'horizontal': 5
}
2021-02-01 21:24:47 -08:00
2021-02-01 22:32:43 -08:00
padding = {
'top': spacing['vertical'],
'right': spacing['horizontal'],
'bottom': spacing['vertical'],
'left': spacing['horizontal']
}
2021-02-01 21:24:47 -08:00
# HACK This is set to mitigate the blinding flash of white in between page
# loads. This can break sites with no explicit background, so I rely on the
# let-there-be-light.user.js greasemonkey script to "reset" the background.
c.colors.webpage.bg = palette['background']
## UI
# Scrollbar style; much less intrusive than the default
c.scrolling.bar = "overlay"
# Completion
c.completion.shrink = True
## Fonts
c.fonts.default_family = "JetBrainsMono"
c.fonts.default_size = "10pt"
# Background color of the completion widget category headers.
2021-02-01 22:32:43 -08:00
c.colors.completion.category.bg = palette['background']
# Bottom border color of the completion widget category headers.
2021-02-01 22:32:43 -08:00
c.colors.completion.category.border.bottom = palette['border']
# Top border color of the completion widget category headers.
2021-02-01 22:32:43 -08:00
c.colors.completion.category.border.top = palette['border']
# Foreground color of completion widget category headers.
2021-02-01 22:32:43 -08:00
c.colors.completion.category.fg = palette['foreground']
# Background color of the completion widget for even rows.
2021-02-01 22:32:43 -08:00
c.colors.completion.even.bg = palette['background']
# Background color of the completion widget for odd rows.
2021-02-01 22:32:43 -08:00
c.colors.completion.odd.bg = palette['background-alt']
# Text color of the completion widget.
2021-02-01 22:32:43 -08:00
c.colors.completion.fg = palette['foreground']
# Background color of the selected completion item.
2021-02-01 22:32:43 -08:00
c.colors.completion.item.selected.bg = palette['selection']
# Bottom border color of the selected completion item.
2021-02-01 22:32:43 -08:00
c.colors.completion.item.selected.border.bottom = palette['selection']
# Top border color of the completion widget category headers.
2021-02-01 22:32:43 -08:00
c.colors.completion.item.selected.border.top = palette['selection']
# Foreground color of the selected completion item.
2021-02-01 22:32:43 -08:00
c.colors.completion.item.selected.fg = palette['foreground']
# Foreground color of the matched text in the completion.
2021-02-01 22:32:43 -08:00
c.colors.completion.match.fg = palette['orange']
# Color of the scrollbar in completion view
2021-02-01 22:32:43 -08:00
c.colors.completion.scrollbar.bg = palette['background']
# Color of the scrollbar handle in completion view.
2021-02-01 22:32:43 -08:00
c.colors.completion.scrollbar.fg = palette['foreground']
# Background color for the download bar.
2021-02-01 22:32:43 -08:00
c.colors.downloads.bar.bg = palette['background']
# Background color for downloads with errors.
2021-02-01 22:32:43 -08:00
c.colors.downloads.error.bg = palette['background']
# Foreground color for downloads with errors.
2021-02-01 22:32:43 -08:00
c.colors.downloads.error.fg = palette['red']
# Color gradient stop for download backgrounds.
2021-02-01 22:32:43 -08:00
c.colors.downloads.stop.bg = palette['background']
2021-02-01 21:24:47 -08:00
2021-02-01 22:32:43 -08:00
## Color gradient interpolation system for download backgrounds.
## Type: ColorSystem
## Valid values:
## - rgb: Interpolate in the RGB color system.
## - hsv: Interpolate in the HSV color system.
## - hsl: Interpolate in the HSL color system.
## - none: Don't show a gradient.
c.colors.downloads.system.bg = 'none'
2021-02-01 21:24:47 -08:00
2021-02-01 22:32:43 -08:00
## Background color for hints. Note that you can use a `rgba(...)` value
# for transparency.
2021-02-01 22:32:43 -08:00
c.colors.hints.bg = palette['background']
# Font color for hints.
2021-02-01 22:32:43 -08:00
c.colors.hints.fg = palette['purple']
# Hints
2021-02-01 22:32:43 -08:00
c.hints.border = '1px solid ' + palette['background-alt']
# Font color for the matched part of hints.
2021-02-01 22:32:43 -08:00
c.colors.hints.match.fg = palette['foreground-alt']
# Background color of the keyhint widget.
2021-02-01 22:32:43 -08:00
c.colors.keyhint.bg = palette['background']
# Text color for the keyhint widget.
2021-02-01 22:32:43 -08:00
c.colors.keyhint.fg = palette['purple']
# Highlight color for keys to complete the current keychain.
2021-02-01 22:32:43 -08:00
c.colors.keyhint.suffix.fg = palette['selection']
# Background color of an error message.
2021-02-01 22:32:43 -08:00
c.colors.messages.error.bg = palette['background']
# Border color of an error message.
2021-02-01 22:32:43 -08:00
c.colors.messages.error.border = palette['background-alt']
# Foreground color of an error message.
2021-02-01 22:32:43 -08:00
c.colors.messages.error.fg = palette['red']
# Background color of an info message.
2021-02-01 22:32:43 -08:00
c.colors.messages.info.bg = palette['background']
# Border color of an info message.
2021-02-01 22:32:43 -08:00
c.colors.messages.info.border = palette['background-alt']
# Foreground color an info message.
2021-02-01 22:32:43 -08:00
c.colors.messages.info.fg = palette['comment']
# Background color of a warning message.
2021-02-01 22:32:43 -08:00
c.colors.messages.warning.bg = palette['background']
# Border color of a warning message.
2021-02-01 22:32:43 -08:00
c.colors.messages.warning.border = palette['background-alt']
# Foreground color a warning message.
2021-02-01 22:32:43 -08:00
c.colors.messages.warning.fg = palette['red']
# Background color for prompts.
2021-02-01 22:32:43 -08:00
c.colors.prompts.bg = palette['background']
# Border used around UI elements in prompts.
2021-02-01 22:32:43 -08:00
c.colors.prompts.border = '1px solid ' + palette['background-alt']
# Foreground color for prompts.
2021-02-01 22:32:43 -08:00
c.colors.prompts.fg = palette['cyan']
# Background color for the selected item in filename prompts.
2021-02-01 22:32:43 -08:00
c.colors.prompts.selected.bg = palette['selection']
# Background color of the statusbar in caret mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.caret.bg = palette['background']
# Foreground color of the statusbar in caret mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.caret.fg = palette['orange']
# Background color of the statusbar in caret mode with a selection.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.caret.selection.bg = palette['background']
# Foreground color of the statusbar in caret mode with a selection.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.caret.selection.fg = palette['orange']
# Background color of the statusbar in command mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.command.bg = palette['background']
# Foreground color of the statusbar in command mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.command.fg = palette['pink']
# Background color of the statusbar in private browsing + command mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.command.private.bg = palette['background']
# Foreground color of the statusbar in private browsing + command mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.command.private.fg = palette['foreground-alt']
# Background color of the statusbar in insert mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.insert.bg = palette['background-attention']
# Foreground color of the statusbar in insert mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.insert.fg = palette['foreground-attention']
# Background color of the statusbar.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.normal.bg = palette['background']
# Foreground color of the statusbar.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.normal.fg = palette['foreground']
# Background color of the statusbar in passthrough mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.passthrough.bg = palette['background']
# Foreground color of the statusbar in passthrough mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.passthrough.fg = palette['orange']
# Background color of the statusbar in private browsing mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.private.bg = palette['background-alt']
# Foreground color of the statusbar in private browsing mode.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.private.fg = palette['foreground-alt']
# Background color of the progress bar.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.progress.bg = palette['background']
# Foreground color of the URL in the statusbar on error.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.url.error.fg = palette['red']
# Default foreground color of the URL in the statusbar.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.url.fg = palette['foreground']
# Foreground color of the URL in the statusbar for hovered links.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.url.hover.fg = palette['cyan']
# Foreground color of the URL in the statusbar on successful load
2021-02-01 22:32:43 -08:00
c.colors.statusbar.url.success.http.fg = palette['green']
# Foreground color of the URL in the statusbar on successful load
2021-02-01 22:32:43 -08:00
c.colors.statusbar.url.success.https.fg = palette['green']
# Foreground color of the URL in the statusbar when there's a warning.
2021-02-01 22:32:43 -08:00
c.colors.statusbar.url.warn.fg = palette['yellow']
# Status bar padding
2021-02-01 22:32:43 -08:00
c.statusbar.padding = padding
# Background color of the tab bar.
2021-02-01 22:32:43 -08:00
c.colors.tabs.bar.bg = palette['selection']
# Background color of unselected even tabs.
2021-02-01 22:32:43 -08:00
c.colors.tabs.even.bg = palette['selection']
# Foreground color of unselected even tabs.
2021-02-01 22:32:43 -08:00
c.colors.tabs.even.fg = palette['foreground']
# Color for the tab indicator on errors.
2021-02-01 22:32:43 -08:00
c.colors.tabs.indicator.error = palette['red']
# Color gradient start for the tab indicator.
2021-02-01 22:32:43 -08:00
c.colors.tabs.indicator.start = palette['orange']
# Color gradient end for the tab indicator.
2021-02-01 22:32:43 -08:00
c.colors.tabs.indicator.stop = palette['green']
2021-02-01 21:24:47 -08:00
2021-02-01 22:32:43 -08:00
## Color gradient interpolation system for the tab indicator.
## Type: ColorSystem
## Valid values:
## - rgb: Interpolate in the RGB color system.
## - hsv: Interpolate in the HSV color system.
## - hsl: Interpolate in the HSL color system.
## - none: Don't show a gradient.
c.colors.tabs.indicator.system = 'none'
2021-02-01 21:24:47 -08:00
# Background color of unselected odd tabs.
2021-02-01 22:32:43 -08:00
c.colors.tabs.odd.bg = palette['selection']
# Foreground color of unselected odd tabs.
2021-02-01 22:32:43 -08:00
c.colors.tabs.odd.fg = palette['foreground']
# Background color of selected even tabs.
2021-02-01 22:32:43 -08:00
c.colors.tabs.selected.even.bg = palette['background']
# Foreground color of selected even tabs.
2021-02-01 22:32:43 -08:00
c.colors.tabs.selected.even.fg = palette['foreground']
# Background color of selected odd tabs.
2021-02-01 22:32:43 -08:00
c.colors.tabs.selected.odd.bg = palette['background']
# Foreground color of selected odd tabs.
2021-02-01 22:32:43 -08:00
c.colors.tabs.selected.odd.fg = palette['foreground']
2021-02-01 21:24:47 -08:00
2021-02-01 22:32:43 -08:00
## Tab padding
c.tabs.padding = padding
c.tabs.indicator.width = 1
c.tabs.favicons.scale = 1