Skip to content

Commit 758e6a4

Browse files
committed
Added properties
1 parent 61421dd commit 758e6a4

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
- Fixed potential race conditions (#908) @softworkz
1111
- Added option to use `ElectronSplashScreen` with an HTML file (#799)
1212
- Added option to provide floating point value as aspect ratios with `SetAspectRatio` (#793)
13+
- Added `TitleBarOverlay` property to `BrowserWindowOptions` (#909)
14+
- Added `RoundedCorners` property to `BrowserWindowOptions`
1315

1416
# 0.0.18
1517

src/ElectronNET.API/API/Entities/BrowserWindowOptions.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public class BrowserWindowOptions
199199
public bool DarkTheme { get; set; }
200200

201201
/// <summary>
202-
/// Makes the window . Default is false.
202+
/// Makes the window transparent. Default is false.
203203
/// </summary>
204204
public bool Transparent { get; set; }
205205

@@ -215,6 +215,12 @@ public class BrowserWindowOptions
215215
[JsonConverter(typeof(StringEnumConverter))]
216216
public TitleBarStyle TitleBarStyle { get; set; }
217217

218+
/// <summary>
219+
/// When using a frameless window this can be used to indicate if the
220+
/// standard control buttons should be shown. Default is false.
221+
/// </summary>
222+
public bool TitleBarOverlay { get; set; }
223+
218224
/// <summary>
219225
/// Shows the title in the tile bar in full screen mode on macOS for all
220226
/// titleBarStyle options.Default is false.
@@ -229,6 +235,15 @@ public class BrowserWindowOptions
229235
[DefaultValue(true)]
230236
public bool ThickFrame { get; set; } = true;
231237

238+
/// <summary>
239+
/// Whether frameless window should have rounded corners. Default is true. Setting this
240+
/// property to false will prevent the window from being fullscreenable on macOS. On
241+
/// Windows versions older than Windows 11 Build 22000 this property has no effect, and
242+
/// frameless windows will not have rounded corners.
243+
/// </summary>
244+
[DefaultValue(true)]
245+
public bool RoundedCorners { get; set; } = true;
246+
232247
/// <summary>
233248
/// Add a type of vibrancy effect to the window, only on macOS. Can be
234249
/// appearance-based, light, dark, titlebar, selection, menu, popover, sidebar,

0 commit comments

Comments
 (0)