eclipsesource / eclipsesource/tabris-js

Switch shows wrong ripple color when thumb color set

Open
#1,449 0 comments 0 reactions 1 assignee Claimed by @mpost View on GitHub
android bug
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

### Problem description

The color is taken from the default theme and not the user provided `thumbOnColor`.

![image](https://user-images.githubusercontent.com/73655/28774507-0c105e60-75ee-11e7-98bb-7929e7f70e82.png)

### Expected behavior

The ripple color should be taken from the thumb color.

### Environment

- Tabris.js version: 2.0.0
- Device: Android
- OS: any

### Code snippet

```javascript
new Switch({
left: 16, top: 16,
thumbOffColor: 'red',
thumbOnColor: 'green',
trackOnColor: 'blue',
trackOffColor: 'yellow',
checked: true
}).appendTo(ui.contentView);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.