0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-20 12:12:15 +02:00

Use theme attributes instead of referencing TextAppearance styles directly

This commit is contained in:
cketti 2023-07-12 18:20:30 +02:00
parent 65c7d4bddf
commit 5ddffb1928
10 changed files with 18 additions and 18 deletions

View File

@ -16,7 +16,7 @@
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorPrimary"
tools:text="Android Jetpack libraries" />
@ -25,7 +25,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textAppearance="?android:attr/textAppearanceSmall"
tools:text="Apache License, Version 2.0" />
</LinearLayout>

View File

@ -13,7 +13,7 @@
android:paddingEnd="4dp"
android:paddingBottom="4dp"
android:text="•"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textAppearance="?attr/textAppearanceBody2"
tools:ignore="HardcodedText" />
<TextView
@ -25,6 +25,6 @@
android:paddingStart="0dp"
android:paddingEnd="16dp"
android:paddingBottom="4dp"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textAppearance="?attr/textAppearanceBody2"
tools:text="Bug fixes and minor improvements" />
</LinearLayout>

View File

@ -15,7 +15,7 @@
android:paddingTop="8dp"
android:paddingEnd="8dp"
android:paddingBottom="8dp"
android:textAppearance="@style/TextAppearance.AppCompat.Title"
android:textAppearance="?attr/textAppearanceHeadline6"
tools:text="Version 1.0.0" />
<TextView
@ -26,6 +26,6 @@
android:paddingTop="8dp"
android:paddingEnd="16dp"
android:paddingBottom="8dp"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textAppearance="?android:attr/textAppearanceSmall"
tools:text="2021-01-21" />
</LinearLayout>

View File

@ -26,7 +26,7 @@
android:paddingTop="16dp"
android:paddingBottom="8dp"
android:text="@string/about_title"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textAppearance="?attr/textAppearanceSubtitle2"
android:textColor="?attr/colorAccent" />
<LinearLayout
@ -197,7 +197,7 @@
android:paddingTop="16dp"
android:paddingBottom="8dp"
android:text="@string/about_project_title"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textAppearance="?attr/textAppearanceSubtitle2"
android:textColor="?attr/colorAccent" />
<LinearLayout
@ -368,7 +368,7 @@
android:paddingTop="16dp"
android:paddingBottom="8dp"
android:text="@string/about_libraries"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textAppearance="?attr/textAppearanceSubtitle2"
android:textColor="?attr/colorAccent" />
<androidx.recyclerview.widget.RecyclerView

View File

@ -22,7 +22,7 @@
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textAppearance="?attr/textAppearanceBody1"
android:textColor="?android:attr/textColorPrimary"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toTopOf="@+id/email"
@ -40,7 +40,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textAppearance="?attr/textAppearanceBody2"
android:textColor="?android:attr/textColorSecondary"
android:layout_marginStart="16dp"
app:layout_constrainedWidth="true"

View File

@ -97,7 +97,7 @@
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textAppearance="?attr/textAppearanceBody1"
android:textColor="?android:attr/textColorPrimary"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toStartOf="@+id/date"
@ -114,7 +114,7 @@
android:layout_marginEnd="4dp"
android:ellipsize="none"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption"
android:textAppearance="?attr/textAppearanceCaption"
android:textColor="?android:attr/textColorSecondary"
app:layout_constraintBaseline_toBaselineOf="@+id/from"
app:layout_constraintEnd_toStartOf="@+id/menu_primary_action"

View File

@ -10,7 +10,7 @@
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textAppearance="?attr/textAppearanceBody2"
android:textColor="?android:attr/textColorSecondary"
tools:text="to me" />
@ -20,7 +20,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textAppearance="?attr/textAppearanceBody2"
android:textColor="?attr/colorAccent"
tools:text="+2" />

View File

@ -35,7 +35,7 @@
android:ellipsize="end"
android:gravity="right"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textAppearance="?attr/textAppearanceBody2"
android:textColor="?attr/messageListSwipeIconTint"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="parent"

View File

@ -35,7 +35,7 @@
android:ellipsize="end"
android:gravity="left"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textAppearance="?attr/textAppearanceBody2"
android:textColor="?attr/messageListSwipeIconTint"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="parent"

View File

@ -12,6 +12,6 @@
android:paddingRight="16dp"
android:paddingTop="4dp"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textAppearance="?attr/textAppearanceSubtitle2"
android:textColor="?attr/colorAccent"
tools:text="Divider" />