mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
[ion] Change LED color when charging: yellow --> orange
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user