Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
Improve tray-icon, reograninze menu
Browse files Browse the repository at this point in the history
  • Loading branch information
matthinc committed Oct 17, 2017
1 parent 1a382b3 commit 12931e5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
Binary file removed assets/switch copy.png
Binary file not shown.
Binary file removed assets/switch.png
Binary file not shown.
Binary file modified assets/tray.png
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 assets/tray@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ productName: "Home Assistant"
files:
- "src/**/*"
- index.js
- tray.js
- config.js
- assets/icon.png
- assets/tray.png
- "node_modules/**/*"
asar: false
linux:
Expand All @@ -20,5 +22,3 @@ win:
- "github"
publish:
- provider: "github"


6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ function createMenu () {
{label: 'States', accelerator: 'Cmd+1', click: () => setPage('states')},
{label: 'History', accelerator: 'Cmd+2', click: () => setPage('history')},
{label: 'Map', accelerator: 'Cmd+3', click: () => setPage('map')},
{label: 'Services', accelerator: 'Cmd+4', click: () => setPage('dev-service')}
{label: 'Configuration', accelerator: 'Cmd+4', click: () => setPage('config')},
{label: 'Services', accelerator: 'Cmd+5', click: () => setPage('dev-service')},
{type: 'separator'},
{label: 'Preferences...', click: () => load('settings.html')}
]},{
label: 'Edit',
submenu: [{role: 'copy'},{role: 'selectall'},{role: 'paste'}]},{
Expand All @@ -117,7 +120,6 @@ function createMenu () {
label: 'Home Assistant',
submenu: [
{role: 'about'},
{label: 'Preferences...', click: () => load('settings.html')},
{role: 'quit'}]})
}
const menu = Menu.buildFromTemplate(menuTemplate)
Expand Down

0 comments on commit 12931e5

Please sign in to comment.