Skip to content

Commit 00ed855

Browse files
committed
tint the android and ios draggers/arrows
1 parent b180342 commit 00ed855

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

source/views/home/edit/row.android.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,18 @@ export class EditHomeRow extends React.PureComponent<Props> {
8181
value={this.props.isEnabled}
8282
/>
8383

84-
<ArrowIcon dir="up" disabled={isFirst} onPress={this.onMoveUp} />
85-
<ArrowIcon dir="down" disabled={isLast} onPress={this.onMoveDown} />
84+
<ArrowIcon
85+
dir="up"
86+
disabled={isFirst}
87+
onPress={this.onMoveUp}
88+
tint={tint}
89+
/>
90+
<ArrowIcon
91+
dir="down"
92+
disabled={isLast}
93+
onPress={this.onMoveDown}
94+
tint={tint}
95+
/>
8696
</View>
8797
)
8898
}
@@ -92,8 +102,9 @@ type ArrowIconProps = {
92102
dir: 'up' | 'down',
93103
disabled: boolean,
94104
onPress: () => any,
105+
tint: string,
95106
}
96-
const ArrowIcon = ({dir, disabled, onPress}: ArrowIconProps) => {
107+
const ArrowIcon = ({dir, disabled, onPress, tint}: ArrowIconProps) => {
97108
const icon = `md-arrow-${dir}`
98109
const size = 24
99110

@@ -109,7 +120,7 @@ const ArrowIcon = ({dir, disabled, onPress}: ArrowIconProps) => {
109120

110121
return (
111122
<Touchable borderless={true} onPress={onPress}>
112-
<IonIcon name={icon} size={size} style={styles.icon} />
123+
<IonIcon name={icon} size={size} style={[styles.icon, {color: tint}]} />
113124
</Touchable>
114125
)
115126
}

source/views/home/edit/row.ios.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ export class EditHomeRow extends React.Component<Props, State> {
178178
value={this.props.isEnabled}
179179
/>
180180

181-
<IonIcon name="ios-reorder" size={32} style={[styles.icon]} />
181+
<IonIcon
182+
name="ios-reorder"
183+
size={32}
184+
style={[styles.icon, {color: tint}]}
185+
/>
182186
</Animated.View>
183187
)
184188
}

0 commit comments

Comments
 (0)