Base reader component

This commit is contained in:
schroda
2024-12-03 20:24:55 +01:00
parent 5de5eb7cdc
commit da0004de4a
3 changed files with 353 additions and 4 deletions

View File

@@ -256,3 +256,10 @@ export enum ReaderScrollAmount {
export const READER_HOTKEYS = Object.values(ReaderHotkey).filter(
(hotkey) => typeof hotkey === 'number',
) as ReaderHotkey[];
export const READER_BACKGROUND_TO_COLOR: Record<ReaderBackgroundColor, string> = {
[ReaderBackgroundColor.THEME]: 'background.default',
[ReaderBackgroundColor.BLACK]: 'black',
[ReaderBackgroundColor.GRAY]: 'gray',
[ReaderBackgroundColor.WHITE]: 'white',
};