fix transparency setting
This commit is contained in:
parent
676618a65d
commit
4de9d43f32
|
@ -3839,7 +3839,11 @@ class V2_SettingsPanel {
|
|||
|
||||
if (_c["fork-wp-1"]) {
|
||||
const current = BdApi.getWindowPreference("transparent");
|
||||
if (current != _c["fork-wp-1"]) BdApi.setWindowPreference("transparent", _c["fork-wp-1"]);
|
||||
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"]) {
|
||||
|
|
Loading…
Reference in New Issue