
* Don't show an exception when bookmarking doesn't have anything to change. * Cleaned up the bookmark code a bit. * Implemented fullscreen mode in the web reader. Refactored User Settings to move Password and 3rd Party Clients to a tab rather than accordion. Removed color filters for web reader. * Implemented fullscreen mode into book reader * Added some code for toggling fullscreen which re-renders the screen to ensure the fitting works optimially * Fixed an issue where moving from FitToScreen -> Split (L/R) wouldn't render the screen correctly due to canvas not being reset. * Fixed bad optimization and scaling when drawing fit to screen * Removed left/right highlights on page direction change in favor for icons. Double arrow will dictate the page change. * Reduced overlay auto close time to 3 seconds * Updated the paginging direction overlay to use icons and colors. Added a blur effect on menus * Removed debug flags
31 lines
1.6 KiB
TypeScript
31 lines
1.6 KiB
TypeScript
|
|
import { PageSplitOption } from './page-split-option';
|
|
import { READER_MODE } from './reader-mode';
|
|
import { ReadingDirection } from './reading-direction';
|
|
import { ScalingOption } from './scaling-option';
|
|
|
|
export interface Preferences {
|
|
// Manga Reader
|
|
readingDirection: ReadingDirection;
|
|
scalingOption: ScalingOption;
|
|
pageSplitOption: PageSplitOption;
|
|
readerMode: READER_MODE;
|
|
autoCloseMenu: boolean;
|
|
|
|
// Book Reader
|
|
bookReaderDarkMode: boolean;
|
|
bookReaderMargin: number;
|
|
bookReaderLineSpacing: number;
|
|
bookReaderFontSize: number;
|
|
bookReaderFontFamily: string;
|
|
bookReaderTapToPaginate: boolean;
|
|
bookReaderReadingDirection: ReadingDirection;
|
|
|
|
// Global
|
|
siteDarkMode: boolean;
|
|
}
|
|
|
|
export const readingDirections = [{text: 'Left to Right', value: ReadingDirection.LeftToRight}, {text: 'Right to Left', value: ReadingDirection.RightToLeft}];
|
|
export const scalingOptions = [{text: 'Automatic', value: ScalingOption.Automatic}, {text: 'Fit to Height', value: ScalingOption.FitToHeight}, {text: 'Fit to Width', value: ScalingOption.FitToWidth}, {text: 'Original', value: ScalingOption.Original}];
|
|
export const pageSplitOptions = [{text: 'Fit to Screen', value: PageSplitOption.FitSplit}, {text: 'Right to Left', value: PageSplitOption.SplitRightToLeft}, {text: 'Left to Right', value: PageSplitOption.SplitLeftToRight}, {text: 'No Split', value: PageSplitOption.NoSplit}];
|
|
export const readingModes = [{text: 'Left to Right', value: READER_MODE.MANGA_LR}, {text: 'Up to Down', value: READER_MODE.MANGA_UD}, {text: 'Webtoon', value: READER_MODE.WEBTOON}];
|