Browse Source

fix(title-bar): new title bar

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
179cec24c8
  1. 2
      app/main.dev.js
  2. 1
      app/routes/app/components/App.js
  3. 9
      app/routes/app/components/App.scss
  4. 1
      app/variables.scss

2
app/main.dev.js

@ -210,7 +210,7 @@ app.on('ready', async () => {
console.log('icon: ', icon)
mainWindow = new BrowserWindow({
show: false,
frame: true,
titleBarStyle: 'hidden',
width: 700,
height: 1100,
minHeight: 700,

1
app/routes/app/components/App.js

@ -39,6 +39,7 @@ class App extends Component {
return (
<div>
<div className={styles.titleBar} />
<GlobalError error={error} clearError={clearError} />
<ModalRoot
modalType={modalType}

9
app/routes/app/components/App.scss

@ -1,3 +1,5 @@
@import '../../../variables.scss';
.content {
position: relative;
width: 85%;
@ -5,4 +7,11 @@
display: inline-block;
vertical-align: top;
overflow-y: scroll;
}
.titleBar {
background: $spacegrey;
height: 20px;
-webkit-user-select: none;
-webkit-app-region: drag;
}

1
app/variables.scss

@ -9,6 +9,7 @@ $lightgrey: #F7F7F7;
$darkgrey: #EBEBEB;
$darkestgrey: #999999;
$bluegrey: #555459;
$spacegrey: #222E2B;
$green: #0bb634;
$terminalgreen: #00FF00;

Loading…
Cancel
Save