mirror of
https://github.com/daylinmorgan/yartsu.git
synced 2024-12-22 04:20:44 -06:00
feat: add dracula colorscheme
This commit is contained in:
parent
0fa37082be
commit
52ee772d04
1 changed files with 34 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
|
from rich.color import parse_rgb_hex
|
||||||
from rich.terminal_theme import (
|
from rich.terminal_theme import (
|
||||||
DIMMED_MONOKAI,
|
DIMMED_MONOKAI,
|
||||||
MONOKAI,
|
MONOKAI,
|
||||||
|
@ -11,6 +12,38 @@ from rich.terminal_theme import (
|
||||||
Colors = namedtuple("Colors", "black, red, green, yellow, blue, magenta, cyan, white")
|
Colors = namedtuple("Colors", "black, red, green, yellow, blue, magenta, cyan, white")
|
||||||
Theme = namedtuple("Theme", "background, foreground, colors, bright_colors")
|
Theme = namedtuple("Theme", "background, foreground, colors, bright_colors")
|
||||||
|
|
||||||
|
dracula = Theme(
|
||||||
|
background=parse_rgb_hex('282a36'),
|
||||||
|
foreground=parse_rgb_hex('f8f8f2'),
|
||||||
|
colors=Colors(
|
||||||
|
black=parse_rgb_hex('21222c'),
|
||||||
|
cyan=parse_rgb_hex('8be9fd'),
|
||||||
|
yellow=parse_rgb_hex('f1fa8c'),
|
||||||
|
blue=parse_rgb_hex('bd93f9'),
|
||||||
|
red=parse_rgb_hex('ff5555'),
|
||||||
|
green=parse_rgb_hex('50fa7b'),
|
||||||
|
magenta=parse_rgb_hex('ff79c6'),
|
||||||
|
white=parse_rgb_hex('f8f8f2'),
|
||||||
|
),
|
||||||
|
bright_colors=Colors(
|
||||||
|
black=parse_rgb_hex('6272a4'),
|
||||||
|
cyan=parse_rgb_hex('a4ffff'),
|
||||||
|
red=parse_rgb_hex('ff6e6e'),
|
||||||
|
yellow=parse_rgb_hex('ffffa5'),
|
||||||
|
blue=parse_rgb_hex('d6acff'),
|
||||||
|
green=parse_rgb_hex('69ff94'),
|
||||||
|
magenta=parse_rgb_hex('ff92df'),
|
||||||
|
white=parse_rgb_hex('ffffff'),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
DRACULA = TerminalTheme(
|
||||||
|
dracula.background,
|
||||||
|
dracula.foreground,
|
||||||
|
dracula.colors,
|
||||||
|
dracula.bright_colors,
|
||||||
|
)
|
||||||
|
|
||||||
cat_mocha = Theme(
|
cat_mocha = Theme(
|
||||||
background=(30, 30, 46),
|
background=(30, 30, 46),
|
||||||
foreground=(198, 208, 245),
|
foreground=(198, 208, 245),
|
||||||
|
@ -137,6 +170,7 @@ THEMES = {
|
||||||
"cat_frappe": CAT_FRAPPE,
|
"cat_frappe": CAT_FRAPPE,
|
||||||
"cat_macchiato": CAT_MACCHIATO,
|
"cat_macchiato": CAT_MACCHIATO,
|
||||||
"cat_latte": CAT_LATTE,
|
"cat_latte": CAT_LATTE,
|
||||||
|
"dracula": DRACULA,
|
||||||
"monokai": MONOKAI,
|
"monokai": MONOKAI,
|
||||||
"dimmed_monokai": DIMMED_MONOKAI,
|
"dimmed_monokai": DIMMED_MONOKAI,
|
||||||
"night_owlish": NIGHT_OWLISH,
|
"night_owlish": NIGHT_OWLISH,
|
||||||
|
|
Loading…
Reference in a new issue