bmpblk: Update canvas scale and bitmap dimensions
Update SCALE_BASE and bitmap dimensions to match the 1080x1080 canvas
coordinate system and component geometry in depthcharge:
- Update SCALE_BASE from 1000 to 1080 in build.py.
- Update the text heights to the font sizes in the design times
LINE_HEIGHT_RATIO (1.172): 59 for the title (50px), 23 for the
default body text (20px), and 21 for the button text (18px). Keep the
error text height at 24 until the error dialog is redesigned.
- Merge the h1_button, h2_button, h3_button and language styles into
one button style, since all buttons, including the language dropdown,
use the same text size in the design.
- Update title, desc, and one_line_desc max_width to 936 (1080 - 72 * 2)
and footer_nav max_width to 426.
- Update ic_globe height to 24.
- Lower dpi of geralt and staryu to 104 and rauru to 88, so that the
larger bitmaps fit in the RO CBFS.
BUG=b:551743258
BRANCH=none
TEST=BOARD={geralt,rauru,staryu} make
TAG=agy
CONV=4d411a1c-369f-4fd3-ac8a-7bd726afa3b5
Cq-Depend: chromium:8485907
Change-Id: I236a194d90bb54b0f3fa50d7fb5df1d2ef5bbab6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/bmpblk/+/8482775
Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org>
Tested-by: Yu-Ping Wu <yupingso@chromium.org>
Commit-Queue: Yu-Ping Wu <yupingso@chromium.org>
GitOrigin-RevId: 9eb14319880673ba6add9cbd339fb750ebdd8731
3 files changed
tree: cdbe38150262f1458b40025936a3cdc5fa5cd5ca
-
bmpblk/