Skip to content

Commit

Permalink
change tray icon size "16x16 => 22x22" on macOS, closes #199
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimiry committed Apr 13, 2022
1 parent d9f462d commit eebea94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/electron-main/api/endpoints-builders/tray-icon/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ type bitmapToNativeImageType = (source: Bitmap) => Promise<NativeImage>;

const bitmapToNativeImage: bitmapToNativeImageType = (
(): bitmapToNativeImageType => {
const darwinSize = Object.freeze({width: 16, height: 16}); // macOS uses 16x16 tray icon
// https://github.com/vladimiry/ElectronMail/issues/199#issuecomment-1072651640
const darwinSize = {width: 22, height: 22} as const;
const platformSpecificScale: (source: Bitmap) => Promise<Bitmap> = PLATFORM === "darwin"
? async (source): ReturnType<typeof platformSpecificScale> => {
const sourceBits = source.data.byteLength / (source.width * source.height);
Expand Down

0 comments on commit eebea94

Please sign in to comment.