Skip to content

Commit 1c17bb4

Browse files
feat: white transparent tray icon for Linux Mint (#63)
1 parent 99ac083 commit 1c17bb4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

electron/main.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ let pluginManifests = [] // [{ manifest, pluginDir }]
9494
function createTrayIconPng() {
9595
const { deflateSync } = require('zlib')
9696
const W = 22, H = 22
97-
const BG = [30, 30, 30] // #1e1e1e
98-
const FG = [90, 156, 245] // #5a9cf5
97+
const BG = [0, 0, 0, 0] // transparent
98+
const FG = [255, 255, 255, 255] // white, fully opaque
9999
const colStarts = [2, 6, 10, 14, 18] // 5 cols, 3 px wide, 1 px gap
100100
const rowStarts = [4, 9, 14] // 3 rows, 3 px tall, 2 px gap
101101

@@ -129,7 +129,7 @@ function createTrayIconPng() {
129129

130130
const ihdr = Buffer.alloc(13)
131131
ihdr.writeUInt32BE(W, 0); ihdr.writeUInt32BE(H, 4)
132-
ihdr[8] = 8; ihdr[9] = 2 // 8-bit, RGB
132+
ihdr[8] = 8; ihdr[9] = 6 // 8-bit, RGBA
133133

134134
return Buffer.concat([
135135
Buffer.from([0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A]),

0 commit comments

Comments
 (0)