#9886 - Set initial screen color on Desktop so it's not black-to-blue

This commit is contained in:
Yair Morgenstern
2023-08-04 09:52:08 +03:00
parent af49e8297f
commit 915238ed1a

View File

@ -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()