@ -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', () => {
|
||||
|
BIN
static/upload-dark.png
Normal file
After Width: | Height: | Size: 823 B |
BIN
static/upload-dark@2x.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
static/upload-dark@3x.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 777 B |
BIN
static/upload@2x.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
static/upload@3x.png
Normal file
After Width: | Height: | Size: 2.6 KiB |