Skip to content
Snippets Groups Projects
Unverified Commit 8c75f878 authored by Jessie Keck's avatar Jessie Keck Committed by GitHub
Browse files

Merge pull request #2340 from ProjectMirador/theme-top-bar

Updates theme approach
parents afdea27c 661c7555
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,6 @@ export class WindowTopBar extends Component { ...@@ -32,7 +32,6 @@ export class WindowTopBar extends Component {
<Toolbar disableGutters className={classNames(classes.windowTopBarStyle, focused ? classes.focused : null, ns('window-top-bar'))} variant="dense"> <Toolbar disableGutters className={classNames(classes.windowTopBarStyle, focused ? classes.focused : null, ns('window-top-bar'))} variant="dense">
<MiradorMenuButton <MiradorMenuButton
aria-label={t('toggleWindowSideBar')} aria-label={t('toggleWindowSideBar')}
color="inherit"
onClick={toggleWindowSideBar} onClick={toggleWindowSideBar}
> >
<MenuIcon /> <MenuIcon />
...@@ -46,7 +45,6 @@ export class WindowTopBar extends Component { ...@@ -46,7 +45,6 @@ export class WindowTopBar extends Component {
<MiradorMenuButton <MiradorMenuButton
aria-label={(maximized ? t('minimizeWindow') : t('maximizeWindow'))} aria-label={(maximized ? t('minimizeWindow') : t('maximizeWindow'))}
className={ns('window-maximize')} className={ns('window-maximize')}
color="inherit"
onClick={(maximized ? minimizeWindow : maximizeWindow)} onClick={(maximized ? minimizeWindow : maximizeWindow)}
> >
{(maximized ? <WindowMinIcon /> : <WindowMaxIcon />)} {(maximized ? <WindowMinIcon /> : <WindowMaxIcon />)}
...@@ -56,7 +54,6 @@ export class WindowTopBar extends Component { ...@@ -56,7 +54,6 @@ export class WindowTopBar extends Component {
<MiradorMenuButton <MiradorMenuButton
aria-label={t('closeWindow')} aria-label={t('closeWindow')}
className={ns('window-close')} className={ns('window-close')}
color="inherit"
onClick={removeWindow} onClick={removeWindow}
> >
<CloseIcon /> <CloseIcon />
......
...@@ -52,7 +52,6 @@ export class WindowTopMenuButton extends Component { ...@@ -52,7 +52,6 @@ export class WindowTopMenuButton extends Component {
aria-label={t('windowMenu')} aria-label={t('windowMenu')}
aria-owns={anchorEl ? `window-menu_${windowId}` : undefined} aria-owns={anchorEl ? `window-menu_${windowId}` : undefined}
className={anchorEl ? classes.ctrlBtnSelected : null} className={anchorEl ? classes.ctrlBtnSelected : null}
color="inherit"
onClick={this.handleMenuClick} onClick={this.handleMenuClick}
> >
<MoreVertIcon /> <MoreVertIcon />
......
...@@ -96,7 +96,6 @@ export class WorkspaceAdd extends React.Component { ...@@ -96,7 +96,6 @@ export class WorkspaceAdd extends React.Component {
<MiradorMenuButton <MiradorMenuButton
aria-label={t('closeAddResourceMenu')} aria-label={t('closeAddResourceMenu')}
className={classes.menuButton} className={classes.menuButton}
color="inherit"
> >
<ExpandMoreIcon /> <ExpandMoreIcon />
</MiradorMenuButton> </MiradorMenuButton>
......
...@@ -8,13 +8,17 @@ export default { ...@@ -8,13 +8,17 @@ export default {
type: 'light', // dark also available type: 'light', // dark also available
primary: { primary: {
main: '#f5f5f5', main: '#f5f5f5',
light: '#ffffff',
dark: '#eeeeee',
}, },
secondary: { secondary: {
main: '#1967d2', main: '#1967d2',
light: '#64b5f6', },
dark: '#0d47a1', darkened: { // custom colors used for a specific offset in some places
dark: '#000000',
light: '#eeeeee'
},
lightened: { // custom colors used for a specific offset in some places
dark: '#424242',
light: '#ffffff',
}, },
error: { error: {
main: '#b00020', main: '#b00020',
......
...@@ -35,7 +35,7 @@ const styles = theme => ({ ...@@ -35,7 +35,7 @@ const styles = theme => ({
backgroundColor: theme.palette.background.paper, backgroundColor: theme.palette.background.paper,
}, },
backgroundColor: theme.palette.background.paper, backgroundColor: theme.palette.background.paper,
border: `1px solid ${theme.palette.primary.dark}`, border: `1px solid ${theme.palette.darkened[theme.palette.type]}`,
borderRadius: 0, borderRadius: 0,
height: '48px', height: '48px',
left: '100%', left: '100%',
......
...@@ -68,7 +68,7 @@ const styles = theme => ({ ...@@ -68,7 +68,7 @@ const styles = theme => ({
position: 'relative', position: 'relative',
}, },
thumbnailArea: { thumbnailArea: {
backgroundColor: theme.palette.primary.dark, backgroundColor: theme.palette.darkened[theme.palette.type],
}, },
thumbnailAreaBottom: { thumbnailAreaBottom: {
}, },
...@@ -76,7 +76,7 @@ const styles = theme => ({ ...@@ -76,7 +76,7 @@ const styles = theme => ({
minWidth: 100, minWidth: 100,
}, },
window: { window: {
backgroundColor: theme.palette.primary.dark, backgroundColor: theme.palette.darkened[theme.palette.type],
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
height: '100%', height: '100%',
......
...@@ -44,7 +44,7 @@ const styles = theme => ({ ...@@ -44,7 +44,7 @@ const styles = theme => ({
'&$focused': { '&$focused': {
borderTop: `2px solid ${theme.palette.secondary.main}`, borderTop: `2px solid ${theme.palette.secondary.main}`,
}, },
backgroundColor: theme.palette.primary.light, backgroundColor: theme.palette.lightened[theme.palette.type],
borderTop: '2px solid transparent', borderTop: '2px solid transparent',
minHeight: 32, minHeight: 32,
paddingLeft: theme.spacing.unit / 2, paddingLeft: theme.spacing.unit / 2,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment