summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2012-08-21 17:19:06 +0800
committerGerrit <chrome-bot@google.com>2012-08-22 18:34:44 -0700
commit2ac65ecccfc695246a637ca4a1b37788ae59ed6e (patch)
treee5d33aa701c880c4f3cf132977252da3f87a077d /scripts
parent9b98929ec1d8fc1ec37d699b0735d60cb13308ce (diff)
downloadvboot-2ac65ecccfc695246a637ca4a1b37788ae59ed6e.tar.gz
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: 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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/newbitmaps/images/make_default_yaml5
-rw-r--r--scripts/newbitmaps/strings/Url.TXT2
2 files changed, 6 insertions, 1 deletions
diff --git a/scripts/newbitmaps/images/make_default_yaml b/scripts/newbitmaps/images/make_default_yaml
index 69772ca1..72c1d20a 100755
--- a/scripts/newbitmaps/images/make_default_yaml
+++ b/scripts/newbitmaps/images/make_default_yaml
@@ -240,8 +240,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"
@@ -249,6 +253,7 @@ add_footer_with_url() {
insert_centered_below "${lc}_model_text" 'hwid'
fi
echo "" >> "$yaml_file"
+ xpad="$old_xpad"
}
add_footer_without_url() {
diff --git a/scripts/newbitmaps/strings/Url.TXT b/scripts/newbitmaps/strings/Url.TXT
index 3d8f0d57..2a576756 100644
--- a/scripts/newbitmaps/strings/Url.TXT
+++ b/scripts/newbitmaps/strings/Url.TXT
@@ -1 +1 @@
-<span color="blue"> http://google.com/chromeos/recovery </span>
+<span color="blue">http://google.com/chromeos/recovery</span>