Skip to content

Commit

Permalink
recorrect tray icon size on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
maskerliu committed Dec 23, 2024
1 parent 82516ee commit e0e9272
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Binary file added icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/main/MainApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export default class MainApp {
this.mainWindow.setVibrancy('window')

this.mainWindow.on('resize', () => {

if (os.platform() == 'darwin')
this.mainWindow.setWindowButtonPosition({ x: this.mainWindow.getBounds().width - 70, y: 10 })
})
Expand All @@ -163,7 +164,7 @@ export default class MainApp {
}

private createTrayMenu() {
let tray = new Tray(this.trayIconFile)
let tray = new Tray(path.join(this.iconDir, 'icon-tray.png'))
const contextMenu = Menu.buildFromTemplate([
{
icon: path.join(this.iconDir, 'ic-rule.png'),
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ onMounted(() => {
}
#app {
/* font-family: "Consolas,Monaco,Menlo,Bitstream Vera Sans Mono,monospace"; */
/* font-family: "Consolas"; */
background: var(--van-gray-1);
letter-spacing: 1.3px;
letter-spacing: 1px;
/* -moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
Expand Down

0 comments on commit e0e9272

Please sign in to comment.