Skip to content

Tray icon blurry on HiDPI Linux desktop #22207

Closed

Description

@rocka

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 [email protected]
$ npx electron .

tray icon is sharp and clear

image

  1. run with electron@8
$ npm i [email protected]
$ npx electron .

tray icon is blurry

image

Additional Information

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

Activity

  1. vladimiry commented on Feb 15, 2020

    @vladimiry

    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.

  2. electron-triage commented on Mar 10, 2021

    @electron-triage

    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!

  3. Nantris commented on Aug 17, 2021

    @Nantris
    Contributor

    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.

  4. Nantris commented on Feb 17, 2022

    @Nantris
    Contributor

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

  5. Nantris commented on Feb 17, 2022

    @Nantris
    Contributor

    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

  6. Nantris commented on Feb 23, 2022

    @Nantris
    Contributor

    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.

  7. Nantris commented on Feb 23, 2022

    @Nantris
    Contributor

    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.

  8. ArchangeGabriel commented on Feb 24, 2022

    @ArchangeGabriel

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

  9. Nantris commented on Feb 24, 2022

    @Nantris
    Contributor

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

  10. Nantris commented on Oct 28, 2022

    @Nantris
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions