Change appearance of thread count in message list

This commit is contained in:
cketti 2023-02-15 21:17:58 +01:00
parent 36b5e3eae3
commit 505ec0243a
3 changed files with 14 additions and 16 deletions

View file

@ -79,14 +79,16 @@
<TextView
android:id="@+id/subject"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:ellipsize="marquee"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.K9.MediumSmall"
android:textColor="?android:attr/textColorPrimary"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toStartOf="@+id/thread_count"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintHorizontal_chainStyle="packed"
app:layout_constraintStart_toEndOf="@+id/status"
app:layout_constraintTop_toTopOf="@+id/top_guideline"
tools:text="Subject" />
@ -95,16 +97,15 @@
android:id="@+id/thread_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:background="?attr/messageListThreadCountBackground"
android:layout_marginStart="6dp"
android:focusable="false"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:paddingBottom="1dp"
android:textAppearance="@style/TextAppearance.K9.MediumSmall"
android:textColor="?attr/messageListThreadCountForegroundColor"
android:textAppearance="@style/TextAppearance.K9.Small"
android:textColor="?attr/messageListThreadCountTextColor"
app:layout_constraintBaseline_toBaselineOf="@+id/subject"
app:layout_constraintEnd_toStartOf="@+id/attachment"
app:layout_constraintTop_toTopOf="@+id/top_guideline"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/subject"
app:layout_goneMarginEnd="8dp"
tools:text="3" />
<ImageView

View file

@ -75,8 +75,7 @@
<attr name="messageListRegularItemBackgroundColor" format="reference|color"/>
<attr name="messageListReadItemBackgroundColor" format="reference|color"/>
<attr name="messageListUnreadItemBackgroundColor" format="reference|color"/>
<attr name="messageListThreadCountForegroundColor" format="reference|color"/>
<attr name="messageListThreadCountBackground" format="reference|color"/>
<attr name="messageListThreadCountTextColor" format="reference|color"/>
<attr name="messageListActiveItemBackgroundColor" format="reference|color"/>
<attr name="messageListActiveItemBackgroundAlphaFraction" format="fraction"/>
<attr name="messageListActiveItemBackgroundAlphaBackground" format="reference|color"/>

View file

@ -97,8 +97,7 @@
<item name="messageListRegularItemBackgroundColor">?android:attr/windowBackground</item>
<item name="messageListReadItemBackgroundColor">#ffd8d8d8</item>
<item name="messageListUnreadItemBackgroundColor">?attr/messageListRegularItemBackgroundColor</item>
<item name="messageListThreadCountForegroundColor">?android:attr/colorBackground</item>
<item name="messageListThreadCountBackground">@drawable/thread_count_box_light</item>
<item name="messageListThreadCountTextColor">?android:attr/textColorSecondary</item>
<item name="messageListActiveItemBackgroundColor">?attr/colorSecondaryVariant</item>
<item name="messageListActiveItemBackgroundAlphaFraction">60%</item>
<item name="messageListActiveItemBackgroundAlphaBackground">?attr/colorSurface</item>
@ -259,8 +258,7 @@
<item name="messageListRegularItemBackgroundColor">?android:attr/windowBackground</item>
<item name="messageListReadItemBackgroundColor">?attr/messageListRegularItemBackgroundColor</item>
<item name="messageListUnreadItemBackgroundColor">#ff505050</item>
<item name="messageListThreadCountForegroundColor">?android:attr/colorBackground</item>
<item name="messageListThreadCountBackground">@drawable/thread_count_box_dark</item>
<item name="messageListThreadCountTextColor">?android:attr/textColorSecondary</item>
<item name="messageListActiveItemBackgroundColor">?attr/colorSecondaryVariant</item>
<item name="messageListActiveItemBackgroundAlphaFraction">50%</item>
<item name="messageListActiveItemBackgroundAlphaBackground">?attr/colorSurface</item>