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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sungaila.ImmersiveDarkMode" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sungaila.ImmersiveDarkMode --version 1.0.0                
#r "nuget: Sungaila.ImmersiveDarkMode, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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                

ImmersiveDarkMode Logo Sungaila.ImmersiveDarkMode

GitHub Workflow Build Status SonarCloud Quality Gate NuGet version NuGet downloads GitHub license

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 341 3/16/2024
1.0.0-preview 98 3/16/2024

- Initial release.