1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00

Change how the file path clear button is rendered

This commit is contained in:
Henry Heino 2024-12-19 17:58:39 -08:00
parent a96d654aa5
commit 90f8db9b45
2 changed files with 3 additions and 20 deletions

View File

@ -9,9 +9,8 @@ import { openDocumentTree } from '@joplin/react-native-saf-x';
import { UpdateSettingValueCallback } from './types';
import { reg } from '@joplin/lib/registry';
import type FsDriverWeb from '../../../utils/fs-driver/fs-driver-rn.web';
import { TouchableRipple } from 'react-native-paper';
import { IconButton, TouchableRipple } from 'react-native-paper';
import { _ } from '@joplin/lib/locale';
import IconButton from '../../IconButton';
interface Props {
themeId: number;
@ -92,11 +91,8 @@ const FileSystemPathSelector: FunctionComponent<Props> = props => {
const clearButton = (
<IconButton
iconName='material delete'
description={_('Clear')}
iconStyle={styleSheet.iconButtonText}
contentWrapperStyle={styleSheet.iconButton}
themeId={props.themeId}
icon='delete'
accessibilityLabel={_('Clear')}
onPress={clearPathButtonPress}
/>
);

View File

@ -27,9 +27,6 @@ export interface ConfigScreenStyleSheet {
switchSettingContainer: ViewStyle;
switchSettingControl: TextStyle;
iconButton: ViewStyle;
iconButtonText: TextStyle;
sidebarButton: SidebarButtonStyle;
sidebarIcon: TextStyle;
selectedSidebarButton: SidebarButtonStyle;
@ -167,16 +164,6 @@ const configScreenStyles = (themeId: number): ConfigScreenStyles => {
textInput: {
color: theme.color,
},
iconButton: {
paddingTop: theme.marginTop,
paddingBottom: theme.marginBottom,
paddingLeft: theme.marginLeft,
paddingRight: theme.marginRight,
},
iconButtonText: {
fontSize: theme.fontSizeLarge,
color: theme.color,
},
switchSettingText: {
...settingTextStyle,