Tweak chip contrast (#5526)

* Set better contrast for chips

* Set custom chip colors for Yin Yang
This commit is contained in:
Soitora 2021-07-11 21:45:53 +02:00 committed by GitHub
parent b7547a8458
commit 13d39fc942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 2 deletions

View File

@ -32,4 +32,7 @@
<attr name="lightSystemBarsOnPrimary" format="reference|boolean"/>
<!-- Setting chip color values for specific themes -->
<attr name="chipTextColor" format="reference|integer"/>
</resources>

View File

@ -30,6 +30,7 @@
<color name="accent_yinyang">#000000</color>
<color name="color_on_secondary_yinyang">#FFFFFF</color>
<color name="ripple_colored_yinyang">#999999</color>
<color name="chip_text_yinyang">#000000</color>
<!-- Midnight Dusk Theme -->
<color name="accent_midnightdusk">#F02475</color>

View File

@ -187,8 +187,8 @@
<style name="Widget.Tachiyomi.Chip.Action" parent="Widget.MaterialComponents.Chip.Action">
<item name="chipStrokeWidth">1dp</item>
<item name="chipStrokeColor">?attr/colorPrimary</item>
<item name="chipBackgroundColor">@android:color/transparent</item>
<item name="android:textColor">?attr/colorPrimary</item>
<item name="chipBackgroundColor">?attr/chipBackgroundColor</item>
<item name="android:textColor">?attr/chipTextColor</item>
<item name="rippleColor">?attr/colorControlHighlight</item>
<!-- Custom chip states -->

View File

@ -54,6 +54,8 @@
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
<item name="bottomSheetDialogTheme">@style/ThemeOverlay.Tachiyomi.BottomSheetDialog</item>
<item name="chipStyle">@style/Widget.Tachiyomi.Chip.Action</item>
<item name="chipTextColor">?android:attr/textColorPrimary</item>
<item name="chipBackgroundColor">?attr/colorControlHighlight</item>
<item name="snackbarStyle">@style/Widget.Tachiyomi.Snackbar</item>
<item name="snackbarTextViewStyle">@style/Widget.Tachiyomi.Snackbar.TextView</item>
<item name="textInputStyle">@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox</item>
@ -119,6 +121,10 @@
<item name="colorTertiary">@color/color_on_secondary_yinyang</item>
<item name="colorOnTertiary">@color/accent_yinyang</item>
<item name="colorControlHighlight">@color/ripple_colored_yinyang</item>
<!-- Themes -->
<item name="chipTextColor">@color/color_on_secondary_yinyang</item>
<item name="chipBackgroundColor">@color/accent_yinyang</item>
</style>
<!--== Midnight Dusk theme ==-->