Fix total library size chip color in light mode
This commit is contained in:
@@ -17,6 +17,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|||||||
- (**Theme**) Adjust "primary color" of dynamic color theme on manga pages
|
- (**Theme**) Adjust "primary color" of dynamic color theme on manga pages
|
||||||
- (**Theme**) Increase max length of custom theme names to 32 (previously 16)
|
- (**Theme**) Increase max length of custom theme names to 32 (previously 16)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- (**Library**) Fix total library size chip color in light mode
|
||||||
|
|
||||||
## [20251230.01] (r2937) - 2025-12-30
|
## [20251230.01] (r2937) - 2025-12-30
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
import Chip, { ChipProps } from '@mui/material/Chip';
|
import Chip, { ChipProps } from '@mui/material/Chip';
|
||||||
import Tab from '@mui/material/Tab';
|
import Tab from '@mui/material/Tab';
|
||||||
import { styled } from '@mui/material/styles';
|
import { styled, useTheme } from '@mui/material/styles';
|
||||||
import { useCallback, useMemo, useState } from 'react';
|
import { useCallback, useMemo, useState } from 'react';
|
||||||
import { useQueryParam, NumberParam, StringParam } from 'use-query-params';
|
import { useQueryParam, NumberParam, StringParam } from 'use-query-params';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
@@ -60,6 +60,7 @@ const TitleSizeTag = ({ sx, ...props }: ChipProps) => (
|
|||||||
|
|
||||||
export function Library() {
|
export function Library() {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const theme = useTheme();
|
||||||
|
|
||||||
const {
|
const {
|
||||||
settings: { showTabSize },
|
settings: { showTabSize },
|
||||||
@@ -190,7 +191,12 @@ export function Library() {
|
|||||||
useAppTitle(
|
useAppTitle(
|
||||||
<TitleWithSizeTag>
|
<TitleWithSizeTag>
|
||||||
{t('library.title')}
|
{t('library.title')}
|
||||||
{showTabSize && <TitleSizeTag sx={{ color: 'inherit' }} label={librarySize} />}
|
{showTabSize && (
|
||||||
|
<TitleSizeTag
|
||||||
|
sx={{ ...theme.applyStyles('light', { backgroundColor: 'background.paper' }) }}
|
||||||
|
label={librarySize}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</TitleWithSizeTag>,
|
</TitleWithSizeTag>,
|
||||||
t('library.title'),
|
t('library.title'),
|
||||||
[t, showTabSize, librarySize],
|
[t, showTabSize, librarySize],
|
||||||
|
|||||||
Reference in New Issue
Block a user