Skip to content

Commit

Permalink
Segmented control tintcolor (#211)
Browse files Browse the repository at this point in the history
* 修改SegmentedControl默认颜色为主题颜色

* SegmentedControl主题颜色变量变更
  • Loading branch information
jihfgz authored and BANG88 committed Dec 25, 2018
1 parent 15ee90f commit f8ad36b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/segmented-control/segmented.android.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class SegmentedControl extends React.Component<
<WithTheme styles={this.props.styles} themeStyles={AndroidStyles}>
{(styles, theme) => {
const selectedIndex = this.state.selectedIndex;
tintColor = tintColor || theme.brand_primary;
tintColor = tintColor || theme.segmented_control_color;
const items = values.map((value, idx) => {
let itemRadius: any = null;
if (idx === 0) {
Expand Down
2 changes: 1 addition & 1 deletion components/segmented-control/segmented.ios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class SegmentedControl extends React.Component<
<WithTheme>
{(_, theme) => (
<SegmentedControlIOS
tintColor={tintColor||theme.brand_primary}
tintColor={tintColor||theme.segmented_control_color}
selectedIndex={selectedIndex}
{...restProps}
enabled={!disabled}
Expand Down

0 comments on commit f8ad36b

Please sign in to comment.