From 26ba39842834e508571bc41d8cfa200b9bcdd528 Mon Sep 17 00:00:00 2001 From: rafael-aero Date: Thu, 10 Feb 2022 23:00:33 +0100 Subject: [PATCH] Add new WCO height option --- ElectronNET.API/App.cs | 4 +--- ElectronNET.API/Entities/BrowserWindowOptions.cs | 1 + ElectronNET.API/Entities/TitleBarStyle.cs | 5 +++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ElectronNET.API/App.cs b/ElectronNET.API/App.cs index a612af6..4aa0568 100644 --- a/ElectronNET.API/App.cs +++ b/ElectronNET.API/App.cs @@ -531,10 +531,8 @@ namespace ElectronNET.API /// - /// Emitted when a MacOS user wants to open a URL with the application. Your application's Info.plist file must - /// define the URL scheme within the CFBundleURLTypes key, and set NSPrincipalClass to AtomApplication. + /// Emitted when a user wants to open a URL with the application. See https://www.electronjs.org/docs/latest/tutorial/launch-app-from-url-in-another-app for more information. /// - [SupportedOSPlatform("macos")] public event Action OpenUrl { add diff --git a/ElectronNET.API/Entities/BrowserWindowOptions.cs b/ElectronNET.API/Entities/BrowserWindowOptions.cs index 0042772..30ca010 100644 --- a/ElectronNET.API/Entities/BrowserWindowOptions.cs +++ b/ElectronNET.API/Entities/BrowserWindowOptions.cs @@ -226,6 +226,7 @@ namespace ElectronNET.API.Entities /// Activate the Window Controls Overlay on Windows, when combined with = /// [SupportedOSPlatform("win")] + [SupportedOSPlatform("macos")] [DefaultValue(null)] public TitleBarOverlayConfig TitleBarOverlay { get; set; } diff --git a/ElectronNET.API/Entities/TitleBarStyle.cs b/ElectronNET.API/Entities/TitleBarStyle.cs index 5ee48bc..a166b99 100644 --- a/ElectronNET.API/Entities/TitleBarStyle.cs +++ b/ElectronNET.API/Entities/TitleBarStyle.cs @@ -31,7 +31,8 @@ namespace ElectronNET.API.Entities public class TitleBarOverlayConfig { - public string Color { get; set; } - public string SymbolColor { get; set; } + public string color { get; set; } + public string symbolColor { get; set; } + public int height { get; set; } } } \ No newline at end of file