@@ -3,9 +3,17 @@ import { ipcRenderer, remote, WebviewTag, NativeImage } from 'electron';
|
||||
|
||||
import path = require('path');
|
||||
import ConfigUtil = require('./utils/config-util.js');
|
||||
const { Tray, Menu, nativeImage, BrowserWindow } = remote;
|
||||
|
||||
const APP_ICON = path.join(__dirname, '../../resources/tray', 'tray');
|
||||
const { Tray, Menu, nativeImage, BrowserWindow, systemPreferences } = remote;
|
||||
|
||||
// get the theme on macOS
|
||||
const theme = systemPreferences.isDarkMode() ? 'dark' : 'light';
|
||||
|
||||
const ICON_DIR = process.platform === 'darwin' ? `../../resources/tray/${theme}` : '../../resources/tray';
|
||||
|
||||
const TRAY_SUFFIX = 'tray';
|
||||
|
||||
const APP_ICON = path.join(__dirname, ICON_DIR, TRAY_SUFFIX);
|
||||
|
||||
declare let window: ZulipWebWindow;
|
||||
|
||||
|
BIN
app/resources/tray/dark/trayosx.png
Normal file
After Width: | Height: | Size: 436 B |
BIN
app/resources/tray/dark/trayosx@2x.png
Normal file
After Width: | Height: | Size: 900 B |
BIN
app/resources/tray/dark/trayosx@3x.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
app/resources/tray/dark/trayosx@4x.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 737 B After Width: | Height: | Size: 737 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |