Skip to content

Commit 917c29a

Browse files
committed
Add auto to themes
1 parent fd9582d commit 917c29a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

qdarktheme/_resources/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
from qdarktheme._resources._svg import SVG_RESOURCES
1313
from qdarktheme._resources._template_stylesheet import TEMPLATE_STYLESHEET
1414

15-
THEMES = ("dark", "light")
15+
THEMES = ("dark", "light", "auto")

tools/build_styles/_main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def _remove_qss_comment(stylesheet: str) -> str:
3838

3939

4040
def _mk_root_init_file(output: Path, themes: list[str], doc_string: str) -> None:
41+
themes.append("auto")
42+
4143
code = f"{doc_string}\n"
4244
code += "from qdarktheme._resources._color_values import COLOR_VALUES\n"
4345
code += "from qdarktheme._resources._palette import mk_q_palette\n"

0 commit comments

Comments
 (0)