LineLoginButtonDefaults
Geometry and typography for LineLoginButton, derived from LINE's own button artwork.
Everything here follows from one number, the button's height, because that is how LINE's template is built: the icon sits in a square the full height of the button, and the guidelines then define the text padding in terms of the speech bubble inside that square (which they call X). The ratios below were measured from the 20dp, 32dp and 44dp buttons in LINE's template rather than guessed:
| Button height | Corner radius | X (bubble width) | Text padding |
|---|---|---|---|
| 44 dp | 6.0 dp | 32.0 dp | 32.5 dp |
| 32 dp | 4.0 dp | 23.0 dp | 24.5 dp |
| 20 dp | 2.5 dp | 15.0 dp | 16.0 dp |
So X ≈ height × 0.727, the corner radius is height / 8, the horizontal text padding is X and the vertical padding is X / 2 — which is exactly what the guidelines ask for.
Properties
Functions
X: the width of the LINE icon's speech bubble at this button height — the measurement the guidelines define the padding and the isolation zone from.
The empty space that must surround the button. Apply it yourself — as padding on the button, or as spacing in the layout around it — and keep other text and graphics out of it.
Left and right padding around the caption: X.
Top and bottom padding around the caption: X / 2.