Adjust search box carret and selection color (#789)
This commit is contained in:
parent
28ce84e666
commit
3315ce9328
4 changed files with 7 additions and 0 deletions
|
|
@ -165,6 +165,7 @@ class ChannelsList extends Component {
|
|||
tintColorSearch={changeOpacity(theme.sidebarHeaderTextColor, 0.8)}
|
||||
tintColorDelete={changeOpacity(theme.sidebarHeaderTextColor, 0.5)}
|
||||
titleCancelColor={theme.sidebarHeaderTextColor}
|
||||
selectionColor={changeOpacity(theme.sidebarHeaderTextColor, 0.5)}
|
||||
onSearchButtonPress={this.onSearch}
|
||||
onCancelButtonPress={this.cancelSearch}
|
||||
onChangeText={this.onSearch}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ export default class SearchBarAndroid extends PureComponent {
|
|||
onSearchButtonPress: PropTypes.func,
|
||||
onSelectionChange: PropTypes.func,
|
||||
backgroundColor: PropTypes.string,
|
||||
selectionColor: PropTypes.string,
|
||||
placeholderTextColor: PropTypes.string,
|
||||
titleCancelColor: PropTypes.string,
|
||||
tintColorSearch: PropTypes.string,
|
||||
|
|
@ -132,6 +133,7 @@ export default class SearchBarAndroid extends PureComponent {
|
|||
keyboardType,
|
||||
placeholder,
|
||||
placeholderTextColor,
|
||||
selectionColor,
|
||||
returnKeyType,
|
||||
titleCancelColor,
|
||||
tintColorDelete,
|
||||
|
|
@ -204,6 +206,7 @@ export default class SearchBarAndroid extends PureComponent {
|
|||
onSelectionChange={this.onSelectionChange}
|
||||
placeholder={placeholder}
|
||||
placeholderTextColor={placeholderTextColor}
|
||||
selectionColor={selectionColor}
|
||||
underlineColorAndroid='transparent'
|
||||
style={[
|
||||
styles.searchBarInput,
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ export default class Search extends Component {
|
|||
titleCancelColor: PropTypes.string,
|
||||
tintColorSearch: PropTypes.string,
|
||||
tintColorDelete: PropTypes.string,
|
||||
selectionColor: PropTypes.string,
|
||||
inputStyle: PropTypes.oneOfType([
|
||||
PropTypes.number,
|
||||
PropTypes.object,
|
||||
|
|
@ -367,6 +368,7 @@ export default class Search extends Component {
|
|||
onChangeText={this.onChangeText}
|
||||
placeholder={this.placeholder}
|
||||
placeholderTextColor={this.props.placeholderTextColor}
|
||||
selectionColor={this.props.selectionColor}
|
||||
onSubmitEditing={this.onSearch}
|
||||
onSelectionChange={this.onSelectionChange}
|
||||
autoCorrect={false}
|
||||
|
|
|
|||
|
|
@ -462,6 +462,7 @@ class Search extends Component {
|
|||
})
|
||||
}}
|
||||
placeholderTextColor={changeOpacity(theme.sidebarHeaderTextColor, 0.5)}
|
||||
selectionColor={changeOpacity(theme.sidebarHeaderTextColor, 0.5)}
|
||||
tintColorSearch={changeOpacity(theme.sidebarHeaderTextColor, 0.8)}
|
||||
tintColorDelete={changeOpacity(theme.sidebarHeaderTextColor, 0.5)}
|
||||
titleCancelColor={theme.sidebarHeaderTextColor}
|
||||
|
|
|
|||
Loading…
Reference in a new issue