playback: rework playback icon visibility
Add a circular indicator to playback icons. Sometimes it can be too difficult to tell apart the active and inactive states of the shuffle/loop icons. However, there is really no good way to improve the contrast on these icons without some kind of muddled UX fragmentation, or god-awful design. Try to settle on the okay-est version, which is to use colorPrimary with a dot indicator on views we control, and use a more muddled semi-transparent icon on views we don't control, like notifications and widgets.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<declare-styleable name="PlaybackButton">
|
||||
<attr name="hasIndicator" format="boolean" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="IntListPreference">
|
||||
<attr name="entries" format="reference" />
|
||||
<attr name="entryValues" format="reference" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
@@ -16,11 +16,11 @@
|
||||
<dimen name="size_cover_mid_huge">192dp</dimen>
|
||||
<dimen name="size_cover_huge">256dp</dimen>
|
||||
|
||||
<dimen name="size_small_unb_ripple">20dp</dimen>
|
||||
<dimen name="size_unb_ripple">24dp</dimen>
|
||||
<dimen name="size_small_unbounded_ripple">20dp</dimen>
|
||||
<dimen name="size_large_unbounded_ripple">24dp</dimen>
|
||||
|
||||
<dimen name="size_track_number">32dp</dimen>
|
||||
<dimen name="size_play_fab_icon">32dp</dimen>
|
||||
<dimen name="size_playback_icon">32dp</dimen>
|
||||
|
||||
<dimen name="text_size_ext_label_larger">16sp</dimen>
|
||||
<dimen name="text_size_ext_title_mid_large">18sp</dimen>
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Preference values -->
|
||||
<declare-styleable name="IntListPreference">
|
||||
<attr name="entries" format="reference" />
|
||||
<attr name="entryValues" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
<string-array name="entries_theme">
|
||||
<item>@string/set_theme_auto</item>
|
||||
<item>@string/set_theme_day</item>
|
||||
|
||||
@@ -60,13 +60,18 @@
|
||||
<item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
|
||||
</style>
|
||||
|
||||
<!-- Widget button that follows the weird widget restrictions -->
|
||||
<style name="Widget.Auxio.Button.AppWidget" parent="Widget.Auxio.Button.AppWidget.V31">
|
||||
<!-- A variant of PlaybackButton that plays along with AppWidget restrictions. -->
|
||||
<style name="Widget.Auxio.PlaybackButton.AppWidget" parent="Widget.Auxio.Button.AppWidget.V31">
|
||||
<item name="android:minHeight">@dimen/size_btn_small</item>
|
||||
<item name="android:scaleType">fitCenter</item>
|
||||
<item name="android:padding">@dimen/spacing_small</item>
|
||||
</style>
|
||||
|
||||
<!-- A variant of PlaybackButton that is intended for buttons that show indicators -->
|
||||
<style name="Widget.Auxio.PlaybackButton.Indicator.AppWidget" parent="Widget.Auxio.Button.AppWidget.V31">
|
||||
<item name="android:minHeight">@dimen/size_btn_small</item>
|
||||
</style>
|
||||
|
||||
<!-- Widget panel -->
|
||||
<style name="Widget.Auxio.AppWidget.Panel" parent="">
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
|
||||
@@ -152,11 +152,7 @@
|
||||
<!-- BUTTON STYLES -->
|
||||
|
||||
<style name="Widget.Auxio.Button.Unbounded" parent="Widget.AppCompat.Button.Borderless">
|
||||
<item name="android:minHeight">@dimen/size_btn_small</item>
|
||||
<item name="android:minWidth">@dimen/size_btn_small</item>
|
||||
<item name="android:background">@drawable/ui_unbounded_ripple</item>
|
||||
<item name="android:scaleType">fitCenter</item>
|
||||
<item name="android:padding">@dimen/spacing_small</item>
|
||||
<item name="android:padding">0dp</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Auxio.Button.Primary" parent="Widget.Material3.Button">
|
||||
@@ -168,7 +164,7 @@
|
||||
</style>
|
||||
|
||||
<style name="Widget.Auxio.FloatingActionButton.PlayPause" parent="Widget.Material3.FloatingActionButton.Secondary">
|
||||
<item name="maxImageSize">@dimen/size_play_fab_icon</item>
|
||||
<item name="maxImageSize">@dimen/size_playback_icon</item>
|
||||
<item name="fabCustomSize">@dimen/size_btn_large</item>
|
||||
|
||||
<!--
|
||||
@@ -177,7 +173,6 @@
|
||||
-->
|
||||
<item name="android:elevation">0dp</item>
|
||||
<item name="elevation">0dp</item>
|
||||
<item name="shapeAppearanceOverlay">@style/ShapeAppearance.Auxio.FloatingActionButton.PlayPause</item>
|
||||
</style>
|
||||
|
||||
<style name="ShapeAppearance.Auxio.FloatingActionButton.PlayPause" parent="">
|
||||
|
||||
Reference in New Issue
Block a user