feat(desktop): integrate native Windows titlebar

This commit is contained in:
2026-07-22 15:49:41 +02:00
parent 0e97c014a1
commit be7a61e948
4 changed files with 288 additions and 20 deletions

View File

@@ -8,10 +8,14 @@ actual fun PlatformSystemAppearance(isDarkTheme: Boolean) = Unit
object DesktopAppearanceBridge {
fun isLinux(): Boolean = isLinux(System.getProperty("os.name"))
fun isWindows(): Boolean = isWindows(System.getProperty("os.name"))
internal fun isLinux(osName: String): Boolean =
osName.startsWith("Linux", ignoreCase = true)
internal fun isWindows(osName: String): Boolean =
osName.startsWith("Windows", ignoreCase = true)
internal fun toggledWindowState(currentState: Int): Int =
if (currentState and Frame.MAXIMIZED_BOTH == Frame.MAXIMIZED_BOTH) {
Frame.NORMAL