Add "disabled" tap zone layout

This commit is contained in:
schroda
2024-12-09 19:09:01 +01:00
parent 230e23484a
commit f98b34de15
3 changed files with 20 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ const VALUE_TO_DISPLAY_DATA: ValueToDisplayData<TapZoneLayouts> = {
title: 'reader.settings.tap_zones.right_left',
icon: null,
},
[TapZoneLayouts.DISABLED]: {
title: 'global.label.disabled',
icon: null,
},
};
const READER_TAP_ZONE_LAYOUT_VALUES = Object.values(TapZoneLayouts).filter((value) => typeof value === 'number');

View File

@@ -118,6 +118,21 @@ export const READER_TAP_ZONE_LAYOUTS: Record<TapZoneLayouts, TapZoneRegion[]> =
type: TapZoneRegionType.NEXT,
},
],
/**
* +---+---+---+
* | M | M | M | P: Previous
* +---+---+---+
* | M | M | M | M: Menu
* +---+---+---+
* | M | M | M | N: Next
* +---+---+---+
*/
[TapZoneLayouts.DISABLED]: [
{
rect: [0, 0, 100, 100],
type: TapZoneRegionType.MENU,
},
],
};
export const TAP_ZONE_REGION_TYPE_DATA: Record<TapZoneRegionType, { text: TranslationKey; color: string }> = {

View File

@@ -11,6 +11,7 @@ export enum TapZoneLayouts {
KINDLE,
L_SHAPE,
RIGHT_LEFT,
DISABLED,
}
export enum TapZoneRegionType {