אליהו הדס
03/09/2026, 9:33 AMAlexander Maryanovsky
03/09/2026, 2:08 PMColton Idle
03/09/2026, 5:52 PMאליהו הדס
03/09/2026, 8:49 PMDWMWA_CAPTION_COLOR, DWMWA_BORDER_COLOR, DWMWA_USE_IMMERSIVE_DARK_MODE) with the title bar color for consistent Windows 11 window chrome styling.Alexander Maryanovsky
03/09/2026, 8:51 PMאליהו הדס
03/09/2026, 8:52 PMAlexander Maryanovsky
03/09/2026, 8:53 PMAlexander Maryanovsky
03/09/2026, 8:54 PMAlexander Maryanovsky
03/09/2026, 8:54 PMSkiaLayer.awt ’s background colorאליהו הדס
03/09/2026, 8:55 PMAlexander Maryanovsky
03/09/2026, 8:55 PMאליהו הדס
03/09/2026, 8:55 PMAlexander Maryanovsky
03/09/2026, 8:56 PMאליהו הדס
03/09/2026, 8:57 PMAlexander Maryanovsky
03/09/2026, 8:57 PMאליהו הדס
03/09/2026, 9:00 PMAlexander Maryanovsky
03/09/2026, 9:03 PMContextHandler.draw fills with?Alexander Maryanovsky
03/09/2026, 9:04 PMContextHandler.draw, but then we moved that to the Canvas in SkiaLayer.update, and the one in ContextHandler.draw is always filled with TRANSPARENT (0x0)Alexander Maryanovsky
03/09/2026, 9:05 PMאליהו הדס
03/09/2026, 9:08 PMSo you’re changing the colorYes, exactly. I togglefills with?ContextHandler.draw
SkiaLayer.setTransparency(true) for dark themes, which makes ContextHandler.draw() clear to TRANSPARENT instead of WHITE.
Note there are 2 PRs. Both use the AWT background. The first one uses it to fill the canvas in ContextHandler.draw, but then we moved that to the Canvas in SkiaLayer.update, and the one in
ContextHandler.draw is always filled with TRANSPARENT (0x0)so with the latest Skiko, my setTransparency(true) hack is redundant now.
Alexander Maryanovsky
03/09/2026, 9:09 PMAlexander Maryanovsky
03/09/2026, 9:09 PMאליהו הדס
03/09/2026, 9:11 PMאליהו הדס
03/09/2026, 9:15 PMsetTransparency once the new Skiko hits stable. Thanks!Alexander Maryanovsky
03/09/2026, 9:16 PMAlexander Maryanovsky
03/09/2026, 9:38 PMAlexander Maryanovsky
03/09/2026, 9:39 PMAlexander Maryanovsky
03/09/2026, 9:41 PM@Composable
fun FrameWindowScope.windowBackgroundFlashingWorkaround(themeBackgroundColor: Color) {
LaunchedEffect(window, themeBackgroundColor) {
val awtColor = java.awt.Color(themeBackgroundColor.toArgb())
window.background = awtColor // for macOS
window.contentPane.background = awtColor // for Windows
}
}אליהו הדס
03/09/2026, 9:41 PMAlexander Maryanovsky
03/09/2026, 9:42 PMcontentPane.background I’m seeing almost no white bars on resizeAlexander Maryanovsky
03/09/2026, 9:42 PMאליהו הדס
03/09/2026, 9:44 PMAlexander Maryanovsky
03/09/2026, 9:45 PMAlexander Maryanovsky
03/09/2026, 9:45 PMContextHandler.drawאליהו הדס
03/09/2026, 9:49 PMAlexander Maryanovsky
03/09/2026, 10:13 PMAlexander Maryanovsky
03/09/2026, 10:14 PM