widget: make small/wide widgets stylistic

Update the small/wide widgets to show just the cover art and controls.
This is for two reasons:
1. The old layouts wasted space, which didn't make them look very good
2. I want to add a more Material3-eque "Stylistic" widget option for
the people who want them. Doing this allows me to pack that option into
the widget without having to add a new option.
This commit is contained in:
OxygenCobalt
2021-11-14 09:00:54 -07:00
parent f66dea9469
commit d4fa52ee13
15 changed files with 240 additions and 181 deletions
@@ -24,7 +24,7 @@ import org.oxycblt.auxio.R
/**
* An enum for determining what items to show in a given list.
* Note: **DO NOT RE-ARRANGE THE ENUM**. The ordinals are used to store library tabs, so doing
* changing them would also change the meaning.
* changing them would also change the meaning of tab instances.
* @author OxygenCobalt
*/
enum class DisplayMode(@StringRes val string: Int) {
@@ -48,8 +48,7 @@ import org.oxycblt.auxio.util.logD
*
* - Large widgets will show cover art and all controls
* - Tall and thin widgets will show cover art and three controls
* - Wide and short widgets will show cover art and all controls in a compact manner
* - Small widgets will only show text and three controls
* - Wide or small widgets will display a "Stylistic" view with controls and the cover art
* - Tiny widgets [e.g landscape mode] will show cover art, text, and a play/pause control.
*
* There are some minor problems with this implementation [notably UI jittering when the widget