Style for Toolbar

This commit is contained in:
Benoit Marty 2021-06-15 10:42:29 +02:00
parent ea26dba1d3
commit e918a6a93b
3 changed files with 4 additions and 17 deletions

View File

@ -41,11 +41,10 @@
<TextView
android:id="@+id/memberProfileNameView"
style="@style/VectorTextView.HeadlineM"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:textAppearance="@style/Vector.Toolbar.Title"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/memberProfileIdView"
app:layout_constraintEnd_toEndOf="parent"

View File

@ -31,11 +31,10 @@
<TextView
android:id="@+id/roomProfileNameView"
style="@style/VectorTextView.HeadlineM"
style="@style/VectorTextView.Title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center"
android:textAppearance="@style/Vector.Toolbar.Title"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/roomProfileAliasView"
app:layout_constraintEnd_toEndOf="parent"

View File

@ -40,22 +40,11 @@
<item name="android:textSize">12sp</item>
</style>
<!-- Action mode text style -->
<style name="Vector.Toolbar.Title" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
<item name="android:textSize">20sp</item>
<item name="android:fontFamily">"sans-serif-medium"</item>
</style>
<style name="Vector.Toolbar.SubTitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Subtitle">
<item name="android:textSize">16sp</item>
<item name="android:fontFamily">"sans-serif"</item>
</style>
<!-- Action mode style -->
<style name="VectorActionMode" parent="Widget.AppCompat.ActionMode">
<item name="background">?android:colorBackground</item>
<item name="titleTextStyle">@style/Vector.Toolbar.Title</item>
<item name="subtitleTextStyle">@style/Vector.Toolbar.SubTitle</item>
<item name="titleTextStyle">@style/VectorTextView.Title</item>
<item name="subtitleTextStyle">@style/VectorTextView.Subtitle</item>
<item name="actionMenuTextColor">?colorOnPrimary</item>
</style>