qutebrowser: lint with ruff (with ALL selected)
This commit is contained in:
parent
0e93cee685
commit
f9c6b206ca
12 changed files with 99 additions and 69 deletions
|
@ -1,25 +1,29 @@
|
|||
class Palettes:
|
||||
rose_pine = {
|
||||
"base00": "#191724",
|
||||
"base01": "#1f1d2e",
|
||||
"base02": "#26233a",
|
||||
"base03": "#6e6a86",
|
||||
"base04": "#908caa",
|
||||
"base05": "#e0def4",
|
||||
"base06": "#e0def4",
|
||||
"base07": "#524f67",
|
||||
"base08": "#eb6f92",
|
||||
"base09": "#f6c177",
|
||||
"base0A": "#ebbcba",
|
||||
"base0B": "#31748f",
|
||||
"base0C": "#9ccfd8",
|
||||
"base0D": "#c4a7e7",
|
||||
"base0E": "#f6c177",
|
||||
"base0F": "#524f67",
|
||||
}
|
||||
# ruff: noqa: PLR0915
|
||||
|
||||
"""Theming utilities (useful with base16)."""
|
||||
|
||||
ROSE_PINE: dict[str, str] = {
|
||||
"base00": "#191724",
|
||||
"base01": "#1f1d2e",
|
||||
"base02": "#26233a",
|
||||
"base03": "#6e6a86",
|
||||
"base04": "#908caa",
|
||||
"base05": "#e0def4",
|
||||
"base06": "#e0def4",
|
||||
"base07": "#524f67",
|
||||
"base08": "#eb6f92",
|
||||
"base09": "#f6c177",
|
||||
"base0A": "#ebbcba",
|
||||
"base0B": "#31748f",
|
||||
"base0C": "#9ccfd8",
|
||||
"base0D": "#c4a7e7",
|
||||
"base0E": "#f6c177",
|
||||
"base0F": "#524f67",
|
||||
}
|
||||
|
||||
|
||||
def load_colours(c, palette):
|
||||
def load_colours(c, palette: dict[str, str]) -> None:
|
||||
"""Load colours from `palette` (must be base16) into `c`."""
|
||||
c.colors.completion.fg = palette["base05"]
|
||||
c.colors.completion.odd.bg = palette["base01"]
|
||||
c.colors.completion.even.bg = palette["base00"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue