Sungaila.ImmersiveDarkMode
1.0.0
Prefix Reserved
dotnet add package Sungaila.ImmersiveDarkMode --version 1.0.0
NuGet\Install-Package Sungaila.ImmersiveDarkMode -Version 1.0.0
<PackageReference Include="Sungaila.ImmersiveDarkMode" Version="1.0.0" />
paket add Sungaila.ImmersiveDarkMode --version 1.0.0
#r "nuget: Sungaila.ImmersiveDarkMode, 1.0.0"
// Install Sungaila.ImmersiveDarkMode as a Cake Addin #addin nuget:?package=Sungaila.ImmersiveDarkMode&version=1.0.0 // Install Sungaila.ImmersiveDarkMode as a Cake Tool #tool nuget:?package=Sungaila.ImmersiveDarkMode&version=1.0.0
Sungaila.ImmersiveDarkMode
Applies a dark theme to the titlebar of Win32 windows. Can also be toggled automatically whenever the system-wide application theme changes.
Works on Windows 11 (Build 22000) and newer.
Windows Forms
Add the following NuGet package: Sungaila.ImmersiveDarkMode.WinForms
Call WindowExtensions.SetTitlebarTheme()
in the constructor of your System.Windows.Forms.Form
and override WndProc
like this:
public Form1()
{
InitializeComponent();
this.SetTitlebarTheme();
}
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
WindowExtensions.CheckAppsThemeChanged(m);
}
Windows UI Library 3
Add the following NuGet package: Sungaila.ImmersiveDarkMode.WinUI
Call WindowExtensions.InitTitlebarTheme()
in the constructor of your Microsoft.UI.Xaml.Window
like this:
public Window1()
{
InitializeComponent();
this.InitTitlebarTheme();
}
Windows Presentation Foundation
Add the following NuGet package: Sungaila.ImmersiveDarkMode.Wpf
Call WindowExtensions.InitTitlebarTheme()
in the constructor of your System.Windows.Window
like this:
public Window1()
{
InitializeComponent();
this.InitTitlebarTheme();
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net7.0-windows7.0 is compatible. net8.0-windows was computed. net8.0-windows7.0 is compatible. |
-
net6.0-windows7.0
- Microsoft.Win32.Registry (>= 5.0.0)
-
net7.0-windows7.0
- Microsoft.Win32.Registry (>= 5.0.0)
-
net8.0-windows7.0
- Microsoft.Win32.Registry (>= 5.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Sungaila.ImmersiveDarkMode:
Package | Downloads |
---|---|
Sungaila.ImmersiveDarkMode.WinUI
Applies a dark theme to the titlebar of Win32 windows (for WinUI 3). Can also be toggled automatically whenever the system-wide application theme changes. |
|
Sungaila.ImmersiveDarkMode.WinForms
Applies a dark theme to the titlebar of Win32 windows (for Windows Forms). Can also be toggled automatically whenever the system-wide application theme changes. |
|
Sungaila.ImmersiveDarkMode.Wpf
Applies a dark theme to the titlebar of Win32 windows (for WPF). Can also be toggled automatically whenever the system-wide application theme changes. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 288 | 3/16/2024 |
1.0.0-preview | 94 | 3/16/2024 |
- Initial release.