Make icons pretty
Before Width: | Height: | Size: 973 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 31 KiB |
367
Dashboard/assets/tray/Swatch.ai
Normal file
1879
Dashboard/assets/tray/Template.ai
Normal file
BIN
Dashboard/assets/tray/tray-default-32.png
Normal file
After Width: | Height: | Size: 451 B |
BIN
Dashboard/assets/tray/tray-green-32.png
Normal file
After Width: | Height: | Size: 612 B |
BIN
Dashboard/assets/tray/tray-red-32.png
Normal file
After Width: | Height: | Size: 614 B |
BIN
Dashboard/assets/tray/tray-yellow-32.png
Normal file
After Width: | Height: | Size: 601 B |
375
Dashboard/assets/tray/tray.ai
Normal file
|
@ -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"));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|