Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tray icon blurry on HiDPI Linux desktop #22207

Closed
rocka opened this issue Feb 15, 2020 · 10 comments
Closed

Tray icon blurry on HiDPI Linux desktop #22207

rocka opened this issue Feb 15, 2020 · 10 comments

Comments

@rocka
Copy link

rocka commented Feb 15, 2020

Issue Details

  • Electron Version:
    • 8.0.0
  • Operating System:
    • KDE Plasma 5.18, Arch Linux
  • Last Known Working Electron version:
    • 7.1.10

Expected Behavior

Tray icon should be clear and sharp on HiDPI displays

Actual Behavior

Tray icon got blurry

To Reproduce

  1. create index.js
const {app, Tray} = require('electron')
let t;
app.on('ready', () => {
    t = new Tray('icon.png')
    t.setToolTip('test tray')
})

and icon.png with this image: icon (or any 44x44 png image)

  1. run with electron@7
$ npm i electron@7.1.10
$ npx electron .

tray icon is sharp and clear

image

  1. run with electron@8
$ npm i electron@8.0.0
$ npx electron .

tray icon is blurry

image

Additional Information

This may caused by #21904 , as it downscales every image to 22x22.

@vladimiry
Copy link

vladimiry commented Feb 15, 2020

I guess this change #21904 might have something to do with the issue.

PS Didn't notice the point initially:

This may caused by #21904 , as it downscales every image to 22x22.

@electron-triage
Copy link

The Electron version reported on this issue is no longer supported. See our supported versions documentation.

If you're still experiencing this issue on a supported version, please open a new issue with an updated repro - a Fiddle is very appreciated.

Electron has a large issues backlog. To help our team prioritize, we're closing older issues and asking for new issues with updated repro steps if it affects a supported version. This helps sort what issues are still relevant and helps us fix them more quickly.

Thanks for your patience and understanding!

@Nantris
Copy link
Contributor

Nantris commented Aug 17, 2021

Seeing the same issue with 11.4.x. I'm surprised no one else is reporting this. I figured it must be some mistake in our implementation at first, but by the third day of trying to resolve this, I have to conclude it's Electron.

@Nantris
Copy link
Contributor

Nantris commented Feb 17, 2022

@rocka did you ever resolve this? Things just don't look right in KDE.

@Nantris
Copy link
Contributor

Nantris commented Feb 17, 2022

Top: Our 22x22px image
Bottom: Our 22x22px image in the KDE tray

image

If anyone has any ideas, I'd be very appreciative. This is how it looks even with the latest version of KDE - 5.24.1

@Nantris
Copy link
Contributor

Nantris commented Feb 23, 2022

Looks like this isn't an issue with snap packages, so I'm guessing there's nothing that can be fixed on Electron's side.

@Nantris
Copy link
Contributor

Nantris commented Feb 23, 2022

Looks possibly fixable via installing libappindicator-gtk3, so really nothing to be done on Electron's side I guess - but it's a shame because for users not running Arch, it's pretty tedious to get up and running.

This thread also mentions libappindicator-sharp as possibly helpful.

@ArchangeGabriel
Copy link

@slapbox FWIW, Element Desktop does not have this issue on my side (also under KDE, without libappindicator-gtk3).

@Nantris
Copy link
Contributor

Nantris commented Feb 24, 2022

Hmmm that's very curious. Thanks for sharing @ArchangeGabriel!

@Nantris
Copy link
Contributor

Nantris commented Oct 28, 2022

Fixed this by accident on KDE by installing libappindicator3-1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
8.2.x
Unsorted Issues
Development

No branches or pull requests

5 participants