From d93a25459cdefba940f254b4c5f54fd7d9cdaf11 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Thu, 8 Oct 2009 16:32:58 -0700 Subject: simplify construction of the recovery progress bar Instead of six separate images for the left end, right end, and tiled center portion of the full and empty progress bars, just use two images: a full bar and an empty bar. Draw the left side of the full bar and the right side of the empty one, moving the boundary rightward to "fill" the bar. This makes recovery trivially smaller, and allows fancier images to be used as progress bars. Support paletted PNG images as resources. --- res/images/indeterminate1.png | Bin 2249 -> 1919 bytes res/images/indeterminate2.png | Bin 2251 -> 1912 bytes res/images/indeterminate3.png | Bin 2254 -> 1917 bytes res/images/indeterminate4.png | Bin 2249 -> 1912 bytes res/images/indeterminate5.png | Bin 2246 -> 1902 bytes res/images/indeterminate6.png | Bin 2262 -> 1914 bytes res/images/progress_bar_empty.png | Bin 148 -> 0 bytes res/images/progress_bar_empty_left_round.png | Bin 220 -> 0 bytes res/images/progress_bar_empty_right_round.png | Bin 211 -> 0 bytes res/images/progress_bar_fill.png | Bin 117 -> 0 bytes res/images/progress_bar_left_round.png | Bin 195 -> 0 bytes res/images/progress_bar_right_round.png | Bin 192 -> 0 bytes res/images/progress_empty.png | Bin 0 -> 361 bytes res/images/progress_fill.png | Bin 0 -> 286 bytes 14 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 res/images/progress_bar_empty.png delete mode 100644 res/images/progress_bar_empty_left_round.png delete mode 100644 res/images/progress_bar_empty_right_round.png delete mode 100644 res/images/progress_bar_fill.png delete mode 100644 res/images/progress_bar_left_round.png delete mode 100644 res/images/progress_bar_right_round.png create mode 100644 res/images/progress_empty.png create mode 100644 res/images/progress_fill.png (limited to 'res') diff --git a/res/images/indeterminate1.png b/res/images/indeterminate1.png index 264bf27..90cb9fb 100644 Binary files a/res/images/indeterminate1.png and b/res/images/indeterminate1.png differ diff --git a/res/images/indeterminate2.png b/res/images/indeterminate2.png index c30c049..f7fb289 100644 Binary files a/res/images/indeterminate2.png and b/res/images/indeterminate2.png differ diff --git a/res/images/indeterminate3.png b/res/images/indeterminate3.png index 891a000..ba10dfa 100644 Binary files a/res/images/indeterminate3.png and b/res/images/indeterminate3.png differ diff --git a/res/images/indeterminate4.png b/res/images/indeterminate4.png index 7a64151..ad5d9a5 100644 Binary files a/res/images/indeterminate4.png and b/res/images/indeterminate4.png differ diff --git a/res/images/indeterminate5.png b/res/images/indeterminate5.png index cd6ab20..8c19c8d 100644 Binary files a/res/images/indeterminate5.png and b/res/images/indeterminate5.png differ diff --git a/res/images/indeterminate6.png b/res/images/indeterminate6.png index ddd9e73..c0c6638 100644 Binary files a/res/images/indeterminate6.png and b/res/images/indeterminate6.png differ diff --git a/res/images/progress_bar_empty.png b/res/images/progress_bar_empty.png deleted file mode 100644 index 9013f04..0000000 Binary files a/res/images/progress_bar_empty.png and /dev/null differ diff --git a/res/images/progress_bar_empty_left_round.png b/res/images/progress_bar_empty_left_round.png deleted file mode 100644 index dae7d5d..0000000 Binary files a/res/images/progress_bar_empty_left_round.png and /dev/null differ diff --git a/res/images/progress_bar_empty_right_round.png b/res/images/progress_bar_empty_right_round.png deleted file mode 100644 index 5427088..0000000 Binary files a/res/images/progress_bar_empty_right_round.png and /dev/null differ diff --git a/res/images/progress_bar_fill.png b/res/images/progress_bar_fill.png deleted file mode 100644 index 37c04b4..0000000 Binary files a/res/images/progress_bar_fill.png and /dev/null differ diff --git a/res/images/progress_bar_left_round.png b/res/images/progress_bar_left_round.png deleted file mode 100644 index e72af47..0000000 Binary files a/res/images/progress_bar_left_round.png and /dev/null differ diff --git a/res/images/progress_bar_right_round.png b/res/images/progress_bar_right_round.png deleted file mode 100644 index d04c980..0000000 Binary files a/res/images/progress_bar_right_round.png and /dev/null differ diff --git a/res/images/progress_empty.png b/res/images/progress_empty.png new file mode 100644 index 0000000..4cb4998 Binary files /dev/null and b/res/images/progress_empty.png differ diff --git a/res/images/progress_fill.png b/res/images/progress_fill.png new file mode 100644 index 0000000..eb71754 Binary files /dev/null and b/res/images/progress_fill.png differ -- cgit v1.1