mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-27 16:17:21 -08:00
Brightness warmth: set warmth before cinematic brightness
Allows a more fluid animation.
This commit is contained in:
parent
df5791ce44
commit
d9a46e7615
1 changed files with 11 additions and 11 deletions
|
@ -812,17 +812,6 @@ void MainWindow::setBatteryIcon() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::setInitialBrightness() {
|
void MainWindow::setInitialBrightness() {
|
||||||
int brightness_value = brightness_checkconfig(".config/03-brightness/config");
|
|
||||||
if(checkconfig("/tmp/oobe-inkbox_completed") == true or checkconfig("/tmp/inkbox-cinematicBrightness_ran") == true) {
|
|
||||||
// Coming from OOBE setup; not doing that fancy stuff again ;p
|
|
||||||
QFile::remove("/tmp/oobe-inkbox_completed");
|
|
||||||
pre_set_brightness(brightness_value);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// Fancy brightness fade-in
|
|
||||||
string_writeconfig("/tmp/inkbox-cinematicBrightness_ran", "true");
|
|
||||||
cinematicBrightness(brightness_value, 0);
|
|
||||||
}
|
|
||||||
string_checkconfig_ro("/opt/inkbox_device");
|
string_checkconfig_ro("/opt/inkbox_device");
|
||||||
if(checkconfig_str_val == "n873\n") {
|
if(checkconfig_str_val == "n873\n") {
|
||||||
int warmth;
|
int warmth;
|
||||||
|
@ -835,6 +824,17 @@ void MainWindow::setInitialBrightness() {
|
||||||
}
|
}
|
||||||
set_warmth(warmth);
|
set_warmth(warmth);
|
||||||
}
|
}
|
||||||
|
int brightness_value = brightness_checkconfig(".config/03-brightness/config");
|
||||||
|
if(checkconfig("/tmp/oobe-inkbox_completed") == true or checkconfig("/tmp/inkbox-cinematicBrightness_ran") == true) {
|
||||||
|
// Coming from OOBE setup; not doing that fancy stuff again ;p
|
||||||
|
QFile::remove("/tmp/oobe-inkbox_completed");
|
||||||
|
pre_set_brightness(brightness_value);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Fancy brightness fade-in
|
||||||
|
string_writeconfig("/tmp/inkbox-cinematicBrightness_ran", "true");
|
||||||
|
cinematicBrightness(brightness_value, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::refreshScreen() {
|
void MainWindow::refreshScreen() {
|
||||||
|
|
Loading…
Reference in a new issue