Make icons pretty
This commit is contained in:
parent
9fbe336536
commit
4c73524acf
15 changed files with 2626 additions and 367 deletions
Binary file not shown.
Before ![]() (image error) Size: 973 B |
Binary file not shown.
Before ![]() (image error) Size: 1.3 KiB |
Binary file not shown.
Before ![]() (image error) Size: 1.3 KiB |
Binary file not shown.
Before ![]() (image error) Size: 1.2 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
Before (image error) Size: 31 KiB |
367
Dashboard/assets/tray/Swatch.ai
Normal file
367
Dashboard/assets/tray/Swatch.ai
Normal file
File diff suppressed because one or more lines are too long
1879
Dashboard/assets/tray/Template.ai
Normal file
1879
Dashboard/assets/tray/Template.ai
Normal file
File diff suppressed because it is too large
Load diff
BIN
Dashboard/assets/tray/tray-default-32.png
Normal file
BIN
Dashboard/assets/tray/tray-default-32.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 451 B |
BIN
Dashboard/assets/tray/tray-green-32.png
Normal file
BIN
Dashboard/assets/tray/tray-green-32.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 612 B |
BIN
Dashboard/assets/tray/tray-red-32.png
Normal file
BIN
Dashboard/assets/tray/tray-red-32.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 614 B |
BIN
Dashboard/assets/tray/tray-yellow-32.png
Normal file
BIN
Dashboard/assets/tray/tray-yellow-32.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 601 B |
375
Dashboard/assets/tray/tray.ai
Normal file
375
Dashboard/assets/tray/tray.ai
Normal file
File diff suppressed because one or more lines are too long
|
@ -107,7 +107,7 @@ app.on("browser-window-blur", () => {
|
|||
// code. You can also put them in separate files and require them here.
|
||||
|
||||
function createTray() {
|
||||
const trayIcon = new Tray(getAssetPath("tray-default.png"));
|
||||
const trayIcon = new Tray(getAssetPath("tray/tray-default-32.png"));
|
||||
const contextMenu = Menu.buildFromTemplate([
|
||||
{
|
||||
label: "Show",
|
||||
|
@ -159,13 +159,13 @@ if (!gotTheLock) {
|
|||
|
||||
ipcMain.on("asynchronous-message", (event, arg) => {
|
||||
if (arg === "green") {
|
||||
tray.setImage(getAssetPath("tray-green.png"));
|
||||
tray.setImage(getAssetPath("tray/tray-green-32.png"));
|
||||
} else if (arg === "red") {
|
||||
tray.setImage(getAssetPath("tray-red.png"));
|
||||
tray.setImage(getAssetPath("tray/tray-red-32.png"));
|
||||
} else if (arg === "yellow") {
|
||||
tray.setImage(getAssetPath("tray-yellow.png"));
|
||||
tray.setImage(getAssetPath("tray/tray-yellow-32.png"));
|
||||
} else if (arg === "default") {
|
||||
tray.setImage(getAssetPath("tray-default.png"));
|
||||
tray.setImage(getAssetPath("tray/tray-default-32.png"));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Reference in a new issue