
Remove the ripple resources and replace them with their system counterparts. This is to remove redundancy in-app and make the widget more consistent with other android widgets.
90 lines
No EOL
4.4 KiB
XML
90 lines
No EOL
4.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources>
|
|
<!-- ANDROID COMPONENT-SPECIFIC STYLES.-->
|
|
|
|
<!--
|
|
A dialog theme that doesn't suck. This is the only non-Material3 usage in the entire
|
|
project since the Material3 dialogs [and especially the button panel] are unusable.
|
|
-->
|
|
<style name="Theme.Auxio.Dialog" parent="ThemeOverlay.Material3.MaterialAlertDialog">
|
|
<item name="android:checkedTextViewStyle">@style/Widget.Auxio.Dialog.CheckedTextView</item>
|
|
<item name="buttonBarPositiveButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog
|
|
</item>
|
|
<item name="buttonBarNegativeButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog
|
|
</item>
|
|
<item name="buttonBarNeutralButtonStyle">@style/Widget.Auxio.Dialog.Button.Flush</item>
|
|
</style>
|
|
|
|
<!-- The style for the checked text view in the custom dialog -->
|
|
<style name="Widget.Auxio.Dialog.CheckedTextView" parent="Widget.Material3.CheckedTextView">
|
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
|
</style>
|
|
|
|
<!-- Custom button style that eliminates the weird margin that the neutral button has -->
|
|
<style name="Widget.Auxio.Dialog.Button.Flush" parent="Widget.Material3.Button.TextButton.Dialog">
|
|
<item name="android:layout_marginStart">0dp</item>
|
|
</style>
|
|
|
|
<!-- Dialog style that properly implements dividers in a NestedScrollView -->
|
|
<style name="Widget.Auxio.Dialog.NestedScrollView" parent="">
|
|
<item name="android:overScrollMode">never</item>
|
|
<item name="android:paddingTop">@dimen/spacing_medium</item>
|
|
</style>
|
|
|
|
<!-- Widget TextView that mimics the main Auxio Primary/Secondary TextViews. -->
|
|
<style name="Widget.Auxio.TextView.AppWidget" parent="Widget.Auxio.TextView.Base">
|
|
<item name="android:singleLine">true</item>
|
|
<item name="android:ellipsize">end</item>
|
|
</style>
|
|
|
|
<!-- Widget TextView that mimics the main Auxio Primary TextView -->
|
|
<style name="Widget.Auxio.TextView.Primary.AppWidget" parent="Widget.Auxio.TextView.AppWidget">
|
|
<item name="android:textAppearance">@style/TextAppearance.Material3.TitleMedium</item>
|
|
</style>
|
|
|
|
<!-- Widget TextView that mimics the main Auxio Secondary TextView -->
|
|
<style name="Widget.Auxio.TextView.Secondary.AppWidget" parent="Widget.Auxio.TextView.AppWidget">
|
|
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
|
<item name="android:textAppearance">@style/TextAppearance.Material3.BodyMedium</item>
|
|
</style>
|
|
|
|
<!-- A variant of PlaybackButton that plays along with AppWidget restrictions. -->
|
|
<style name="Widget.Auxio.MaterialButton.AppWidget" parent="Widget.AppCompat.Button.Borderless">
|
|
<item name="android:minHeight">@dimen/size_btn</item>
|
|
<item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
|
|
</style>
|
|
|
|
<!-- A variant of button that emulates a FAB-ish button that plays along with widget restrictions -->
|
|
<style name="Widget.Auxio.FloatingActionButton.AppWidget" parent="Widget.AppCompat.Button.Borderless">
|
|
<item name="android:minWidth">@dimen/size_btn</item>
|
|
<item name="android:background">@drawable/ui_remote_fab_bg</item>
|
|
<item name="android:tint">?attr/colorOnPrimary</item>
|
|
</style>
|
|
|
|
<!-- Widget panel -->
|
|
<style name="Widget.Auxio.AppWidget.Panel" parent="">
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:padding">@dimen/spacing_medium</item>
|
|
<item name="android:orientation">vertical</item>
|
|
</style>
|
|
|
|
<!--
|
|
Hacks around the incorrectly-sized navigation icon in the Toolbar, changing it from
|
|
56dp to 48dp.
|
|
-->
|
|
<style name="Widget.Auxio.Toolbar.Navigation" parent="Widget.AppCompat.Toolbar.Button.Navigation">
|
|
<item name="android:minWidth">@dimen/size_btn</item>
|
|
</style>
|
|
|
|
<!--
|
|
Hacks around the old overflow button that was deliberately downsized to 36dp
|
|
(presumably for compat with older devices)
|
|
-->
|
|
<style name="Widget.Auxio.Button.Overflow" parent="Widget.AppCompat.ActionButton.Overflow">
|
|
<item name="android:minWidth">@dimen/size_btn</item>
|
|
<item name="android:minHeight">@dimen/size_btn</item>
|
|
<item name="android:paddingStart">0dp</item>
|
|
<item name="android:paddingEnd">0dp</item>
|
|
</style>
|
|
</resources> |