optimize brightness #01

pull/6/head
pjx206 4 years ago
parent d3f30f8deb
commit 5f067b34c4

@ -91,7 +91,7 @@ void BrightnessHelper::setBrightness(int value){
value = 1; value = 1;
if (value > 100) if (value > 100)
value = 100; value = 100;
anime.setDuration(200); anime.setDuration(85);
anime.setStartValue(actual); anime.setStartValue(actual);
const int end = static_cast<int>(value /100.0 * maxValue); const int end = static_cast<int>(value /100.0 * maxValue);
anime.setEndValue(end); anime.setEndValue(end);

Loading…
Cancel
Save