diff --git a/Changelog.md b/Changelog.md index 35ebb6e..2062e42 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,8 @@ - Fixed potential race conditions (#908) @softworkz - Added option to use `ElectronSplashScreen` with an HTML file (#799) - Added option to provide floating point value as aspect ratios with `SetAspectRatio` (#793) +- Added `TitleBarOverlay` property to `BrowserWindowOptions` (#909) +- Added `RoundedCorners` property to `BrowserWindowOptions` # 0.0.18 diff --git a/src/ElectronNET.API/API/Entities/BrowserWindowOptions.cs b/src/ElectronNET.API/API/Entities/BrowserWindowOptions.cs index ba920e1..8822ea1 100644 --- a/src/ElectronNET.API/API/Entities/BrowserWindowOptions.cs +++ b/src/ElectronNET.API/API/Entities/BrowserWindowOptions.cs @@ -199,7 +199,7 @@ namespace ElectronNET.API.Entities public bool DarkTheme { get; set; } /// - /// Makes the window . Default is false. + /// Makes the window transparent. Default is false. /// public bool Transparent { get; set; } @@ -215,6 +215,12 @@ namespace ElectronNET.API.Entities [JsonConverter(typeof(StringEnumConverter))] public TitleBarStyle TitleBarStyle { get; set; } + /// + /// When using a frameless window this can be used to indicate if the + /// standard control buttons should be shown. Default is false. + /// + public bool TitleBarOverlay { get; set; } + /// /// Shows the title in the tile bar in full screen mode on macOS for all /// titleBarStyle options.Default is false. @@ -229,6 +235,15 @@ namespace ElectronNET.API.Entities [DefaultValue(true)] public bool ThickFrame { get; set; } = true; + /// + /// Whether frameless window should have rounded corners. Default is true. Setting this + /// property to false will prevent the window from being fullscreenable on macOS. On + /// Windows versions older than Windows 11 Build 22000 this property has no effect, and + /// frameless windows will not have rounded corners. + /// + [DefaultValue(true)] + public bool RoundedCorners { get; set; } = true; + /// /// Add a type of vibrancy effect to the window, only on macOS. Can be /// appearance-based, light, dark, titlebar, selection, menu, popover, sidebar,