setWindowsAdaptiveTitleBar

fun Window.setWindowsAdaptiveTitleBar(dark: Boolean = isSystemInDarkMode())

Sets the dark mode title bar appearance for a Windows application window.

This function attempts to modify the immersive dark mode attribute for the specified window's title bar using the Windows Desktop Window Manager API (DWM).

Parameters

dark

Boolean value indicating whether the title bar should use dark mode. Defaults to the result of isWindowsInDarkMode, which determines the current system theme preference.