Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions app/renderer/js/tray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const trayIconSize = (): number => {

// Default config for Icon we might make it OS specific if needed like the size
const config = {
pixelRatio: window.devicePixelRatio,
unreadCount: 0,
showUnreadCount: true,
unreadColor: "#000000",
Expand All @@ -67,7 +66,7 @@ const config = {
const renderCanvas = function (argument: number): HTMLCanvasElement {
config.unreadCount = argument;

const size = config.size * config.pixelRatio;
const {size} = config;
const padding = size * 0.05;
const center = size / 2;
const hasCount = config.showUnreadCount && config.unreadCount;
Expand Down Expand Up @@ -127,9 +126,7 @@ const renderNativeImage = function (argument: number): NativeImage {
const pngData = nativeImage
.createFromDataURL(canvas.toDataURL("image/png"))
.toPNG();
return nativeImage.createFromBuffer(pngData, {
scaleFactor: config.pixelRatio,
});
return nativeImage.createFromBuffer(pngData);
};

function sendAction<Channel extends keyof RendererMessage>(
Expand Down