add nearest neighbor option to splash customisation

This commit is contained in:
Vendicated
2025-10-20 01:56:04 +02:00
parent 02907d3248
commit 28a13be709
4 changed files with 44 additions and 7 deletions
+5 -1
View File
@@ -24,7 +24,7 @@ export function createSplashWindow(startMinimized = false) {
loadView(splash, "splash.html");
const { splashBackground, splashColor, splashTheming } = Settings.store;
const { splashBackground, splashColor, splashTheming, splashPixelated } = Settings.store;
if (splashTheming !== false) {
if (splashColor) {
@@ -39,6 +39,10 @@ export function createSplashWindow(startMinimized = false) {
}
}
if (splashPixelated) {
splash.webContents.insertCSS(`img { image-rendering: pixelated; }`);
}
return splash;
}