summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-06-03 19:50:13 +0200
committerDoug Zongker <dougz@google.com>2014-06-03 20:02:31 +0200
commitdff8afe1b21c6ffe09269434f9f8f0d166e1a848 (patch)
tree3cd1ce25d54f4362b5f42140214568c94d8bd159
parentam 502e4595: am d1c64060: am 5fbb729f: Merge "exit instead of return if sideload file creation fails" (diff)
downloadandroid_bootable_recovery-dff8afe1b21c6ffe09269434f9f8f0d166e1a848.tar
android_bootable_recovery-dff8afe1b21c6ffe09269434f9f8f0d166e1a848.tar.gz
android_bootable_recovery-dff8afe1b21c6ffe09269434f9f8f0d166e1a848.tar.bz2
android_bootable_recovery-dff8afe1b21c6ffe09269434f9f8f0d166e1a848.tar.lz
android_bootable_recovery-dff8afe1b21c6ffe09269434f9f8f0d166e1a848.tar.xz
android_bootable_recovery-dff8afe1b21c6ffe09269434f9f8f0d166e1a848.tar.zst
android_bootable_recovery-dff8afe1b21c6ffe09269434f9f8f0d166e1a848.zip
Diffstat (limited to '')
-rw-r--r--res-hdpi/images/progress_empty.pngbin81 -> 118 bytes
-rw-r--r--res-hdpi/images/progress_fill.pngbin83 -> 404 bytes
-rw-r--r--res-mdpi/images/progress_empty.pngbin74 -> 118 bytes
-rw-r--r--res-mdpi/images/progress_fill.pngbin83 -> 404 bytes
-rw-r--r--res-xhdpi/images/progress_empty.pngbin84 -> 118 bytes
-rw-r--r--res-xhdpi/images/progress_fill.pngbin84 -> 404 bytes
-rw-r--r--res-xxhdpi/images/progress_empty.pngbin86 -> 118 bytes
-rw-r--r--res-xxhdpi/images/progress_fill.pngbin86 -> 404 bytes
-rw-r--r--res-xxxhdpi/images/progress_empty.pngbin90 -> 118 bytes
-rw-r--r--res-xxxhdpi/images/progress_fill.pngbin90 -> 404 bytes
-rw-r--r--screen_ui.cpp29
-rw-r--r--screen_ui.h3
12 files changed, 16 insertions, 16 deletions
diff --git a/res-hdpi/images/progress_empty.png b/res-hdpi/images/progress_empty.png
index b29d9be0c..72581832c 100644
--- a/res-hdpi/images/progress_empty.png
+++ b/res-hdpi/images/progress_empty.png
Binary files differ
diff --git a/res-hdpi/images/progress_fill.png b/res-hdpi/images/progress_fill.png
index 4c5e66bb5..becf87bdf 100644
--- a/res-hdpi/images/progress_fill.png
+++ b/res-hdpi/images/progress_fill.png
Binary files differ
diff --git a/res-mdpi/images/progress_empty.png b/res-mdpi/images/progress_empty.png
index 0883e0070..72581832c 100644
--- a/res-mdpi/images/progress_empty.png
+++ b/res-mdpi/images/progress_empty.png
Binary files differ
diff --git a/res-mdpi/images/progress_fill.png b/res-mdpi/images/progress_fill.png
index c223871b9..becf87bdf 100644
--- a/res-mdpi/images/progress_fill.png
+++ b/res-mdpi/images/progress_fill.png
Binary files differ
diff --git a/res-xhdpi/images/progress_empty.png b/res-xhdpi/images/progress_empty.png
index 429797bf0..72581832c 100644
--- a/res-xhdpi/images/progress_empty.png
+++ b/res-xhdpi/images/progress_empty.png
Binary files differ
diff --git a/res-xhdpi/images/progress_fill.png b/res-xhdpi/images/progress_fill.png
index 7af35aaf1..becf87bdf 100644
--- a/res-xhdpi/images/progress_fill.png
+++ b/res-xhdpi/images/progress_fill.png
Binary files differ
diff --git a/res-xxhdpi/images/progress_empty.png b/res-xxhdpi/images/progress_empty.png
index 57c823587..72581832c 100644
--- a/res-xxhdpi/images/progress_empty.png
+++ b/res-xxhdpi/images/progress_empty.png
Binary files differ
diff --git a/res-xxhdpi/images/progress_fill.png b/res-xxhdpi/images/progress_fill.png
index 0f36f48c2..becf87bdf 100644
--- a/res-xxhdpi/images/progress_fill.png
+++ b/res-xxhdpi/images/progress_fill.png
Binary files differ
diff --git a/res-xxxhdpi/images/progress_empty.png b/res-xxxhdpi/images/progress_empty.png
index ba25afb6e..72581832c 100644
--- a/res-xxxhdpi/images/progress_empty.png
+++ b/res-xxxhdpi/images/progress_empty.png
Binary files differ
diff --git a/res-xxxhdpi/images/progress_fill.png b/res-xxxhdpi/images/progress_fill.png
index 83b72b27e..becf87bdf 100644
--- a/res-xxxhdpi/images/progress_fill.png
+++ b/res-xxxhdpi/images/progress_fill.png
Binary files differ
diff --git a/screen_ui.cpp b/screen_ui.cpp
index d087af329..03ef049ae 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -89,7 +89,7 @@ ScreenRecoveryUI::ScreenRecoveryUI() :
void ScreenRecoveryUI::draw_background_locked(Icon icon)
{
pagesIdentical = false;
- gr_color(250, 250, 250, 255);
+ gr_color(0, 0, 0, 255);
gr_clear();
if (icon) {
@@ -125,7 +125,7 @@ void ScreenRecoveryUI::draw_background_locked(Icon icon)
}
}
- gr_color(115, 115, 115, 255);
+ gr_color(255, 255, 255, 255);
gr_texticon(textX, textY, text_surface);
}
}
@@ -150,7 +150,7 @@ void ScreenRecoveryUI::draw_progress_locked()
int dy = (3*gr_fb_height() + iconHeight - 2*height)/4;
// Erase behind the progress bar (in case this was a progress-only update)
- gr_color(250, 250, 250, 255);
+ gr_color(0, 0, 0, 255);
gr_fill(dx, dy, width, height);
if (progressBarType == DETERMINATE) {
@@ -181,17 +181,20 @@ void ScreenRecoveryUI::draw_progress_locked()
void ScreenRecoveryUI::SetColor(UIElement e) {
switch (e) {
case HEADER:
- gr_color(0xff, 0x57, 0x22, 255); // Quantum "Deep Orange" 500
+ gr_color(247, 0, 6, 255);
break;
case MENU:
case MENU_SEL_BG:
- gr_color(0x67, 0x3a, 0xb7, 255); // Quantum "Deep Purple" 500
+ gr_color(0, 106, 157, 255);
break;
case MENU_SEL_FG:
gr_color(255, 255, 255, 255);
break;
case LOG:
- gr_color(0x3f, 0x51, 0xb5, 255); // Quantum "Indigo" 500
+ gr_color(249, 194, 0, 255);
+ break;
+ case TEXT_FILL:
+ gr_color(0, 0, 0, 160);
break;
default:
gr_color(255, 255, 255, 255);
@@ -207,7 +210,7 @@ void ScreenRecoveryUI::draw_screen_locked()
draw_background_locked(currentIcon);
draw_progress_locked();
} else {
- gr_color(250, 250, 250, 255);
+ gr_color(0, 0, 0, 255);
gr_clear();
int y = 0;
@@ -221,13 +224,13 @@ void ScreenRecoveryUI::draw_screen_locked()
if (i == menu_top + menu_sel) {
// draw the highlight bar
SetColor(MENU_SEL_BG);
- gr_fill(0, y-2+kTextYOffset, gr_fb_width(), y+char_height+2+kTextYOffset);
+ gr_fill(0, y-2, gr_fb_width(), y+char_height+2);
// white text of selected item
SetColor(MENU_SEL_FG);
- if (menu[i][0]) gr_text(kTextXOffset, y+kTextYOffset, menu[i], 1);
+ if (menu[i][0]) gr_text(4, y, menu[i], 1);
SetColor(MENU);
} else {
- if (menu[i][0]) gr_text(kTextXOffset, y+kTextYOffset, menu[i], i < menu_top);
+ if (menu[i][0]) gr_text(4, y, menu[i], i < menu_top);
}
y += char_height+4;
}
@@ -248,7 +251,7 @@ void ScreenRecoveryUI::draw_screen_locked()
for (int ty = gr_fb_height() - char_height, count = 0;
ty > y+2 && count < text_rows;
ty -= char_height, ++count) {
- gr_text(kTextXOffset, ty+kTextYOffset, text[row], 0);
+ gr_text(4, ty, text[row], 0);
--row;
if (row < 0) row = text_rows-1;
}
@@ -349,11 +352,11 @@ void ScreenRecoveryUI::Init()
gr_font_size(&char_width, &char_height);
text_col = text_row = 0;
- text_rows = (gr_fb_height() - 2 * kTextYOffset) / char_height;
+ text_rows = gr_fb_height() / char_height;
if (text_rows > kMaxRows) text_rows = kMaxRows;
text_top = 1;
- text_cols = (gr_fb_width() - 2 * kTextXOffset) / char_width;
+ text_cols = gr_fb_width() / char_width;
if (text_cols > kMaxCols - 1) text_cols = kMaxCols - 1;
backgroundIcon[NONE] = NULL;
diff --git a/screen_ui.h b/screen_ui.h
index d5e589225..01a33bfe2 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -87,9 +87,6 @@ class ScreenRecoveryUI : public RecoveryUI {
static const int kMaxCols = 96;
static const int kMaxRows = 96;
- static const int kTextXOffset = 8;
- static const int kTextYOffset = 4;
-
// Log text overlay, displayed when a magic key is pressed
char text[kMaxRows][kMaxCols];
int text_cols, text_rows;