Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f50ca4fd
authored
Oct 02, 2025
by
bubblepipe42
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows tray icon
parent
e66eff66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
electron/main.js
+7
-1
electron/package.json
+2
-1
electron/tray-icon-windows.png
+0
-0
No files found.
electron/main.js
View file @
f50ca4fd
...
...
@@ -146,7 +146,13 @@ function createWindow() {
}
function
createTray
()
{
tray
=
new
Tray
(
path
.
join
(
__dirname
,
'tray-iconTemplate.png'
));
// Use template icon for macOS (black with transparency, auto-adapts to theme)
// Use colored icon for Windows
const
trayIconPath
=
process
.
platform
===
'darwin'
?
path
.
join
(
__dirname
,
'tray-iconTemplate.png'
)
:
path
.
join
(
__dirname
,
'tray-icon-windows.png'
);
tray
=
new
Tray
(
trayIconPath
);
const
contextMenu
=
Menu
.
buildFromTemplate
([
{
...
...
electron/package.json
View file @
f50ca4fd
...
...
@@ -39,7 +39,8 @@
"preload.js"
,
"icon.png"
,
"tray-iconTemplate.png"
,
"tray-iconTemplate@2x.png"
"tray-iconTemplate@2x.png"
,
"tray-icon-windows.png"
],
"mac"
:
{
"category"
:
"public.app-category.developer-tools"
,
...
...
electron/tray-icon-windows.png
0 → 100644
View file @
f50ca4fd
1.17 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment