mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-28 18:02:21 +00:00
feat: enhance titleBarOverlay to accept both a boolean and an object
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using ElectronNET.Converter;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System.ComponentModel;
|
||||
|
||||
@@ -219,7 +220,8 @@ namespace ElectronNET.API.Entities
|
||||
/// When using a frameless window this can be used to indicate if the
|
||||
/// standard control buttons should be shown. Default is false.
|
||||
/// </summary>
|
||||
public bool TitleBarOverlay { get; set; }
|
||||
[JsonConverter(typeof(TitleBarOverlayConverter))]
|
||||
public TitleBarOverlay TitleBarOverlay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Shows the title in the tile bar in full screen mode on macOS for all
|
||||
|
||||
Reference in New Issue
Block a user