Adjust ReaderChapterTransition text color

Text color was never adjusted based on the selected "reader background color"
This commit is contained in:
schroda
2024-12-25 02:36:53 +01:00
parent 7d93b7995a
commit 5dbf1aa8e0
3 changed files with 48 additions and 12 deletions

View File

@@ -254,9 +254,9 @@ export const READER_HOTKEYS = Object.values(ReaderHotkey).filter(
(hotkey) => typeof hotkey === 'number',
) as ReaderHotkey[];
export const READER_BACKGROUND_TO_COLOR: Record<ReaderBackgroundColor, string> = {
export const READER_BACKGROUND_TO_COLOR = {
[ReaderBackgroundColor.THEME]: 'background.default',
[ReaderBackgroundColor.BLACK]: 'black',
[ReaderBackgroundColor.GRAY]: 'gray',
[ReaderBackgroundColor.WHITE]: 'white',
};
[ReaderBackgroundColor.BLACK]: 'common.black',
[ReaderBackgroundColor.GRAY]: 'grey.200',
[ReaderBackgroundColor.WHITE]: 'common.white',
} as const satisfies Record<ReaderBackgroundColor, string>;