1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Desktop: Accessibility: Add setting to increase scrollbar and other small control sizes (#11627)

This commit is contained in:
Henry Heino
2025-01-13 08:33:42 -08:00
committed by GitHub
parent e177bffb1c
commit 35a0b22df2
23 changed files with 276 additions and 219 deletions

View File

@@ -4,12 +4,27 @@ import { Options as NoteStyleOptions } from './noteStyle';
export type ItemIdToUrlHandler = (resourceId: string, urlParameters?: string)=> string;
interface ResourceEntity {
id: string;
id?: string;
title?: string;
mime?: string;
file_extension?: string;
updated_time?: number;
encryption_applied?: number;
encryption_blob_encrypted?: number;
}
interface ResourceLocalState {
fetch_status?: number;
}
export interface ResourceInfo {
localState: ResourceLocalState;
item: ResourceEntity;
}
export type ResourceInfos = Record<string, ResourceInfo>;
export interface FsDriver {
writeFile: (path: string, content: string, encoding: string)=> Promise<void>;
exists: (path: string)=> Promise<boolean>;
@@ -19,6 +34,7 @@ export interface FsDriver {
export interface RenderOptions {
contentMaxWidth?: number;
scrollbarSize?: number;
bodyOnly?: boolean;
splitted?: boolean;
enableLongPress?: boolean;
@@ -48,13 +64,15 @@ export interface RenderOptions {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
settingValue?: (pluginId: string, key: string)=> any;
resources?: Record<string, ResourceEntity>;
resources?: ResourceInfos;
onResourceLoaded?: ()=> void;
editPopupFiletypes?: string[];
createEditPopupSyntax?: string;
destroyEditPopupSyntax?: string;
platformName?: string;
// HtmlToHtml only
whiteBackgroundNoteRendering?: boolean;
}