Skip to content

Commit 840617c

Browse files
committed
theming: added missing 'extended' check (closes #44)
1 parent 950d5b4 commit 840617c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/pyrocore/data/config/rtorrent.d/theming.rc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@
1010
#
1111
# python-pyrocore -m pyrocore.ui.theming -a -t default-256,solarized-blue,solarized-yellow,happy-pastel -l
1212

13+
# UI/Key: Bind theme rotation to '~'
1314
pyro.bind_key = rotate_theme, ~,\
1415
"try_import=(execute.capture_nothrow, (cat,(pyro.bin_dir),python-pyrocore), -m, pyrocore.ui.theming, -qn)"
1516

16-
try_import=(execute.capture_nothrow, (cat,(pyro.bin_dir),python-pyrocore), -m, pyrocore.ui.theming, -qc)
17+
# HELPER: This is used within theme files, currently just announces the switch
18+
method.insert = pyro.color_theme.name, private|simple,\
19+
"print = (cat, \"Switched to '\", (argument.0), \"' color theme\")"
20+
21+
# HELPER: Load the currently active theme (on startup)
22+
method.insert = pyro._load_current_theme, private|simple,\
23+
"try_import=(execute.capture_nothrow, (cat,(pyro.bin_dir),python-pyrocore), -m, pyrocore.ui.theming, -qc)"
24+
25+
# Load @ startup
26+
branch=(pyro.extended), ((pyro._load_current_theme))

0 commit comments

Comments
 (0)