aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2020-05-04 15:58:49 -0400
committerMichael Bestas <mkbestas@lineageos.org>2020-06-08 17:42:48 +0300
commit4832e2f2f9e7fe3f7f7099fa4d91f0c9f8ea552b (patch)
treef45b69139980691359bdeb52baacd8494eea3e86
parent53fd2548246d9a2c66f4b6a2653e127fa31b8423 (diff)
downloadandroid_bootable_recovery-4832e2f2f9e7fe3f7f7099fa4d91f0c9f8ea552b.tar.gz
android_bootable_recovery-4832e2f2f9e7fe3f7f7099fa4d91f0c9f8ea552b.tar.bz2
android_bootable_recovery-4832e2f2f9e7fe3f7f7099fa4d91f0c9f8ea552b.zip
recovery: Set the INFO color to the recovery/fastboot light color
The default color clashes with the new recovery logo. Currently no text is rendered with the INFO color, but that will change in a future commit. Change-Id: I737528e0c0a5202532e59d99ca57268478c87965
-rw-r--r--recovery_ui/screen_ui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/recovery_ui/screen_ui.cpp b/recovery_ui/screen_ui.cpp
index 5c11141d..54f8c851 100644
--- a/recovery_ui/screen_ui.cpp
+++ b/recovery_ui/screen_ui.cpp
@@ -581,7 +581,10 @@ void ScreenRecoveryUI::draw_foreground_locked() {
void ScreenRecoveryUI::SetColor(UIElement e) const {
switch (e) {
case UIElement::INFO:
- gr_color(249, 194, 0, 255);
+ if (fastbootd_logo_enabled_)
+ gr_color(0xfd, 0xd8, 0x35, 255);
+ else
+ gr_color(0xf8, 0x90, 0xff, 255);
break;
case UIElement::HEADER:
if (fastbootd_logo_enabled_)