X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/78c614374a16f318082b5cc73771075119faed27..fdd63454b51a35418ec23d3489cf20ae66a2299d:/qutebrowser/themes/nord-qutebrowser.py?ds=sidebyside diff --git a/qutebrowser/themes/nord-qutebrowser.py b/qutebrowser/themes/nord-qutebrowser.py index 148a80a..62a86d9 100644 --- a/qutebrowser/themes/nord-qutebrowser.py +++ b/qutebrowser/themes/nord-qutebrowser.py @@ -1,3 +1,10 @@ +# noqa: D100 +from qutebrowser.config.configfiles import ConfigAPI +from qutebrowser.config.config import ConfigContainer + +c: ConfigContainer = c # noqa: F821 pylint: disable=E0602,C0103 +config: ConfigAPI = config # noqa: F821 pylint: disable=E0602,C0103 + # https://github.com/Linuus/nord-qutebrowser nord = { @@ -25,7 +32,7 @@ nord = { ## Background color of the completion widget category headers. ## Type: QssColor -c.colors.completion.category.bg = nord['nord0'] +c.colors.completion.category.bg = 'qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 '+nord['nord1']+', stop:1 '+nord['nord0']+')' ## Bottom border color of the completion widget category headers. ## Type: QssColor @@ -33,7 +40,7 @@ c.colors.completion.category.border.bottom = nord['nord0'] ## Top border color of the completion widget category headers. ## Type: QssColor -c.colors.completion.category.border.top = nord['nord0'] +c.colors.completion.category.border.top = nord['nord1'] ## Foreground color of completion widget category headers. ## Type: QtColor @@ -43,12 +50,9 @@ c.colors.completion.category.fg = nord['nord5'] ## Type: QssColor c.colors.completion.even.bg = nord['nord1'] -## Background color of the completion widget for odd rows. -## Type: QssColor -c.colors.completion.odd.bg = nord['nord1'] - -## Text color of the completion widget. -## Type: QtColor +## Text color of the completion widget. May be a single color to use for +## all columns or a list of three colors, one for each column. +## Type: List of QtColor, or QtColor c.colors.completion.fg = nord['nord4'] ## Background color of the selected completion item. @@ -59,7 +63,7 @@ c.colors.completion.item.selected.bg = nord['nord3'] ## Type: QssColor c.colors.completion.item.selected.border.bottom = nord['nord3'] -## Top border color of the completion widget category headers. +## Top border color of the selected completion item. ## Type: QssColor c.colors.completion.item.selected.border.top = nord['nord3'] @@ -67,18 +71,56 @@ c.colors.completion.item.selected.border.top = nord['nord3'] ## Type: QtColor c.colors.completion.item.selected.fg = nord['nord6'] +## Foreground color of the matched text in the selected completion item. +## Type: QtColor +c.colors.completion.item.selected.match.fg = nord['nord13'] + ## Foreground color of the matched text in the completion. -## Type: QssColor +## Type: QtColor c.colors.completion.match.fg = nord['nord13'] -## Color of the scrollbar in completion view +## Background color of the completion widget for odd rows. +## Type: QssColor +c.colors.completion.odd.bg = nord['nord2'] + +## Color of the scrollbar in the completion view. ## Type: QssColor c.colors.completion.scrollbar.bg = nord['nord1'] -## Color of the scrollbar handle in completion view. +## Color of the scrollbar handle in the completion view. ## Type: QssColor c.colors.completion.scrollbar.fg = nord['nord5'] +## Background color of disabled items in the context menu. If set to +## null, the Qt default is used. +## Type: QssColor +c.colors.contextmenu.disabled.bg = nord['nord0'] + +## Foreground color of disabled items in the context menu. If set to +## null, the Qt default is used. +## Type: QssColor +c.colors.contextmenu.disabled.fg = nord['nord3'] + +## Background color of the context menu. If set to null, the Qt default +## is used. +## Type: QssColor +c.colors.contextmenu.menu.bg = nord['nord1'] + +## Foreground color of the context menu. If set to null, the Qt default +## is used. +## Type: QssColor +c.colors.contextmenu.menu.fg = nord['nord6'] + +## Background color of the context menu's selected item. If set to null, +## the Qt default is used. +## Type: QssColor +c.colors.contextmenu.selected.bg = nord['nord1'] + +## Foreground color of the context menu's selected item. If set to null, +## the Qt default is used. +## Type: QssColor +c.colors.contextmenu.selected.fg = nord['nord6'] + ## Background color for the download bar. ## Type: QssColor c.colors.downloads.bar.bg = nord['nord0'] @@ -91,9 +133,21 @@ c.colors.downloads.error.bg = nord['nord11'] ## Type: QtColor c.colors.downloads.error.fg = nord['nord5'] +## Color gradient start for download backgrounds. +## Type: QtColor +c.colors.downloads.start.bg = nord['nord12'] + +## Color gradient start for download text. +## Type: QtColor +c.colors.downloads.start.fg = nord['nord2'] + ## Color gradient stop for download backgrounds. ## Type: QtColor -c.colors.downloads.stop.bg = nord['nord15'] +c.colors.downloads.stop.bg = nord['nord14'] + +## Color gradient end for download text. +## Type: QtColor +c.colors.downloads.stop.fg = nord['nord2'] ## Color gradient interpolation system for download backgrounds. ## Type: ColorSystem @@ -102,11 +156,22 @@ c.colors.downloads.stop.bg = nord['nord15'] ## - 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' +c.colors.downloads.system.bg = 'hsv' + +## Color gradient interpolation system for download text. +## 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.fg = "none" ## Background color for hints. Note that you can use a `rgba(...)` value ## for transparency. ## Type: QssColor +#TODO use gradient? +# c.colors.hints.bg = 'qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 247, 133, 0.8), stop:1 rgba(255, 197, 66, 0.8))' c.colors.hints.bg = nord['nord13'] ## Font color for hints. @@ -114,7 +179,7 @@ c.colors.hints.bg = nord['nord13'] c.colors.hints.fg = nord['nord0'] ## Font color for the matched part of hints. -## Type: QssColor +## Type: QtColor c.colors.hints.match.fg = nord['nord10'] ## Background color of the keyhint widget. @@ -149,7 +214,7 @@ c.colors.messages.info.bg = nord['nord8'] ## Type: QssColor c.colors.messages.info.border = nord['nord8'] -## Foreground color an info message. +## Foreground color of an info message. ## Type: QssColor c.colors.messages.info.fg = nord['nord5'] @@ -161,7 +226,7 @@ c.colors.messages.warning.bg = nord['nord12'] ## Type: QssColor c.colors.messages.warning.border = nord['nord12'] -## Foreground color a warning message. +## Foreground color of a warning message. ## Type: QssColor c.colors.messages.warning.fg = nord['nord5'] @@ -169,8 +234,8 @@ c.colors.messages.warning.fg = nord['nord5'] ## Type: QssColor c.colors.prompts.bg = nord['nord2'] -# ## Border used around UI elements in prompts. -# ## Type: String +## Border used around UI elements in prompts. +## Type: String c.colors.prompts.border = '1px solid ' + nord['nord0'] ## Foreground color for prompts. @@ -181,6 +246,10 @@ c.colors.prompts.fg = nord['nord5'] ## Type: QssColor c.colors.prompts.selected.bg = nord['nord3'] +## Foreground color for the selected item in filename prompts. +## Type: QssColor +c.colors.prompts.selected.fg = nord['nord5'] + ## Background color of the statusbar in caret mode. ## Type: QssColor c.colors.statusbar.caret.bg = nord['nord15'] @@ -215,11 +284,11 @@ c.colors.statusbar.command.private.fg = nord['nord5'] ## Background color of the statusbar in insert mode. ## Type: QssColor -c.colors.statusbar.insert.bg = nord['nord14'] +c.colors.statusbar.insert.bg = nord['nord3'] ## Foreground color of the statusbar in insert mode. ## Type: QssColor -c.colors.statusbar.insert.fg = nord['nord1'] +c.colors.statusbar.insert.fg = nord['nord6'] ## Background color of the statusbar. ## Type: QssColor @@ -276,7 +345,7 @@ c.colors.statusbar.url.success.https.fg = nord['nord14'] c.colors.statusbar.url.warn.fg = nord['nord12'] ## Background color of the tab bar. -## Type: QtColor +## Type: QssColor c.colors.tabs.bar.bg = nord['nord3'] ## Background color of unselected even tabs. @@ -293,11 +362,11 @@ c.colors.tabs.indicator.error = nord['nord11'] ## Color gradient start for the tab indicator. ## Type: QtColor -# c.colors.tabs.indicator.start = nord['violet'] +c.colors.tabs.indicator.start = nord['nord12'] ## Color gradient end for the tab indicator. ## Type: QtColor -# c.colors.tabs.indicator.stop = nord['orange'] +c.colors.tabs.indicator.stop = nord['nord14'] ## Color gradient interpolation system for the tab indicator. ## Type: ColorSystem @@ -306,7 +375,7 @@ c.colors.tabs.indicator.error = nord['nord11'] ## - 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' +c.colors.tabs.indicator.system = 'hsv' ## Background color of unselected odd tabs. ## Type: QtColor @@ -316,23 +385,63 @@ c.colors.tabs.odd.bg = nord['nord3'] ## Type: QtColor c.colors.tabs.odd.fg = nord['nord5'] -# ## Background color of selected even tabs. -# ## Type: QtColor +## Background color of pinned unselected even tabs. +## Type: QtColor +c.colors.tabs.pinned.even.bg = nord['nord10'] + +## Foreground color of pinned unselected even tabs. +## Type: QtColor +c.colors.tabs.pinned.even.fg = nord['nord4'] + +## Background color of pinned unselected odd tabs. +## Type: QtColor +c.colors.tabs.pinned.odd.bg = c.colors.tabs.pinned.even.bg + +## Foreground color of pinned unselected odd tabs. +## Type: QtColor +c.colors.tabs.pinned.odd.fg = c.colors.tabs.pinned.even.fg + +## Background color of pinned selected even tabs. +## Type: QtColor +c.colors.tabs.pinned.selected.even.bg = c.colors.tabs.selected.even.bg + +## Foreground color of pinned selected even tabs. +## Type: QtColor +c.colors.tabs.pinned.selected.even.fg = c.colors.tabs.selected.even.fg + +## Background color of pinned selected odd tabs. +## Type: QtColor +c.colors.tabs.pinned.selected.odd.bg = c.colors.tabs.selected.odd.bg + +## Foreground color of pinned selected odd tabs. +## Type: QtColor +c.colors.tabs.pinned.selected.odd.fg = c.colors.tabs.selected.odd.fg + +## Background color of selected even tabs. +## Type: QtColor c.colors.tabs.selected.even.bg = nord['nord0'] -# ## Foreground color of selected even tabs. -# ## Type: QtColor +## Foreground color of selected even tabs. +## Type: QtColor c.colors.tabs.selected.even.fg = nord['nord5'] -# ## Background color of selected odd tabs. -# ## Type: QtColor +## Background color of selected odd tabs. +## Type: QtColor c.colors.tabs.selected.odd.bg = nord['nord0'] -# ## Foreground color of selected odd tabs. -# ## Type: QtColor +## Foreground color of selected odd tabs. +## Type: QtColor c.colors.tabs.selected.odd.fg = nord['nord5'] +## Background color of tooltips. If set to null, the Qt default is used. +## Type: QssColor +c.colors.tooltip.bg = None + +## Foreground color of tooltips. If set to null, the Qt default is used. +## Type: QssColor +c.colors.tooltip.fg = None + ## Background color for webpages if unset (or empty to use the theme's -## color) +## color). ## Type: QtColor -# c.colors.webpage.bg = 'white' +c.colors.webpage.bg = nord['nord4']