summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-28 15:00:15 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-28 16:26:22 -0600
commit0235f19543b25c35b97a569b5b1922bd1e18a186 (patch)
treefa06002cd5da2312e83d395a733835bbe40b3637 /ui/src/main
parentcd6c2f68ca6e9bd004765fdbb716a82026fe603f (diff)
TunnelEditor: abstract out section font
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src/main')
-rw-r--r--ui/src/main/res/layout/tunnel_detail_fragment.xml2
-rw-r--r--ui/src/main/res/layout/tunnel_detail_peer.xml2
-rw-r--r--ui/src/main/res/layout/tunnel_editor_fragment.xml2
-rw-r--r--ui/src/main/res/layout/tunnel_editor_peer.xml2
-rw-r--r--ui/src/main/res/values/styles.xml1
5 files changed, 5 insertions, 4 deletions
diff --git a/ui/src/main/res/layout/tunnel_detail_fragment.xml b/ui/src/main/res/layout/tunnel_detail_fragment.xml
index 8e2b8e20..ff47639d 100644
--- a/ui/src/main/res/layout/tunnel_detail_fragment.xml
+++ b/ui/src/main/res/layout/tunnel_detail_fragment.xml
@@ -51,7 +51,7 @@
<com.google.android.material.textview.MaterialTextView
android:id="@+id/interface_title"
- style="@style/TextAppearance.MaterialComponents.Headline6"
+ style="@style/SectionText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/interface_title"
diff --git a/ui/src/main/res/layout/tunnel_detail_peer.xml b/ui/src/main/res/layout/tunnel_detail_peer.xml
index ac1a9660..65b03a62 100644
--- a/ui/src/main/res/layout/tunnel_detail_peer.xml
+++ b/ui/src/main/res/layout/tunnel_detail_peer.xml
@@ -27,7 +27,7 @@
<com.google.android.material.textview.MaterialTextView
android:id="@+id/peer_title"
- style="@style/TextAppearance.MaterialComponents.Headline6"
+ style="@style/SectionText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/peer"
diff --git a/ui/src/main/res/layout/tunnel_editor_fragment.xml b/ui/src/main/res/layout/tunnel_editor_fragment.xml
index 1cc5aa7a..7e568f5b 100644
--- a/ui/src/main/res/layout/tunnel_editor_fragment.xml
+++ b/ui/src/main/res/layout/tunnel_editor_fragment.xml
@@ -57,7 +57,7 @@
<com.google.android.material.textview.MaterialTextView
android:id="@+id/interface_title"
- style="@style/TextAppearance.MaterialComponents.Headline6"
+ style="@style/SectionText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
diff --git a/ui/src/main/res/layout/tunnel_editor_peer.xml b/ui/src/main/res/layout/tunnel_editor_peer.xml
index cac20e30..9d1c7cc4 100644
--- a/ui/src/main/res/layout/tunnel_editor_peer.xml
+++ b/ui/src/main/res/layout/tunnel_editor_peer.xml
@@ -35,7 +35,7 @@
<com.google.android.material.textview.MaterialTextView
android:id="@+id/peer_title"
- style="@style/TextAppearance.MaterialComponents.Headline6"
+ style="@style/SectionText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="8dp"
diff --git a/ui/src/main/res/values/styles.xml b/ui/src/main/res/values/styles.xml
index c906068a..a4004966 100644
--- a/ui/src/main/res/values/styles.xml
+++ b/ui/src/main/res/values/styles.xml
@@ -54,6 +54,7 @@
</style>
<style name="DetailText" parent="TextAppearance.MaterialComponents.Body1" />
+ <style name="SectionText" parent="TextAppearance.MaterialComponents.Headline6" />
<style name="TextInputLayoutBase" parent="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
<item name="boxStrokeColor">?attr/colorSecondary</item>