[ion] Change LED color when charging: yellow --> orange

This commit is contained in:
Émilie Feral
2019-04-11 10:15:49 +02:00
parent f123f1afaa
commit 3a57b2e7d2
3 changed files with 3 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ void AppsContainer::suspend(bool checkIfPowerKeyReleased) {
void AppsContainer::updateLED() {
if (Ion::USB::isPlugged()) {
Ion::LED::setColor(Ion::Battery::isCharging() ? KDColorYellow : KDColorGreen);
Ion::LED::setColor(Ion::Battery::isCharging() ? KDColorOrange : KDColorGreen);
} else {
Ion::LED::setColor(KDColorBlack);
}

View File

@@ -67,7 +67,7 @@ void sleepConfiguration() {
}
KDColor updateLED() {
KDColor ledColor = USB::isPlugged() ? (Battery::isCharging() ? KDColorYellow : KDColorGreen) : KDColorBlack;
KDColor ledColor = USB::isPlugged() ? (Battery::isCharging() ? KDColorOrange : KDColorGreen) : KDColorBlack;
Ion::LED::setColor(ledColor);
return ledColor;
}

View File

@@ -44,5 +44,6 @@ constexpr KDColor KDColorRed = KDColor::RGB24(0xFF0000);
constexpr KDColor KDColorGreen = KDColor::RGB24(0x00FF00);
constexpr KDColor KDColorBlue = KDColor::RGB24(0x0000FF);
constexpr KDColor KDColorYellow = KDColor::RGB24(0xFFFF00);
constexpr KDColor KDColorOrange = KDColor::RGB24(0xFF2200);
#endif