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