|
@@ -1408,24 +1408,21 @@ void NativeWindowMac::SetVibrancy(const std::string& type) {
|
|
|
vibrancyType = NSVisualEffectMaterialTitlebar;
|
|
|
}
|
|
|
|
|
|
- if (@available(macOS 10.11, *)) {
|
|
|
- if (type == "selection") {
|
|
|
- vibrancyType = NSVisualEffectMaterialSelection;
|
|
|
- } else if (type == "menu") {
|
|
|
- vibrancyType = NSVisualEffectMaterialMenu;
|
|
|
- } else if (type == "popover") {
|
|
|
- vibrancyType = NSVisualEffectMaterialPopover;
|
|
|
- } else if (type == "sidebar") {
|
|
|
- vibrancyType = NSVisualEffectMaterialSidebar;
|
|
|
- } else if (type == "medium-light") {
|
|
|
- EmitWarning(env, "NSVisualEffectMaterialMediumLight" + dep_warn,
|
|
|
- "electron");
|
|
|
- vibrancyType = NSVisualEffectMaterialMediumLight;
|
|
|
- } else if (type == "ultra-dark") {
|
|
|
- EmitWarning(env, "NSVisualEffectMaterialUltraDark" + dep_warn,
|
|
|
- "electron");
|
|
|
- vibrancyType = NSVisualEffectMaterialUltraDark;
|
|
|
- }
|
|
|
+ if (type == "selection") {
|
|
|
+ vibrancyType = NSVisualEffectMaterialSelection;
|
|
|
+ } else if (type == "menu") {
|
|
|
+ vibrancyType = NSVisualEffectMaterialMenu;
|
|
|
+ } else if (type == "popover") {
|
|
|
+ vibrancyType = NSVisualEffectMaterialPopover;
|
|
|
+ } else if (type == "sidebar") {
|
|
|
+ vibrancyType = NSVisualEffectMaterialSidebar;
|
|
|
+ } else if (type == "medium-light") {
|
|
|
+ EmitWarning(env, "NSVisualEffectMaterialMediumLight" + dep_warn,
|
|
|
+ "electron");
|
|
|
+ vibrancyType = NSVisualEffectMaterialMediumLight;
|
|
|
+ } else if (type == "ultra-dark") {
|
|
|
+ EmitWarning(env, "NSVisualEffectMaterialUltraDark" + dep_warn, "electron");
|
|
|
+ vibrancyType = NSVisualEffectMaterialUltraDark;
|
|
|
}
|
|
|
|
|
|
if (@available(macOS 10.14, *)) {
|