widgets: backport to <v31
Modify the minimal wdiget so that it can work on Android 11 and below. Was not actually that hard, mostly changing layouts around all things considered. This also splits up the default view and the main widget views, which makes managing UI state much easier.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="Theme.Widget" parent="@android:style/Theme.DeviceDefault.DayNight">
|
||||
<!-- I really don't care enough to make Auxio's theming correspond to widget theming.
|
||||
It doesn't happen on Android 12 anyway, so why bother backporting it when its so
|
||||
useless. -->
|
||||
<item name="colorPrimary">?android:attr/colorAccent</item>
|
||||
<item name="colorSecondary">?android:attr/colorAccent</item>
|
||||
|
||||
<item name="colorSurface">@color/surface_color</item>
|
||||
<item name="android:windowBackground">?attr/colorSurface</item>
|
||||
<item name="android:colorBackground">?attr/colorSurface</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user