You've already forked joplin
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user