Fix White text in Play Queue in Light Theme, remove shade

This commit is contained in:
krlvm 2021-03-28 21:38:15 +03:00
parent aeccb5b472
commit d6f9aace8c
No known key found for this signature in database
GPG Key ID: B8552A91FD265536
7 changed files with 13 additions and 8 deletions

View File

@ -264,7 +264,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:background="@drawable/player_controls_background"
android:gravity="center" android:gravity="center"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingLeft="16dp" android:paddingLeft="16dp"

View File

@ -556,6 +556,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@id/itemsListControl" android:layout_below="@id/itemsListControl"
android:scrollbars="vertical" android:scrollbars="vertical"
android:theme="@style/PlayQueueItemTextTheme"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/play_queue_item" /> tools:listitem="@layout/play_queue_item" />

View File

@ -105,7 +105,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:background="@drawable/player_controls_background"
android:gravity="center" android:gravity="center"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingLeft="12dp" android:paddingLeft="12dp"

View File

@ -42,7 +42,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="2" android:maxLines="2"
android:textAppearance="@style/ItemStreamSegmentTitle" android:textAppearance="@style/PlayQueueItemTitle"
android:textSize="@dimen/video_item_search_title_text_size" android:textSize="@dimen/video_item_search_title_text_size"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
@ -53,7 +53,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="2dp" android:layout_marginTop="2dp"
android:textAppearance="@style/ItemStreamSegmentSubtitle" android:textAppearance="@style/PlayQueueItemSubtitle"
android:textSize="@dimen/video_item_search_upload_date_text_size" android:textSize="@dimen/video_item_search_upload_date_text_size"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/textViewTitle" app:layout_constraintTop_toBottomOf="@id/textViewTitle"

View File

@ -80,7 +80,7 @@
android:layout_toRightOf="@id/itemThumbnailView" android:layout_toRightOf="@id/itemThumbnailView"
android:ellipsize="end" android:ellipsize="end"
android:singleLine="true" android:singleLine="true"
android:textAppearance="@style/ItemStreamSegmentTitle" android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/video_item_search_title_text_size" android:textSize="@dimen/video_item_search_title_text_size"
tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. " /> tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. " />
@ -95,7 +95,7 @@
android:layout_toRightOf="@id/itemThumbnailView" android:layout_toRightOf="@id/itemThumbnailView"
android:ellipsize="end" android:ellipsize="end"
android:singleLine="true" android:singleLine="true"
android:textAppearance="@style/ItemStreamSegmentSubtitle" android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="@dimen/video_item_search_upload_date_text_size" android:textSize="@dimen/video_item_search_upload_date_text_size"
tools:text="Uploader" /> tools:text="Uploader" />

View File

@ -553,6 +553,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@id/itemsListControl" android:layout_below="@id/itemsListControl"
android:scrollbars="vertical" android:scrollbars="vertical"
android:theme="@style/PlayQueueItemTextTheme"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/play_queue_item" /> tools:listitem="@layout/play_queue_item" />

View File

@ -42,10 +42,15 @@
<item name="colorAccent">@color/dark_settings_accent_color</item> <item name="colorAccent">@color/dark_settings_accent_color</item>
</style> </style>
<style name="ItemStreamSegmentTitle" parent="TextAppearance.AppCompat.Large"> <style name="PlayQueueItemTextTheme">
<item name="android:textAppearanceLarge">@style/PlayQueueItemTitle</item>
<item name="android:textAppearanceSmall">@style/PlayQueueItemSubtitle</item>
</style>
<style name="PlayQueueItemTitle" parent="TextAppearance.AppCompat.Large">
<item name="android:textColor">@color/white</item> <item name="android:textColor">@color/white</item>
</style> </style>
<style name="ItemStreamSegmentSubtitle" parent="TextAppearance.AppCompat.Small"> <style name="PlayQueueItemSubtitle" parent="TextAppearance.AppCompat.Small">
<item name="android:textColor">@color/white_secondary</item> <item name="android:textColor">@color/white_secondary</item>
</style> </style>