Skip to content

Commit 3e2e9ca

Browse files
feat: allow to choose a theme in a DEBUG session
1 parent 0aed040 commit 3e2e9ca

6 files changed

Lines changed: 8 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ In some cases (that is, in _Wayland_ based environments that do not fully suppor
5757
<!--
5858
## :radioactive: Issues and Breaking Changes
5959
60-
The configuration file format has not changed for more than six months now, therefore there are no breaking change to be careful about.
60+
The configuration file format has not changed for more than six months now, therefore there are no breaking changes to be careful about.
6161
-->
6262

6363

lib/i18n/strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
CLI_APP = "when"
1616
UI_APP_LABEL = "When Automation Tool"
1717
UI_APP_COPYRIGHT = "© 2023-2026 Francesco Garosi"
18-
UI_APP_VERSION = "2.1.10"
18+
UI_APP_VERSION = "2.1.11"
1919

2020
# other strings that should not be translated
2121
UI_WHENEVER = "whenever"

lib/repocfg.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ def __str__(self) -> str:
9494
# menu box size
9595
"SIZE_MENU_BOX": (272, 460),
9696

97-
# themes
97+
# themes: for the DEBUG theme the `-dark`/`-light` suffix *must* be
98+
# specified, in order to be able to test a specific theme using a
99+
# debug instance; in the production case, dark or light is chosen
100+
# according to the system setup
98101
"DEFAULT_THEME": str(os.environ.get("WHEN_APP_THEME")) or "bootstrap",
99-
# "DEFAULT_THEME_DARK": "darkly",
100-
# "DEFAULT_THEME_LIGHT": "flatly",
101-
"DEFAULT_THEME_DEBUG": "vapor-dark",
102+
"DEFAULT_THEME_DEBUG": str(os.environ.get("WHEN_APP_THEME")) or "vapor-dark",
102103

103104
# editor themes
104105
"EDITOR_THEME_DARK": "ayu-dark",

lib/utility.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
from .platform import is_windows, is_linux, is_mac
3636
from .lua import lua_library_path
3737

38-
3938
# lowest whenever version supported
4039
_MIN_WHENEVER_SUPPORTED = Version.parse("1.2.0")
4140

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "when"
3-
version = "2.1.10"
3+
version = "2.1.11"
44
description = "Interface for the **whenever** automation tool"
55
authors = [
66
{ name = "Francesco Garosi", email = "francesco.garosi@gmail.com" },

when/when.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from typing import final
1414

15-
1615
BASEDIR = os.path.dirname(os.path.dirname(sys.argv[0])) or "."
1716
sys.path.append(BASEDIR)
1817

@@ -52,7 +51,6 @@
5251

5352
from lib.internal import multi_conds_run_task as mcrt
5453

55-
5654
# main root window, to be withdrawn
5755
_root = None
5856

0 commit comments

Comments
 (0)