Update Dashboard font sizes to match UX spec
- 16sp for title (medium text)
- 14sp for sub-title (small text)
- 14sp for category title
See bug: #13140648 Settings needs to support the new Quantum Paper theme
Change-Id: I04eb99b4df1ffcb60bb906ed3e1ea588e886dba4
diff --git a/res/layout/dashboard_category.xml b/res/layout/dashboard_category.xml
index 74d7ed5..1099dda 100644
--- a/res/layout/dashboard_category.xml
+++ b/res/layout/dashboard_category.xml
@@ -26,7 +26,7 @@
android:singleLine="true"
android:ellipsize="marquee"
android:gravity="center_vertical"
- android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textAppearance="@style/TextAppearance.Small"
android:textAlignment="viewStart"
/>
diff --git a/res/layout/dashboard_tile.xml b/res/layout/dashboard_tile.xml
index 7b61d17..2a811b2 100644
--- a/res/layout/dashboard_tile.xml
+++ b/res/layout/dashboard_tile.xml
@@ -39,7 +39,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
- android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textAppearance="@style/TextAppearance.Medium"
android:ellipsize="marquee"
android:fadingEdge="horizontal" />
@@ -48,7 +48,7 @@
android:layout_height="wrap_content"
android:layout_below="@android:id/title"
android:layout_alignStart="@android:id/title"
- android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textAppearance="@style/TextAppearance.Small"
android:textColor="?android:attr/textColorSecondary"
/>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index bc584bb..460401e 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -258,7 +258,15 @@
<item name="android:layout">@layout/apn_preference_layout</item>
</style>
- <style name="TextAppearance.Switch" parent="@android:style/TextAppearance.Quantum.Medium">
+ <style name="TextAppearance.Medium" parent="@android:style/TextAppearance.Quantum.Medium">
<item name="android:textSize">16sp</item>
</style>
+
+ <style name="TextAppearance.Small" parent="@android:style/TextAppearance.Quantum.Small">
+ <item name="android:textSize">14sp</item>
+ </style>
+
+ <style name="TextAppearance.Switch" parent="TextAppearance.Medium">
+ </style>
+
</resources>