8000 fix: ensure tray icon is the proper size on linux by ckerr · Pull Request #21904 · electron/electron · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@ckerr
Copy link
Member
@ckerr ckerr commented Jan 27, 2020

Fixes #21445.

This solves an issue where icons that are larger than the preferred size are not being rendered correctly. This issue surfaced as a side-effect of gfx's change from using the deprecated AppIndicator to now using KdeStatusNotifierItem over dbus.

More info: #21904 (comment)

Description of Change

If the icon is too large for the tray, tries to resize it to the correct size.

@codebytere

Checklist

Release Notes

Notes: Fixed Linux desktop tray icon size regression introduced in the 8.0 betas.

@ckerr ckerr requested a review from a team January 27, 2020 06:22
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jan 27, 2020
Copy link
Member
@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Jan 28, 2020
@jkleinsc
Copy link
Member
8000

Merging as WOA CI failures unrelated to PR changes.

@jkleinsc jkleinsc merged commit 5f30738 into master Jan 28, 2020
@release-clerk
Copy link
release-clerk bot commented Jan 28, 2020

Release Notes Persisted

Fixed Linux desktop tray icon size regression introduced in the 8.0 betas.

@trop
Copy link
Contributor
trop bot commented Jan 28, 2020

I have automatically backported this PR to "8-x-y", please check out #21936

@exander77
Copy link
exander77 commented Apr 26, 2020

@ckerr This breaks icon size on Linux, Electron icons are tiny compared to other icons, locked to 22px.
Screenshot_2020-04-27_00-02-33

It looks hideous (all my other icons are fine) and if I use numbers in corner, they are unreadable. This is not the correct fix for anything. Anything with a badge number is unusable.

Edit: Also added 48px for comparison and icon of Telegram with badge.
Screenshot_2020-04-27_00-14-48

Images are upscaled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No tray icon on Linux (electron@^8)

7 participants

0