From 915238ed1ae486e695b5fa8da813227f3c99e4ff Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Fri, 4 Aug 2023 09:52:08 +0300 Subject: [PATCH] #9886 - Set initial screen color on Desktop so it's not black-to-blue --- desktop/src/com/unciv/app/desktop/DesktopLauncher.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop/src/com/unciv/app/desktop/DesktopLauncher.kt b/desktop/src/com/unciv/app/desktop/DesktopLauncher.kt index 253e197650..bc361b10b3 100644 --- a/desktop/src/com/unciv/app/desktop/DesktopLauncher.kt +++ b/desktop/src/com/unciv/app/desktop/DesktopLauncher.kt @@ -10,6 +10,7 @@ import com.unciv.logic.files.UncivFiles import com.unciv.models.metadata.ScreenSize import com.unciv.models.metadata.WindowState import com.unciv.ui.components.Fonts +import com.unciv.ui.screens.basescreen.BaseScreen import com.unciv.utils.Display import com.unciv.utils.Log import java.awt.GraphicsEnvironment @@ -70,6 +71,7 @@ internal object DesktopLauncher { // the window might revert to the "config" values when the user moves the window - worse if they // minimize/restore. And the config default is 640x480 unless we set something here. config.setWindowedMode(max(settings.windowState.width, 100), max(settings.windowState.height, 100)) + config.setInitialBackgroundColor(BaseScreen.clearColor) if (!isRunFromJAR) { UniqueDocsWriter().write()