mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 23:39:40 +07:00
#9886 - Set initial screen color on Desktop so it's not black-to-blue
This commit is contained in:
@ -10,6 +10,7 @@ import com.unciv.logic.files.UncivFiles
|
|||||||
import com.unciv.models.metadata.ScreenSize
|
import com.unciv.models.metadata.ScreenSize
|
||||||
import com.unciv.models.metadata.WindowState
|
import com.unciv.models.metadata.WindowState
|
||||||
import com.unciv.ui.components.Fonts
|
import com.unciv.ui.components.Fonts
|
||||||
|
import com.unciv.ui.screens.basescreen.BaseScreen
|
||||||
import com.unciv.utils.Display
|
import com.unciv.utils.Display
|
||||||
import com.unciv.utils.Log
|
import com.unciv.utils.Log
|
||||||
import java.awt.GraphicsEnvironment
|
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
|
// 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.
|
// 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.setWindowedMode(max(settings.windowState.width, 100), max(settings.windowState.height, 100))
|
||||||
|
config.setInitialBackgroundColor(BaseScreen.clearColor)
|
||||||
|
|
||||||
if (!isRunFromJAR) {
|
if (!isRunFromJAR) {
|
||||||
UniqueDocsWriter().write()
|
UniqueDocsWriter().write()
|
||||||
|
Reference in New Issue
Block a user