diff --git a/app/main/electron-app.js b/app/main/electron-app.js index ea36c4f0..74f1452e 100644 --- a/app/main/electron-app.js +++ b/app/main/electron-app.js @@ -1,5 +1,7 @@ -var {app, dialog} = require('electron'), - settings = require('./settings') +var {app, dialog, Tray, Menu} = require('electron'), + settings = require('./settings'), + path = require('path'), + tray dialog.showErrorBox = function(title,err) { console.log(title + ': ' + err) @@ -19,4 +21,19 @@ app.on('window-all-closed', function() { } }) +app.on('ready', () => { + tray = new Tray(path.resolve(__dirname + '/../../resources/images/logo.png')) + const contextMenu = Menu.buildFromTemplate([ + {label: 'New client window', type: 'normal'}, + {label: 'Item2', type: 'radio'} + ]) + + // Make a change to the context menu + contextMenu.items[1].checked = false + + tray.setToolTip(settings.read('appName')) + // Call this again for Linux because we modified the context menu + tray.setContextMenu(contextMenu) +}) + module.exports = app diff --git a/src/browser/scss/widgets/_inputs.scss b/src/browser/scss/widgets/_inputs.scss index 7f4c042e..ae226291 100644 --- a/src/browser/scss/widgets/_inputs.scss +++ b/src/browser/scss/widgets/_inputs.scss @@ -57,3 +57,12 @@ } } + +.panel:not(.tab) > .input-container { + > .input { + box-shadow: 0 0 0 1rem var(--color-fg); + + outline: 1rem solid var(--color-light); + border: 1rem solid var(--color-bg); + } +}