Commit 5e10a289 authored by Danny Lin's avatar Danny Lin Committed by Michael Bestas
Browse files

ExactCalculator: Improve typography

- Increase font weight for clarity and emphasis
- Align numbers by making them monospace/tabular with tnum
- Use geometric 6 and 9 glyphs with cv03 and cv04 (specific to Inter font)

Change-Id: I3916c59f92e199988b677a29a61d113c7e09a209
parent f23a2c22
......@@ -19,10 +19,11 @@
<style name="DisplayTextStyle" parent="@android:style/Widget.Material.Light.TextView">
<item name="android:cursorVisible">false</item>
<item name="android:fontFamily">sans-serif-light</item>
<item name="android:fontFamily">sans-serif</item>
<item name="android:includeFontPadding">false</item>
<item name="android:gravity">bottom|end</item>
<item name="android:textAlignment">viewEnd</item>
<item name="android:fontFeatureSettings">tnum, cv03, cv04</item>
</style>
<style name="DisplayTextStyle.Formula">
......@@ -34,6 +35,7 @@
<item name="minTextSize">@dimen/formula_min_textsize</item>
<item name="maxTextSize">@dimen/formula_max_textsize</item>
<item name="stepTextSize">@dimen/formula_step_textsize</item>
<item name="android:fontFeatureSettings">tnum, cv03, cv04</item>
</style>
<style name="DisplayTextStyle.Result">
......@@ -43,6 +45,7 @@
<item name="android:paddingEnd">@dimen/result_padding_end</item>
<item name="android:gravity">bottom</item>
<item name="android:textSize">@dimen/result_textsize</item>
<item name="android:fontFeatureSettings">tnum, cv03, cv04</item>
</style>
<style name="HistoryItemTextStyle" parent="DisplayTextStyle">
......@@ -59,7 +62,7 @@
<item name="android:layout_width">0dip</item>
<item name="android:layout_height">0dip</item>
<item name="android:background">@drawable/pad_button_background</item>
<item name="android:fontFamily">sans-serif-light</item>
<item name="android:fontFamily">sans-serif</item>
<item name="android:gravity">center</item>
<item name="android:includeFontPadding">false</item>
<item name="android:minWidth">0dip</item>
......@@ -67,6 +70,7 @@
<item name="android:onClick">onButtonClick</item>
<item name="android:textAllCaps">false</item>
<item name="android:textColor">@color/pad_button_text_color</item>
<item name="android:fontFeatureSettings">tnum, cv03, cv04</item>
<!-- Attributes from androidx.appcompat.gridlayout -->
<item name="layout_gravity">fill</item>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment