Skip to content

Commit e62eca3

Browse files
author
jfrux
committed
Fixes windows bugs with UI.
1 parent 2b513a3 commit e62eca3

File tree

7 files changed

+67
-377
lines changed

7 files changed

+67
-377
lines changed

app/keymaps/decorators.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ function decorateObject(base, key) {
99

1010
export function getDecoratedKeymaps() {
1111
const baseKeymaps = getKeymaps();
12-
// Ensure that all keys are in an array and don't use deprecated key combination`
13-
const decoratedKeymaps = mapKeys(decorateObject(baseKeymaps, 'decorateKeymaps'));
14-
console.warn("decoratedKeymaps",decoratedKeymaps);
15-
return decoratedKeymaps;
12+
console.log(baseKeymaps);
13+
if (baseKeymaps) {
14+
// Ensure that all keys are in an array and don't use deprecated key combination`
15+
const decoratedKeymaps = mapKeys(decorateObject(baseKeymaps, 'decorateKeymaps'));
16+
console.warn("decoratedKeymaps",decoratedKeymaps);
17+
return decoratedKeymaps;
18+
}
1619
};

app/main.dev.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { startScanner } from './background/network-scanner';
1717
import { startZmq } from './background/zmq';
1818
import { autoUpdater } from "electron-updater";
1919
const createRPC = require('./rpc');
20-
const contextMenuTemplate = require('./contextmenu');
20+
// const contextMenuTemplate = require('./contextmenu');
2121
const AppMenu = require('./menus/menu');
2222
// import icon from '../resources/icons/96x96.png';
2323
import * as settings from './settings';
@@ -28,7 +28,7 @@ const chalk = require('chalk');
2828
const prefix = chalk.bold.blue;
2929
const bgTaskColor = chalk.white;
3030

31-
app.appMenuTemplate = AppMenu.createMenu();
31+
// app.appMenuTemplate = AppMenu.createMenu();
3232
app.setName("Workbench");
3333

3434
function writeLog(...params) {
@@ -130,22 +130,22 @@ app.on('ready', async () => {
130130
// await installExtensions();
131131
// }
132132
const makeMenu = () => {
133-
const menu = AppMenu.createMenu(app.createWindow);
133+
// const menu = AppMenu.createMenu(app.createWindow);
134134

135-
// If we're on Mac make a Dock Menu
136-
if (process.platform === 'darwin') {
137-
const dockMenu = Menu.buildFromTemplate([
138-
{
139-
label: 'New Window',
140-
click() {
141-
app.createWindow();
142-
}
143-
}
144-
]);
145-
app.dock.setMenu(dockMenu);
146-
}
135+
// // If we're on Mac make a Dock Menu
136+
// if (process.platform === 'darwin') {
137+
// const dockMenu = Menu.buildFromTemplate([
138+
// {
139+
// label: 'New Window',
140+
// click() {
141+
// app.createWindow();
142+
// }
143+
// }
144+
// ]);
145+
// app.dock.setMenu(dockMenu);
146+
// }
147147

148-
Menu.setApplicationMenu(AppMenu.buildMenu(menu));
148+
// Menu.setApplicationMenu(AppMenu.buildMenu(menu));
149149
};
150150
// const newIcon = nativeImage.createFromDataURL(icon);
151151
mainWindow = new BrowserWindow({

app/settings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import open from './settings/open';
33

44
export function setup() {
55
let currentSettings = settings.getAll();
6+
console.log(currentSettings);
67
settings.setAll({
78
eonSshKeyPath: "",
89
config: {

app/styles/left-bar.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
width:$left-bar-width;
1717
left:0;
1818
top:0;
19-
-webkit-app-region: drag;
19+
// -webkit-app-region: drag;
2020
height: calc(100% - #{$top-bar-height});
21-
background-color: $base-color;
21+
background-color: $dark-color;
2222
z-index:1;
2323
position:relative;
2424
.nav {

app/styles/top-bar.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@
1313
text-align: center;
1414
user-select: none;
1515
-webkit-app-region: drag;
16+
17+
.title {
18+
font-size:12px;
19+
margin: 0 auto;
20+
}
1621
}

app/styles/windows-top-bar.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#electron-app-title-bar {
2-
height: 28px;
2+
height: 30px;
33
background: $base-color;
44
// border-bottom: 1px solid #000;
55
-webkit-app-region: drag;
@@ -33,9 +33,9 @@
3333

3434
/*icon*/
3535
#electron-app-title-bar img.icon {
36-
height: 16px;
37-
width: 16px;
38-
margin: 6px;
36+
height: 18px;
37+
width: 18px;
38+
margin: 6px 10px;
3939
}
4040

4141
/*toolbar button*/
@@ -137,7 +137,7 @@
137137

138138
#electron-app-title-bar .toolbar-button > button .description {
139139
color: #959da5;
140-
font-size: 11px;
140+
font-size: 12px;
141141
position: relative;
142142
}
143143

@@ -170,7 +170,7 @@
170170
padding: 0 10px;
171171
border: 1px solid #e1e4e8;
172172
height: 25px;
173-
color: $base-color;
173+
color: $light-color;
174174
background-color: #fafbfc;
175175
border-radius: 2px;
176176
}
@@ -223,7 +223,7 @@
223223
}
224224

225225
#electron-app-title-bar .toolbar-dropdown.open > .toolbar-button > button {
226-
color: rgba(#FFF,0.5);
226+
color: rgba(#FFF,0.8);
227227
background-color: lighten($base-color,3);
228228
border-color: #fff;
229229
}
@@ -237,7 +237,7 @@
237237
}
238238

239239
#electron-app-title-bar .toolbar-dropdown:not(.open) .menu-item .menu-label {
240-
opacity: 0.6;
240+
opacity: 1;
241241
}
242242

243243
/*menubar*/

0 commit comments

Comments
 (0)