mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #911] [MERGED] feat: updated 'TitleBarOverlay' property to be passed as object #1347
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ElectronNET/Electron.NET/pull/911
Author: @Denny09310
Created: 11/8/2025
Status: ✅ Merged
Merged: 11/8/2025
Merged by: @FlorianRappl
Base:
develop← Head:develop📝 Commits (6)
7927a95feat: enhance titleBarOverlay to accept both a boolean and an object21ae89bfix: missing public constructord79b73efix: using newtonsoft.json instead of system.text.json for the converter14962e1chore: updated documentationc0e7119fix: don't write anything if value is null9bb7dcffix: added WriteUndefined as there is Newtonsoft.Json📊 Changes
8 files changed (+80 additions, -8 deletions)
View changed files
📝
src/ElectronNET.API/API/Entities/BrowserWindowOptions.cs(+11 -4)➕
src/ElectronNET.API/API/Entities/TitleBarOverlay.cs(+22 -0)➕
src/ElectronNET.API/Converter/TitleBarOverlayConverter.cs(+43 -0)📝
src/ElectronNET.Host/api/app.js.map(+1 -1)📝
src/ElectronNET.Host/api/autoUpdater.js.map(+1 -1)📝
src/ElectronNET.Host/api/nativeTheme.js.map(+1 -1)📝
src/ElectronNET.Host/api/process.js.map(+1 -1)📝
src/ElectronNET/build/ElectronNET.Build.dll(+0 -0)📄 Description
I’ve updated the configuration to allow titleBarOptions to be passed either as an object or a boolean, in line with the Electron documentation. I did some quick testing and it appears to be working correctly.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.