NaverLoginButtonDefaults
object NaverLoginButtonDefaults
Geometry and typography for NaverLoginButton, measured off NAVER's own button artwork.
Everything that scales follows from one number, the button's height, so the mark's aspect ratio and the spacing around it hold at any size. The ratios below come from the H48 files in NAVER's asset pack, which are drawn at 4x — a 192 px-tall PNG is a 48 dp button, so every pixel measurement divides by four:
| Measured from | Pixels (4x) | dp at H48 | Ratio |
|---|---|---|---|
..._green_icon_H48.png, mark bounding box | 72 | 18 | height × 18/48 |
..._green_wide_H48.png, mark's left inset | 80 | 20 | height × 20/48 |
| The guide's centred-layout figure | 32 | 8 | height × 8/48 |
..._green_wide_H48.png, Hangul advance | 58 | 14.5 | height × 14.5/48 |
The two numbers that are not ratios
NAVER hand-tunes its H56 artwork rather than scaling the H48 one — the mark goes 18 → 20 dp, the label 14.5 → 15.3 dp — but the corner radius stays at 32 px and the border at 4 px in both, so those two are constants here rather than fractions of the height. Deriving them from the height would contradict the only two files NAVER publishes.