webp vs. png for fabric background
This commit is contained in:
3
main.js
3
main.js
@@ -11,8 +11,7 @@ function createWindow() {
|
||||
height: 800,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
contextIsolation: false,
|
||||
icon: path.join(__dirname, '_', 'fabric.png')
|
||||
contextIsolation: false
|
||||
}
|
||||
});
|
||||
win.loadFile(path.join(__dirname, 'index.html'));
|
||||
|
||||
BIN
ui/_/images/fabric.webp
Normal file
BIN
ui/_/images/fabric.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 216 KiB |
@@ -9,7 +9,7 @@
|
||||
|
||||
body {
|
||||
font-size: 16px;
|
||||
background-image: url("/_/images/fabric.png");
|
||||
background-image: url("/_/images/fabric.webp");
|
||||
background-size: 33vw auto; /* width height of each tile */
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user