mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-01 19:26:09 -04:00
remove white flash on startup in dark mode
This commit is contained in:
parent
59ed4d78ac
commit
8350a17c0f
1 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,7 @@ import javafx.scene.Scene;
|
||||||
import javafx.scene.input.KeyCode;
|
import javafx.scene.input.KeyCode;
|
||||||
import javafx.scene.input.KeyEvent;
|
import javafx.scene.input.KeyEvent;
|
||||||
import javafx.scene.layout.StackPane;
|
import javafx.scene.layout.StackPane;
|
||||||
|
import javafx.scene.paint.Color;
|
||||||
import javafx.stage.Modality;
|
import javafx.stage.Modality;
|
||||||
import javafx.stage.Screen;
|
import javafx.stage.Screen;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
@ -224,6 +225,9 @@ public class HavenoApp extends Application implements UncaughtExceptionHandler {
|
||||||
});
|
});
|
||||||
CssTheme.loadSceneStyles(scene, preferences.getCssTheme(), config.useDevModeHeader);
|
CssTheme.loadSceneStyles(scene, preferences.getCssTheme(), config.useDevModeHeader);
|
||||||
|
|
||||||
|
// set initial background color
|
||||||
|
scene.setFill(CssTheme.isDarkTheme() ? Color.BLACK : Color.WHITE);
|
||||||
|
|
||||||
return scene;
|
return scene;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue