Skip to content

Commit

Permalink
app: switch to no titlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlucas committed Dec 23, 2016
1 parent cd692c7 commit 3423b20
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions client/less/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ html, body {
overflow: hidden;
margin: 0;
padding: 0;
-webkit-app-region: drag;
}

button {
-webkit-app-region: no-drag;
}

#loginForm {
Expand Down
3 changes: 2 additions & 1 deletion client/less/sidebars.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ irc-serverbar {
z-index: 50000;

.nav {
padding-top: 20px;
.menu {
ul {
list-style: none;
Expand Down Expand Up @@ -71,7 +72,7 @@ irc-serverbar {
cursor: pointer;
width: @serverbarWidth - 20;
height: @serverbarWidth - 20;
line-height: @serverbarWidth - 20;
line-height: @serverbarWidth - 20 - 4;
border: 2px solid transparent;

&:active,
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function setup() {
, 'min-height': 400
, 'min-width': 600
, resizable: true
, titleBarStyle: 'hidden'
, center: true
, title: name
})
Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@
"dev": "npm run build-css && npm start",
"lint": "lintit",
"package-osx": "make package-osx",
"rebuild": "electron-rebuild -l",
"start": "electron .",
"pretest": "npm run lint",
"test": "EYEARESEE_HOME=$(pwd)/test/fixtures/HOME tap test --cov"
},
"build": {
"appId": "com.evanlucas.eyearesee",
"asar": false,
"mac": {
"category": "public.app-category.developer-tools"
}
},
"dependencies": {
"argsplit": "~1.0.4",
"autolinker": "~0.22.0",
Expand All @@ -35,9 +43,10 @@
"devDependencies": {
"chalk": "~1.1.3",
"electron": "^1.4.12",
"electron-builder": "^10.9.3",
"electron-packager": "~5.2.1",
"electron-rebuild": "^1.4.0",
"less": "~2.5.3",
"less": "^2.7.1",
"lintit": "~1.0.1",
"semver": "~5.1.0",
"tap": "~5.0.0"
Expand Down

0 comments on commit 3423b20

Please sign in to comment.