refactor: icons
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 570 B After Width: | Height: | Size: 570 B |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 830 B |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 353 KiB After Width: | Height: | Size: 353 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 570 B After Width: | Height: | Size: 577 B |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 949 B |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 353 KiB After Width: | Height: | Size: 353 KiB |
|
@ -10,7 +10,8 @@
|
|||
"electron": "vue-cli-service electron:serve",
|
||||
"postinstall": "electron-builder install-app-deps",
|
||||
"postuninstall": "electron-builder install-app-deps",
|
||||
"electron:generate-icons": "electron-icon-builder --input=./public/icon.png --output=build --flatten"
|
||||
"electron:icons": "electron-icon-builder --input=./public/logo/win.png --output=build --flatten",
|
||||
"electron:icons-mac": "electron-icon-builder --input=./public/logo/mac.png --output=build --flatten"
|
||||
},
|
||||
"author": "docmirror.cn",
|
||||
"main": "background.js",
|
||||
|
|
Before Width: | Height: | Size: 71 KiB |
After Width: | Height: | Size: 192 KiB |
|
@ -23,16 +23,16 @@
|
|||
<g id="编组" mask="url(#mask-2)">
|
||||
<g>
|
||||
<rect id="矩形" stroke="#979797" fill="#1B7FCD" x="0.5" y="0.5" width="823" height="823"></rect>
|
||||
<g transform="translate(412.000000, 411.500000) scale(-1, 1) translate(-412.000000, -411.500000) translate(91.000000, 63.000000)">
|
||||
<ellipse id="椭圆形" fill="#FFFFFF" fill-rule="nonzero" cx="255" cy="345" rx="139" ry="140"></ellipse>
|
||||
<circle id="椭圆形" fill="#FFFFFF" fill-rule="nonzero" cx="76.5" cy="76.5" r="76.5"></circle>
|
||||
<circle id="椭圆形" fill="#FFFFFF" fill-rule="nonzero" cx="306.5" cy="94.5" r="55.5"></circle>
|
||||
<circle id="椭圆形" stroke="#FFFFFF" stroke-width="2.8" fill="#FFFFFF" fill-rule="nonzero" cx="147.5" cy="620.5" r="76.5"></circle>
|
||||
<circle id="椭圆形" stroke="#FFFFFF" stroke-width="14" cx="559" cy="393" r="83"></circle>
|
||||
<line x1="190" y1="262" x2="98" y2="119" id="路径" stroke="#FFFFFF" stroke-width="14"></line>
|
||||
<line x1="273" y1="260" x2="298" y2="124" id="路径" stroke="#FFFFFF" stroke-width="14"></line>
|
||||
<line x1="209" y1="442" x2="168" y2="563" id="路径" stroke="#FFFFFF" stroke-width="14"></line>
|
||||
<line x1="344" y1="346" x2="476" y2="371" id="路径" stroke="#FFFFFF" stroke-width="14"></line>
|
||||
<g transform="translate(411.500000, 411.500000) scale(-1, 1) translate(-411.500000, -411.500000) translate(92.000000, 65.000000)">
|
||||
<ellipse id="椭圆形" fill="#FFFFFF" fill-rule="nonzero" cx="253.5" cy="343" rx="138.5" ry="139"></ellipse>
|
||||
<circle id="椭圆形" fill="#FFFFFF" fill-rule="nonzero" cx="76" cy="76" r="76"></circle>
|
||||
<circle id="椭圆形" fill="#FFFFFF" fill-rule="nonzero" cx="304.5" cy="94.5" r="55.5"></circle>
|
||||
<circle id="椭圆形" stroke="#FFFFFF" stroke-width="2.8" fill="#FFFFFF" fill-rule="nonzero" cx="147" cy="617" r="76"></circle>
|
||||
<circle id="椭圆形" stroke="#FFFFFF" stroke-width="50" cx="556.5" cy="390.5" r="82.5"></circle>
|
||||
<line x1="189" y1="260" x2="97" y2="118" id="路径" stroke="#FFFFFF" stroke-width="50"></line>
|
||||
<line x1="272" y1="258" x2="297" y2="123" id="路径" stroke="#FFFFFF" stroke-width="50"></line>
|
||||
<line x1="208" y1="439" x2="167" y2="560" id="路径" stroke="#FFFFFF" stroke-width="50"></line>
|
||||
<line x1="342" y1="344" x2="474" y2="368" id="路径" stroke="#FFFFFF" stroke-width="50"></line>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 176 KiB |
|
@ -1,19 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="1024px" height="1024px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>画板</title>
|
||||
<g id="画板" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="编组-2">
|
||||
<rect id="矩形" stroke="#979797" fill="#1B7FCD" x="0.5" y="0.5" width="1023" height="1023" rx="200"></rect>
|
||||
<title>window</title>
|
||||
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="window">
|
||||
<rect id="矩形" stroke="#979797" fill="#1B7FCD" fill-rule="nonzero" x="0.5" y="0.5" width="1023" height="1023" rx="140"></rect>
|
||||
<g id="编组" transform="translate(512.000000, 511.000000) scale(-1, 1) translate(-512.000000, -511.000000) translate(113.000000, 78.000000)">
|
||||
<ellipse id="椭圆形" fill="#FFFFFF" fill-rule="nonzero" cx="316.962617" cy="428.651363" rx="172.775701" ry="173.945481"></ellipse>
|
||||
<ellipse id="椭圆形" fill="#FFFFFF" fill-rule="nonzero" cx="95.088785" cy="95.0487805" rx="95.088785" ry="95.0487805"></ellipse>
|
||||
<ellipse id="椭圆形" fill="#FFFFFF" fill-rule="nonzero" cx="380.976636" cy="117.413199" rx="68.9859813" ry="68.9569584"></ellipse>
|
||||
<ellipse id="椭圆形" stroke="#FFFFFF" stroke-width="2.8" fill="#FFFFFF" fill-rule="nonzero" cx="183.341121" cy="770.95122" rx="95.088785" ry="95.0487805"></ellipse>
|
||||
<ellipse id="椭圆形" stroke="#FFFFFF" stroke-width="14" cx="694.831776" cy="488.289813" rx="103.168224" ry="103.124821"></ellipse>
|
||||
<line x1="236.168224" y1="325.526542" x2="121.813084" y2="147.853659" id="路径" stroke="#FFFFFF" stroke-width="14"></line>
|
||||
<line x1="339.336449" y1="323.041607" x2="370.411215" y2="154.065997" id="路径" stroke="#FFFFFF" stroke-width="14"></line>
|
||||
<line x1="259.785047" y1="549.170732" x2="208.82243" y2="699.509326" id="路径" stroke="#FFFFFF" stroke-width="14"></line>
|
||||
<line x1="427.588785" y1="429.893831" x2="591.663551" y2="460.955524" id="路径" stroke="#FFFFFF" stroke-width="14"></line>
|
||||
<ellipse id="椭圆形" stroke="#FFFFFF" stroke-width="50" cx="694.831776" cy="488.289813" rx="103.168224" ry="103.124821"></ellipse>
|
||||
<line x1="236.168224" y1="325.526542" x2="121.813084" y2="147.853659" id="路径" stroke="#FFFFFF" stroke-width="50"></line>
|
||||
<line x1="339.336449" y1="323.041607" x2="370.411215" y2="154.065997" id="路径" stroke="#FFFFFF" stroke-width="50"></line>
|
||||
<line x1="259.785047" y1="549.170732" x2="208.82243" y2="699.509326" id="路径" stroke="#FFFFFF" stroke-width="50"></line>
|
||||
<line x1="427.588785" y1="429.893831" x2="591.663551" y2="460.955524" id="路径" stroke="#FFFFFF" stroke-width="50"></line>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.0 KiB |
|
@ -40,7 +40,11 @@ function setTray (app) {
|
|||
}
|
||||
]
|
||||
// 设置系统托盘图标
|
||||
const iconPath = path.join(__dirname, '../extra/icons/16x16.png')
|
||||
let icon = '32x32.png'
|
||||
if (isMac) {
|
||||
icon = '16x16.png'
|
||||
}
|
||||
const iconPath = path.join(__dirname, '../extra/icons/', icon)
|
||||
const appTray = new Tray(iconPath)
|
||||
|
||||
// 图标的上下文菜单
|
||||
|
@ -128,7 +132,7 @@ function setDock () {
|
|||
const { app } = require('electron')
|
||||
if (process.platform === 'darwin') {
|
||||
app.whenReady().then(() => {
|
||||
app.dock.setIcon(path.join(__dirname, '../build/icons/512x512.png'))
|
||||
app.dock.setIcon(path.join(__dirname, '../build/mac/512x512.png'))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|