fixed opacity in intensity light

This commit is contained in:
christiancp 2020-03-25 16:44:47 +01:00
parent ab1e911ccd
commit 7ef46e9a1d

View file

@ -89,7 +89,7 @@ export default class Light extends Component {
<text style={textStyle} x={100} y={120} textAnchor="middle" dy="0.3em" fontWeight="bold"> <text style={textStyle} x={100} y={120} textAnchor="middle" dy="0.3em" fontWeight="bold">
{this.props.device.name} {this.props.device.name}
</text> </text>
<CircularProgress style={{ ...KnobProgress, opacity: this.state.intensity + 0.3 }} /> <CircularProgress style={{ ...KnobProgress, opacity: this.state.intensity / 100 + 0.3 }} />
<CircularThumb style={CircularThumbStyle} /> <CircularThumb style={CircularThumbStyle} />
<ThumbText color={"#ffd31d"} /> <ThumbText color={"#ffd31d"} />
</CircularInput> </CircularInput>