diff --git a/src/main/index.js b/src/main/index.js index 85105affd..cb94f2007 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -1,7 +1,18 @@ 'use strict' import Uploader from './utils/uploader.js' -import { app, BrowserWindow, Tray, Menu, Notification, clipboard, ipcMain, globalShortcut, dialog } from 'electron' +import { + app, + BrowserWindow, + Tray, + Menu, + Notification, + clipboard, + ipcMain, + globalShortcut, + dialog, + systemPreferences +} from 'electron' import db from '../datastore' import beforeOpen from './utils/beforeOpen' import pasteTemplate from './utils/pasteTemplate' @@ -158,7 +169,11 @@ function createTray () { }) tray.on('drag-enter', () => { - tray.setImage(`${__static}/upload.png`) + if (systemPreferences.isDarkMode()) { + tray.setImage(`${__static}/upload-dark.png`) + } else { + tray.setImage(`${__static}/upload.png`) + } }) tray.on('drag-end', () => { diff --git a/static/upload-dark.png b/static/upload-dark.png new file mode 100644 index 000000000..1476c9706 Binary files /dev/null and b/static/upload-dark.png differ diff --git a/static/upload-dark@2x.png b/static/upload-dark@2x.png new file mode 100644 index 000000000..fbf6be5a4 Binary files /dev/null and b/static/upload-dark@2x.png differ diff --git a/static/upload-dark@3x.png b/static/upload-dark@3x.png new file mode 100644 index 000000000..9f92bf8ea Binary files /dev/null and b/static/upload-dark@3x.png differ diff --git a/static/upload.png b/static/upload.png index e966cf014..aa45305a4 100644 Binary files a/static/upload.png and b/static/upload.png differ diff --git a/static/upload@2x.png b/static/upload@2x.png new file mode 100644 index 000000000..228705d20 Binary files /dev/null and b/static/upload@2x.png differ diff --git a/static/upload@3x.png b/static/upload@3x.png new file mode 100644 index 000000000..51dfaf94d Binary files /dev/null and b/static/upload@3x.png differ