Skip to content

Commit 5f65482

Browse files
committed
Add dark theme
1 parent e9584df commit 5f65482

File tree

3 files changed

+102
-0
lines changed

3 files changed

+102
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@
1414

1515
*Copy table from Numbers and CMD-Ctrl-T to paste as Markdown table*
1616

17+
## Toggle Dark/Light Theme
18+
19+
type `dark` to switch between dark and light theme
1720

1821
### Acknowledge
1922
- [flat vim icon](https://iconverticons.com/icons/92d8febce1d7a304/)
2023
- [Alfred App Community Forum](https://www.alfredforum.com/topic/10547-edit-clipboard-within-macvim/)
2124
- [schmijos/html-table-parser-python3: A small and simple HTML table parser not requiring any external dependency.](https://github.com/schmijos/html-table-parser-python3)
25+
- [How to quickly switch between light and dark mode in Mojave](https://www.reddit.com/r/mac/comments/8oztql/how_to_quickly_switch_between_light_and_dark_mode/)

sources/dark_theme/icon.png

306 KB
Loading

sources/dark_theme/info.plist

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>bundleid</key>
6+
<string>xyz.cdpath.dark</string>
7+
<key>category</key>
8+
<string>Tools</string>
9+
<key>connections</key>
10+
<dict>
11+
<key>264A09D9-DE34-403A-9524-C67F6525811D</key>
12+
<array>
13+
<dict>
14+
<key>destinationuid</key>
15+
<string>D4B5F6A6-C49E-436C-BF10-6B9819311A2C</string>
16+
<key>modifiers</key>
17+
<integer>0</integer>
18+
<key>modifiersubtext</key>
19+
<string></string>
20+
<key>vitoclose</key>
21+
<false/>
22+
</dict>
23+
</array>
24+
</dict>
25+
<key>createdby</key>
26+
<string>cdpath</string>
27+
<key>description</key>
28+
<string>Dark Theme</string>
29+
<key>disabled</key>
30+
<false/>
31+
<key>name</key>
32+
<string>Dark</string>
33+
<key>objects</key>
34+
<array>
35+
<dict>
36+
<key>config</key>
37+
<dict>
38+
<key>applescript</key>
39+
<string>on alfred_script(q)
40+
tell application "System Events" tell appearance preferences set dark mode to not dark mode end tell end tell
41+
end alfred_script</string>
42+
<key>cachescript</key>
43+
<false/>
44+
</dict>
45+
<key>type</key>
46+
<string>alfred.workflow.action.applescript</string>
47+
<key>uid</key>
48+
<string>D4B5F6A6-C49E-436C-BF10-6B9819311A2C</string>
49+
<key>version</key>
50+
<integer>1</integer>
51+
</dict>
52+
<dict>
53+
<key>config</key>
54+
<dict>
55+
<key>argumenttype</key>
56+
<integer>2</integer>
57+
<key>keyword</key>
58+
<string>dark</string>
59+
<key>subtext</key>
60+
<string></string>
61+
<key>text</key>
62+
<string>Enable/Disable dark theme</string>
63+
<key>withspace</key>
64+
<false/>
65+
</dict>
66+
<key>type</key>
67+
<string>alfred.workflow.input.keyword</string>
68+
<key>uid</key>
69+
<string>264A09D9-DE34-403A-9524-C67F6525811D</string>
70+
<key>version</key>
71+
<integer>1</integer>
72+
</dict>
73+
</array>
74+
<key>readme</key>
75+
<string>credit: https://www.reddit.com/r/mac/comments/8oztql/how_to_quickly_switch_between_light_and_dark_mode/</string>
76+
<key>uidata</key>
77+
<dict>
78+
<key>264A09D9-DE34-403A-9524-C67F6525811D</key>
79+
<dict>
80+
<key>xpos</key>
81+
<integer>50</integer>
82+
<key>ypos</key>
83+
<integer>50</integer>
84+
</dict>
85+
<key>D4B5F6A6-C49E-436C-BF10-6B9819311A2C</key>
86+
<dict>
87+
<key>xpos</key>
88+
<integer>270</integer>
89+
<key>ypos</key>
90+
<integer>50</integer>
91+
</dict>
92+
</dict>
93+
<key>version</key>
94+
<string>0.0.1</string>
95+
<key>webaddress</key>
96+
<string>cdpath.xyz</string>
97+
</dict>
98+
</plist>

0 commit comments

Comments
 (0)