mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Change how the file path clear button is rendered
This commit is contained in:
parent
a96d654aa5
commit
90f8db9b45
@ -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}
|
||||
/>
|
||||
);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user