Change pure black mode paper background color to true black
This commit is contained in:
@@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|||||||
### Added
|
### Added
|
||||||
- (**Theme**) Add an option to save the dynamic color theme on the manga page as a custom theme
|
- (**Theme**) Add an option to save the dynamic color theme on the manga page as a custom theme
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- (**Theme**) Change "pure black mode" paper background color to true black
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- (**Theme**) Improve automatic theme background colors
|
- (**Theme**) Improve automatic theme background colors
|
||||||
- (**Theme**) Adjust "primary color" of dynamic color theme on manga pages
|
- (**Theme**) Adjust "primary color" of dynamic color theme on manga pages
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import DeleteIcon from '@mui/icons-material/Delete';
|
|||||||
import IconButton from '@mui/material/IconButton';
|
import IconButton from '@mui/material/IconButton';
|
||||||
import EditIcon from '@mui/icons-material/Edit';
|
import EditIcon from '@mui/icons-material/Edit';
|
||||||
import { AwaitableComponent } from 'awaitable-component';
|
import { AwaitableComponent } from 'awaitable-component';
|
||||||
|
import Paper from '@mui/material/Paper';
|
||||||
import { CustomTooltip } from '@/base/components/CustomTooltip.tsx';
|
import { CustomTooltip } from '@/base/components/CustomTooltip.tsx';
|
||||||
import { useAppThemeContext } from '@/features/theme/AppThemeContext.tsx';
|
import { useAppThemeContext } from '@/features/theme/AppThemeContext.tsx';
|
||||||
import { AppTheme } from '@/features/theme/services/AppThemes.ts';
|
import { AppTheme } from '@/features/theme/services/AppThemes.ts';
|
||||||
@@ -150,7 +151,7 @@ export const ThemePreview = ({ appTheme, onDelete }: { appTheme: AppTheme; onDel
|
|||||||
size="small"
|
size="small"
|
||||||
sx={{ mt: -0.5 }}
|
sx={{ mt: -0.5 }}
|
||||||
>
|
>
|
||||||
<CustomTooltip title={t('global.button.delete')}>
|
<CustomTooltip title={t('global.button.delete')} placement="auto">
|
||||||
<DeleteIcon />
|
<DeleteIcon />
|
||||||
</CustomTooltip>
|
</CustomTooltip>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@@ -169,18 +170,17 @@ export const ThemePreview = ({ appTheme, onDelete }: { appTheme: AppTheme; onDel
|
|||||||
component="div"
|
component="div"
|
||||||
size="small"
|
size="small"
|
||||||
>
|
>
|
||||||
<CustomTooltip title={t('global.button.edit')}>
|
<CustomTooltip title={t('global.button.edit')} placement="auto">
|
||||||
<EditIcon />
|
<EditIcon />
|
||||||
</CustomTooltip>
|
</CustomTooltip>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
)}
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Box
|
<Paper
|
||||||
sx={{
|
sx={{
|
||||||
width: '55%',
|
width: '55%',
|
||||||
height: '65%',
|
height: '65%',
|
||||||
backgroundColor: 'background.paper',
|
|
||||||
p: 1,
|
p: 1,
|
||||||
borderRadius: 1,
|
borderRadius: 1,
|
||||||
}}
|
}}
|
||||||
@@ -196,7 +196,7 @@ export const ThemePreview = ({ appTheme, onDelete }: { appTheme: AppTheme; onDel
|
|||||||
<ThemePreviewBadge sx={{ backgroundColor: 'primary.main' }} />
|
<ThemePreviewBadge sx={{ backgroundColor: 'primary.main' }} />
|
||||||
<ThemePreviewBadge sx={{ backgroundColor: 'secondary.main' }} />
|
<ThemePreviewBadge sx={{ backgroundColor: 'secondary.main' }} />
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Paper>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Stack
|
<Stack
|
||||||
sx={{
|
sx={{
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const getBackgroundColor = (
|
|||||||
): (Partial<TypeBackground> & Partial<PaletteBackgroundChannel>) | undefined => {
|
): (Partial<TypeBackground> & Partial<PaletteBackgroundChannel>) | undefined => {
|
||||||
if (setPureBlackMode) {
|
if (setPureBlackMode) {
|
||||||
return {
|
return {
|
||||||
paper: '#111',
|
paper: '#000',
|
||||||
default: '#000',
|
default: '#000',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user