about: redesign ui

Completely redesign the about UI to remove its dependency on
bottomsheetdialogfragment. That object is such a hassle to deal with an
is the epitome of everything wrong with this horrible platform. This
design will enable further about extensions in the future.
This commit is contained in:
OxygenCobalt
2021-06-05 14:40:50 -06:00
parent 9aabfe2294
commit c54790e24c
12 changed files with 226 additions and 220 deletions
+1
View File
@@ -7,6 +7,7 @@
<color name="control_color">#202020</color>
<color name="nav_color">#01fafafa</color>
<!--
Base color set derived from Music Player GO.
https://github.com/enricocid/Music-Player-GO
+1 -1
View File
@@ -35,7 +35,7 @@
<dimen name="size_scroll_thumb">48dp</dimen>
<dimen name="size_clear">32dp</dimen>
<dimen name="size_app_icon">60dp</dimen>
<dimen name="size_app_icon">50dp</dimen>
<!-- Text Size Namespace | Text Sizes -->
<dimen name="text_size_min">10sp</dimen>
+3 -1
View File
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MissingTranslation">
<!-- Info namespace | App labels -->
<string name="info_app_desc">A simple, rational music player for android.</string>
<string name="info_channel_name">Music Playback</string>
@@ -155,6 +156,7 @@
<string name="format_next_from">Next From: %s</string>
<string name="format_songs_loaded">Songs loaded: %d</string>
<plurals name="format_song_count">
<item quantity="one">%d Song</item>
<item quantity="other">%d Songs</item>
+2 -12
View File
@@ -5,6 +5,8 @@
<!-- Template theme that handles edge-to-edge on other styles variants -->
<style name="Theme.Template" parent="Theme.Master" />
<!-- Refactor styles again to move more stuff into this -->
<!-- Base theme -->
<style name="Theme.Base" parent="Theme.Template">
<item name="android:windowBackground">?attr/colorSurface</item>
@@ -205,18 +207,6 @@
<item name="android:background">@drawable/ui_small_unbounded_ripple</item>
</style>
<!-- Bottomsheet style -->
<style name="Theme.BottomSheetFix" parent="@style/Theme.Design.BottomSheetDialog">
<item name="android:windowIsFloating">false</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="bottomSheetStyle">@style/Theme.BottomSheetHeightFix</item>
</style>
<!-- Fix to make the bottomsheet go to full height instantly. -->
<style name="Theme.BottomSheetHeightFix" parent="Widget.Design.BottomSheet.Modal">
<item name="behavior_peekHeight">500dp</item>
</style>
<!-- Base style for the material buttons -->
<style name="Widget.MaterialComponents.Button.Base" parent="@style/Widget.MaterialComponents.Button.TextButton">
<item name="android:layout_width">0dp</item>