summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2012-08-21 17:19:06 +0800
committerDave Parker <dparker@chromium.org>2012-09-19 18:03:53 -0700
commite7cd67d1aedbfe11e8f145fd11a2abdeffc83a1c (patch)
tree000259cbf5da377d1b6d700f396cbe8836db3c3f
parent34bbd049281a6012d3b98e98fef932d4256a30c9 (diff)
downloadvboot-e7cd67d1aedbfe11e8f145fd11a2abdeffc83a1c.tar.gz
cherry-pick: newbitmaps: Reduce spacing between for_help and URL text.
Both for_help_* and Url bitmaps have margin, so it looks too large as a "margin*2 + 5(x_pad)" gap on screen. BRANCH=none BUG=chrome-os-partner:12893 TEST=make # All bitmaps generated. Change-Id: If9dd14918c27c4802c27209db214a0f5f0d2137c Original-Change-Id: Ic8d3e9180e52b7476b07367a027793cea0ed3109 Reviewed-on: https://gerrit.chromium.org/gerrit/30988 Tested-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Dave Parker <dparker@chromium.org> Commit-Ready: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/33653 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Tested-by: Dave Parker <dparker@chromium.org>
-rwxr-xr-xscripts/newbitmaps/images/make_default_yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/newbitmaps/images/make_default_yaml b/scripts/newbitmaps/images/make_default_yaml
index 3976289d..bdf66c60 100755
--- a/scripts/newbitmaps/images/make_default_yaml
+++ b/scripts/newbitmaps/images/make_default_yaml
@@ -238,8 +238,12 @@ add_header() {
add_footer_with_url() {
local lc=$1
+ local old_xpad="$xpad"
set_centered_y_percent "white_bg" 80
insert_centered_below "divider_btm"
+ # Temporarily change padding to zero because both help_*_text and url
+ # have margins.
+ xpad="0"
insert_centered_below "${lc}_help_left_text" "url" "${lc}_help_right_text"
if echo "$rtol" | grep -q -w "$lc" ; then
insert_centered_below 'hwid' "${lc}_model_text"
@@ -247,6 +251,7 @@ add_footer_with_url() {
insert_centered_below "${lc}_model_text" 'hwid'
fi
echo "" >> "$yaml_file"
+ xpad="$old_xpad"
}
add_footer_without_url() {