mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +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)
|
||||
if (optionService.getOptionBool("backgroundEffects") && isWindows) {
|
||||
extraOpts.backgroundMaterial = "auto";
|
||||
if (optionService.getOptionBool("backgroundEffects")) {
|
||||
if (isMac) {
|
||||
// Vibrancy not yet supported.
|
||||
} else if (isWindows) {
|
||||
extraOpts.backgroundMaterial = "auto";
|
||||
} else {
|
||||
// Linux or other platforms.
|
||||
extraOpts.transparent = true;
|
||||
}
|
||||
}
|
||||
|
||||
return extraOpts;
|
||||
|
Loading…
x
Reference in New Issue
Block a user