Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions aquarel/utils.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import glob
import os
from .theme import Theme
from typing import Optional, Union
from typing import Literal, Optional, Union
from pathlib import Path

import matplotlib.pyplot as plt
import seaborn as sns

HERE = Path(__file__).parent.resolve()
ASSETS_DIR = HERE.parent / "assets"
ValidThemes = Literal[
'ambivalent', 'arctic_dark', 'arctic_light', 'boxy_dark', 'boxy_light', 'gruvbox_dark',
'gruvbox_light', 'minimal_dark', 'minimal_light', 'scientific', 'solarized_dark',
'solarized_light', 'umbra_dark', 'umbra_light'
]


def load_theme(theme_name: str):
def load_theme(theme_name: ValidThemes):
"""
Sets the chosen style and color palette globally.

Expand Down