mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 21:03:14 -05:00
Tweak chip contrast (#5526)
* Set better contrast for chips * Set custom chip colors for Yin Yang
This commit is contained in:
parent
b7547a8458
commit
13d39fc942
4 changed files with 12 additions and 2 deletions
|
@ -32,4 +32,7 @@
|
||||||
|
|
||||||
<attr name="lightSystemBarsOnPrimary" format="reference|boolean"/>
|
<attr name="lightSystemBarsOnPrimary" format="reference|boolean"/>
|
||||||
|
|
||||||
|
<!-- Setting chip color values for specific themes -->
|
||||||
|
<attr name="chipTextColor" format="reference|integer"/>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
<color name="accent_yinyang">#000000</color>
|
<color name="accent_yinyang">#000000</color>
|
||||||
<color name="color_on_secondary_yinyang">#FFFFFF</color>
|
<color name="color_on_secondary_yinyang">#FFFFFF</color>
|
||||||
<color name="ripple_colored_yinyang">#999999</color>
|
<color name="ripple_colored_yinyang">#999999</color>
|
||||||
|
<color name="chip_text_yinyang">#000000</color>
|
||||||
|
|
||||||
<!-- Midnight Dusk Theme -->
|
<!-- Midnight Dusk Theme -->
|
||||||
<color name="accent_midnightdusk">#F02475</color>
|
<color name="accent_midnightdusk">#F02475</color>
|
||||||
|
|
|
@ -187,8 +187,8 @@
|
||||||
<style name="Widget.Tachiyomi.Chip.Action" parent="Widget.MaterialComponents.Chip.Action">
|
<style name="Widget.Tachiyomi.Chip.Action" parent="Widget.MaterialComponents.Chip.Action">
|
||||||
<item name="chipStrokeWidth">1dp</item>
|
<item name="chipStrokeWidth">1dp</item>
|
||||||
<item name="chipStrokeColor">?attr/colorPrimary</item>
|
<item name="chipStrokeColor">?attr/colorPrimary</item>
|
||||||
<item name="chipBackgroundColor">@android:color/transparent</item>
|
<item name="chipBackgroundColor">?attr/chipBackgroundColor</item>
|
||||||
<item name="android:textColor">?attr/colorPrimary</item>
|
<item name="android:textColor">?attr/chipTextColor</item>
|
||||||
<item name="rippleColor">?attr/colorControlHighlight</item>
|
<item name="rippleColor">?attr/colorControlHighlight</item>
|
||||||
|
|
||||||
<!-- Custom chip states -->
|
<!-- Custom chip states -->
|
||||||
|
|
|
@ -54,6 +54,8 @@
|
||||||
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
||||||
<item name="bottomSheetDialogTheme">@style/ThemeOverlay.Tachiyomi.BottomSheetDialog</item>
|
<item name="bottomSheetDialogTheme">@style/ThemeOverlay.Tachiyomi.BottomSheetDialog</item>
|
||||||
<item name="chipStyle">@style/Widget.Tachiyomi.Chip.Action</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="snackbarStyle">@style/Widget.Tachiyomi.Snackbar</item>
|
||||||
<item name="snackbarTextViewStyle">@style/Widget.Tachiyomi.Snackbar.TextView</item>
|
<item name="snackbarTextViewStyle">@style/Widget.Tachiyomi.Snackbar.TextView</item>
|
||||||
<item name="textInputStyle">@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox</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="colorTertiary">@color/color_on_secondary_yinyang</item>
|
||||||
<item name="colorOnTertiary">@color/accent_yinyang</item>
|
<item name="colorOnTertiary">@color/accent_yinyang</item>
|
||||||
<item name="colorControlHighlight">@color/ripple_colored_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>
|
</style>
|
||||||
|
|
||||||
<!--== Midnight Dusk theme ==-->
|
<!--== Midnight Dusk theme ==-->
|
||||||
|
|
Loading…
Reference in a new issue