Skip to content
Snippets Groups Projects
Commit a0bbae7d authored by Camille Villa's avatar Camille Villa
Browse files

Connect window top bar style to theme

parent a2627135
Branches
Tags
No related merge requests found
...@@ -27,7 +27,7 @@ export class WindowTopBar extends Component { ...@@ -27,7 +27,7 @@ export class WindowTopBar extends Component {
} = this.props; } = this.props;
return ( return (
<AppBar position="relative"> <AppBar position="relative">
<Toolbar disableGutters className={classNames(classes.reallyDense, ns('window-top-bar'))} variant="dense"> <Toolbar disableGutters className={classNames(classes.windowTopBarStyle, ns('window-top-bar'))} variant="dense">
<IconButton <IconButton
aria-label={t('toggleWindowSideBar')} aria-label={t('toggleWindowSideBar')}
color="inherit" color="inherit"
......
...@@ -22,17 +22,22 @@ const mapDispatchToProps = (dispatch, { windowId }) => ({ ...@@ -22,17 +22,22 @@ const mapDispatchToProps = (dispatch, { windowId }) => ({
toggleWindowSideBar: () => dispatch(actions.toggleWindowSideBar(windowId)), toggleWindowSideBar: () => dispatch(actions.toggleWindowSideBar(windowId)),
}); });
/**
const styles = { * @param theme
* @returns {{typographyBody: {flexGrow: number, fontSize: number|string},
* windowTopBarStyle: {minHeight: number, paddingLeft: number, backgroundColor: string}}}
*/
const styles = theme => ({
typographyBody: { typographyBody: {
flexGrow: 1, flexGrow: 1,
fontSize: '1em', fontSize: '1em',
}, },
reallyDense: { windowTopBarStyle: {
minHeight: 32, minHeight: 32,
paddingLeft: 4, paddingLeft: 4,
backgroundColor: theme.palette.primary.light,
}, },
}; });
const enhance = compose( const enhance = compose(
withNamespaces(), withNamespaces(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment