Skip to content

Commit

Permalink
Android 5: fix color for show status and stream search configure button
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Mar 7, 2024
1 parent e627e05 commit 7f20f9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Version 72
----------
*in development*

* 🔨 Android 5: use correct color for show status and stream search configure button.

#### 72.0.4 🧪
*2024-02-29*

Expand Down
6 changes: 5 additions & 1 deletion app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@
<style name="TextAppearance.SeriesGuide.EmptyState" parent="TextAppearance.SeriesGuide.Headline6.Dim" />

<!-- To apply on top of existing text appearance using Spans. -->
<!-- Because pre API 23 does not support theme dependent color attributes in XML,
using ?attr/colorSecondary directly instead of sg_text_color_accent.xml. -->
<style name="ThemeOverlay.SeriesGuide.TextAppearance.Accent" parent="">
<item name="android:textColor">@color/sg_text_color_accent</item>
<item name="android:textColor">?attr/colorSecondary</item>
</style>
<style name="ThemeOverlay.SeriesGuide.TextAppearance.Secondary" parent="">
<item name="android:textColor">?android:textColorSecondary</item>
Expand All @@ -118,6 +120,8 @@
</style>

<style name="Widget.SeriesGuide.Button.IconButton.Outlined" parent="Widget.Material3.Button.IconButton.Outlined">
<!-- Pre API 23 does not support theme-dependent color in referenced style, so set iconTint directly. -->
<item name="iconTint">?attr/colorOnSurfaceVariant</item>
<item name="materialThemeOverlay">@style/ThemeOverlay.SeriesGuide.Button.Outlined</item>
</style>

Expand Down

0 comments on commit 7f20f9c

Please sign in to comment.