Settings to invert colors of the images
Useful for novels, for reading in dark mode
This commit is contained in:
@@ -340,6 +340,7 @@
|
||||
<div
|
||||
class="flex flex-row"
|
||||
class:flex-row-reverse={!volumeSettings.rightToLeft}
|
||||
style:filter={`invert(${$settings.invertColors ? 1 : 0})`}
|
||||
on:dblclick={onDoubleTap}
|
||||
role="none"
|
||||
id="manga-panel"
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
{ key: 'bounds', text: 'Bounds', value: $settings.bounds },
|
||||
{ key: 'mobile', text: 'Mobile', value: $settings.mobile },
|
||||
{ key: 'showTimer', text: 'Show timer', value: $settings.showTimer },
|
||||
{ key: 'quickActions', text: 'Show quick actions', value: $settings.quickActions }
|
||||
{ key: 'quickActions', text: 'Show quick actions', value: $settings.quickActions },
|
||||
{ key: 'invertColors', text: 'Invert colors of the images', value: $settings.invertColors }
|
||||
] as { key: SettingsKey; text: string; value: any }[];
|
||||
</script>
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ export type Settings = {
|
||||
quickActions: boolean;
|
||||
fontSize: FontSize;
|
||||
zoomDefault: ZoomModes;
|
||||
invertColors: boolean;
|
||||
volumeDefaults: VolumeDefaults;
|
||||
ankiConnectSettings: AnkiConnectSettings;
|
||||
};
|
||||
@@ -84,6 +85,7 @@ const defaultSettings: Settings = {
|
||||
quickActions: true,
|
||||
fontSize: 'auto',
|
||||
zoomDefault: 'zoomFitToScreen',
|
||||
invertColors: false,
|
||||
volumeDefaults: {
|
||||
singlePageView: false,
|
||||
rightToLeft: true,
|
||||
|
||||
Reference in New Issue
Block a user