TunnelEditor: abstract out section font

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2020-03-28 15:00:15 -06:00
parent cd6c2f68ca
commit 0235f19543
5 changed files with 5 additions and 4 deletions

View File

@ -51,7 +51,7 @@
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/interface_title" android:id="@+id/interface_title"
style="@style/TextAppearance.MaterialComponents.Headline6" style="@style/SectionText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/interface_title" android:text="@string/interface_title"

View File

@ -27,7 +27,7 @@
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/peer_title" android:id="@+id/peer_title"
style="@style/TextAppearance.MaterialComponents.Headline6" style="@style/SectionText"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/peer" android:text="@string/peer"

View File

@ -57,7 +57,7 @@
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/interface_title" android:id="@+id/interface_title"
style="@style/TextAppearance.MaterialComponents.Headline6" style="@style/SectionText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="8dp" android:layout_margin="8dp"

View File

@ -35,7 +35,7 @@
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/peer_title" android:id="@+id/peer_title"
style="@style/TextAppearance.MaterialComponents.Headline6" style="@style/SectionText"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="8dp" android:layout_margin="8dp"

View File

@ -54,6 +54,7 @@
</style> </style>
<style name="DetailText" parent="TextAppearance.MaterialComponents.Body1" /> <style name="DetailText" parent="TextAppearance.MaterialComponents.Body1" />
<style name="SectionText" parent="TextAppearance.MaterialComponents.Headline6" />
<style name="TextInputLayoutBase" parent="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"> <style name="TextInputLayoutBase" parent="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
<item name="boxStrokeColor">?attr/colorSecondary</item> <item name="boxStrokeColor">?attr/colorSecondary</item>