Files
koodo-reader/src/components/readerSettings/themeList/interface.tsx
troyeguo 2c05dc8a47 Refactor background and viewer components to use props for scale and margin
- Updated Background component to receive scale and margin from props instead of state.
- Implemented UNSAFE_componentWillReceiveProps in Background and Viewer components to handle prop changes for scale, margin, and reader mode.
- Modified mapStateToProps in relevant components to include scale and margin from the Redux store.
- Adjusted SliderList component to handle scale and margin changes without reloading books.
- Updated ThemeList and NavigationPanel components to use backgroundColor from props.
- Enhanced reader settings to manage background color, scale, and margin through Redux actions.
- Refactored related interfaces and actions to accommodate new props and state management.
2025-10-14 18:17:43 +08:00

13 lines
303 B
TypeScript

export interface ThemeListProps {
t: (title: string) => string;
renderBookFunc: () => void;
handleBackgroundColor: (color: string) => void;
}
export interface ThemeListState {
currentBackgroundIndex: number;
currentTextIndex: number;
isShowTextPicker: boolean;
isShowBgPicker: boolean;
}