Commit 2213b2b
fix: treat
Some environments (including GNOME) only expose the values of `0` (no
preference) and `1` (prefer dark) in the settings. Currently, the plugin
only handles values of `1` and `2`, with `0` leading to an error. This
is fixed by treating `0` as light mode.
Fixes #6color-scheme of value 0 (no preference) as light mode1 parent 300b441 commit 2213b2b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments