Loëck Vézien
7 years ago
No known key found for this signature in database
GPG Key ID: CBCDCE384E853AC4
3 changed files with
14 additions and
4 deletions
-
src/components/SideBar/index.js
-
src/main/app.js
-
src/styles/global.js
|
|
@ -3,6 +3,8 @@ |
|
|
|
import React, { PureComponent } from 'react' |
|
|
|
import styled from 'styled-components' |
|
|
|
|
|
|
|
import { rgba } from 'styles/helpers' |
|
|
|
|
|
|
|
import Box, { GrowScroll } from 'components/base/Box' |
|
|
|
import Item from './Item' |
|
|
|
|
|
|
@ -15,11 +17,18 @@ const CapsSubtitle = styled(Box).attrs({ |
|
|
|
font-weight: bold; |
|
|
|
` |
|
|
|
|
|
|
|
const Container = styled(GrowScroll).attrs({ |
|
|
|
flow: 4, |
|
|
|
py: 4, |
|
|
|
})` |
|
|
|
background-color: ${p => rgba(p.theme.color, 0.4)}; |
|
|
|
` |
|
|
|
|
|
|
|
class SideBar extends PureComponent<{}> { |
|
|
|
render() { |
|
|
|
return ( |
|
|
|
<Box noShrink style={{ width: 250 }}> |
|
|
|
<GrowScroll flow={4} py={4} bg="night"> |
|
|
|
<Container> |
|
|
|
<Box flow={2}> |
|
|
|
<CapsSubtitle>{'Menu'}</CapsSubtitle> |
|
|
|
<div> |
|
|
@ -46,7 +55,7 @@ class SideBar extends PureComponent<{}> { |
|
|
|
</Item> |
|
|
|
</div> |
|
|
|
</Box> |
|
|
|
</GrowScroll> |
|
|
|
</Container> |
|
|
|
</Box> |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
@ -6,7 +6,9 @@ import { app, BrowserWindow } from 'electron' // eslint-disable-line import/no-e |
|
|
|
let mainWindow |
|
|
|
|
|
|
|
function createMainWindow() { |
|
|
|
const window = new BrowserWindow() |
|
|
|
const window = new BrowserWindow({ |
|
|
|
vibrancy: 'dark', |
|
|
|
}) |
|
|
|
|
|
|
|
const url = __DEV__ |
|
|
|
? `http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT || ''}` |
|
|
|
|
|
@ -22,7 +22,6 @@ injectGlobal` |
|
|
|
line-height: 1.5; |
|
|
|
font-size: 16px; |
|
|
|
font-family: "Open Sans", Arial, Helvetica, sans-serif; |
|
|
|
background: white; |
|
|
|
} |
|
|
|
|
|
|
|
#app { |
|
|
|