Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

Splashscreen image is blurry because it's resized

Open domialex opened this issue 4 years ago • 0 comments

By default chromium adds a margin of 8px around img tags, causing the image in the splashscreen to shrink to fit in its parent browserwindow that is set with the image's dimensions, making it blurry.

A fix would be to add margin: 0 in the style of the img here: https://github.com/ElectronNET/Electron.NET/blob/master/ElectronNET.Host/splashscreen/index.html

  • Version: 13.5.1
  • Target: net5.0

Steps to Reproduce:

  1. Put image in electron.manifest.json:
"splashscreen": {
    "imageFile": "my-image.png"
  },
  1. Build and run app

domialex avatar Nov 07 '21 02:11 domialex