Skip to content

Commit 3423b20

Browse files
committed
app: switch to no titlebar
1 parent cd692c7 commit 3423b20

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

client/less/layout.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ html, body {
1313
overflow: hidden;
1414
margin: 0;
1515
padding: 0;
16+
-webkit-app-region: drag;
17+
}
18+
19+
button {
20+
-webkit-app-region: no-drag;
1621
}
1722

1823
#loginForm {

client/less/sidebars.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ irc-serverbar {
99
z-index: 50000;
1010

1111
.nav {
12+
padding-top: 20px;
1213
.menu {
1314
ul {
1415
list-style: none;
@@ -71,7 +72,7 @@ irc-serverbar {
7172
cursor: pointer;
7273
width: @serverbarWidth - 20;
7374
height: @serverbarWidth - 20;
74-
line-height: @serverbarWidth - 20;
75+
line-height: @serverbarWidth - 20 - 4;
7576
border: 2px solid transparent;
7677

7778
&:active,
File renamed without changes.

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function setup() {
3232
, 'min-height': 400
3333
, 'min-width': 600
3434
, resizable: true
35+
, titleBarStyle: 'hidden'
3536
, center: true
3637
, title: name
3738
})

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@
88
"dev": "npm run build-css && npm start",
99
"lint": "lintit",
1010
"package-osx": "make package-osx",
11+
"rebuild": "electron-rebuild -l",
1112
"start": "electron .",
1213
"pretest": "npm run lint",
1314
"test": "EYEARESEE_HOME=$(pwd)/test/fixtures/HOME tap test --cov"
1415
},
16+
"build": {
17+
"appId": "com.evanlucas.eyearesee",
18+
"asar": false,
19+
"mac": {
20+
"category": "public.app-category.developer-tools"
21+
}
22+
},
1523
"dependencies": {
1624
"argsplit": "~1.0.4",
1725
"autolinker": "~0.22.0",
@@ -35,9 +43,10 @@
3543
"devDependencies": {
3644
"chalk": "~1.1.3",
3745
"electron": "^1.4.12",
46+
"electron-builder": "^10.9.3",
3847
"electron-packager": "~5.2.1",
3948
"electron-rebuild": "^1.4.0",
40-
"less": "~2.5.3",
49+
"less": "^2.7.1",
4150
"lintit": "~1.0.1",
4251
"semver": "~5.1.0",
4352
"tap": "~5.0.0"

0 commit comments

Comments
 (0)