mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-18 00:02:28 +08:00
feat(electron): support transparency on Linux if background effects are enabled
This commit is contained in:
parent
c603efb44b
commit
27ad451bd8
@ -212,8 +212,15 @@ function getWindowExtraOpts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Window effects (Mica)
|
// Window effects (Mica)
|
||||||
if (optionService.getOptionBool("backgroundEffects") && isWindows) {
|
if (optionService.getOptionBool("backgroundEffects")) {
|
||||||
|
if (isMac) {
|
||||||
|
// Vibrancy not yet supported.
|
||||||
|
} else if (isWindows) {
|
||||||
extraOpts.backgroundMaterial = "auto";
|
extraOpts.backgroundMaterial = "auto";
|
||||||
|
} else {
|
||||||
|
// Linux or other platforms.
|
||||||
|
extraOpts.transparent = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return extraOpts;
|
return extraOpts;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user