allow disabling I guess
This commit is contained in:
parent
d9bafb0a34
commit
3b3541dd22
12
js/main.js
12
js/main.js
|
@ -3837,13 +3837,11 @@ class V2_SettingsPanel {
|
|||
ContentManager.unwatchContent("theme");
|
||||
}
|
||||
|
||||
if (_c["fork-wp-1"]) {
|
||||
const current = BdApi.getWindowPreference("transparent");
|
||||
if (current != _c["fork-wp-1"]) {
|
||||
BdApi.setWindowPreference("transparent", _c["fork-wp-1"]);
|
||||
if (_c["fork-wp-1"]) BdApi.setWindowPreference("backgroundColor", null);
|
||||
else BdApi.setWindowPreference("backgroundColor", "#2f3136");
|
||||
}
|
||||
const current = BdApi.getWindowPreference("transparent");
|
||||
if (current != _c["fork-wp-1"]) {
|
||||
BdApi.setWindowPreference("transparent", _c["fork-wp-1"]);
|
||||
if (_c["fork-wp-1"]) BdApi.setWindowPreference("backgroundColor", null);
|
||||
else BdApi.setWindowPreference("backgroundColor", "#2f3136");
|
||||
}
|
||||
|
||||
if (_c["fork-wp-2"]) {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue