From 19162801c8c515c5ce0528bab957b0e282bbb5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerd=20M=C3=BCller?= Date: Thu, 21 Sep 2023 12:24:53 +0200 Subject: [PATCH] Enable color for dark mode --- src/components/MinimalWindow.js | 2 +- src/components/MiradorMenuButton.js | 8 +++++++- src/components/WindowCanvasNavigationControls.js | 2 +- src/components/WindowSideBarButtons.js | 8 ++++---- src/components/WindowTopBar.js | 2 +- src/components/WorkspaceAdd.js | 2 +- src/components/WorkspaceControlPanel.js | 1 + 7 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/components/MinimalWindow.js b/src/components/MinimalWindow.js index 8a13804dcb..b046616924 100644 --- a/src/components/MinimalWindow.js +++ b/src/components/MinimalWindow.js @@ -49,7 +49,7 @@ export class MinimalWindow extends Component { }} aria-label={label && ariaLabel ? t('window', { label }) : null} > - + + {badge ? ( ({ + sx={(theme) => ({ backgroundColor: alpha(theme.palette.background.paper, 0.5), bottom: 0, cursor: 'default', diff --git a/src/components/WindowSideBarButtons.js b/src/components/WindowSideBarButtons.js index 78d2c469b4..2285ca95a8 100644 --- a/src/components/WindowSideBarButtons.js +++ b/src/components/WindowSideBarButtons.js @@ -21,7 +21,7 @@ function TabButton({ t, value, ...tabProps }) { sx={{ '&.Mui-selected': { borderRight: '2px solid', - borderRightColor: 'primary?.main', + borderRightColor: 'primary.main', }, '&.MuiTab-root': { '&:active': { @@ -149,7 +149,7 @@ export class WindowSideBarButtons extends Component { onKeyUp={this.handleKeyUp} t={t} icon={( - + )} @@ -161,7 +161,7 @@ export class WindowSideBarButtons extends Component { onKeyUp={this.handleKeyUp} t={t} icon={( - + )} @@ -173,7 +173,7 @@ export class WindowSideBarButtons extends Component { onKeyUp={this.handleKeyUp} t={t} icon={( - + )} diff --git a/src/components/WindowTopBar.js b/src/components/WindowTopBar.js index f6efcc9f0f..4699b6ffa1 100644 --- a/src/components/WindowTopBar.js +++ b/src/components/WindowTopBar.js @@ -31,7 +31,7 @@ export class WindowTopBar extends Component { } = this.props; return ( - +