widgets: add minimal widget [#8]
Add the first widget implementation, the minimal widget. This took a good 2 days of hacking and frustration to get the first prototype working. And even then, its currently scoped to android 12 until I'm able to port them. The implementation is still quite rough, but should become manageable over time. More widgets will come.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!--
|
||||
Widgets are limited to android 12 until I can find an okay-ish way to backport them.
|
||||
-->
|
||||
<bool name="widgets_supported">true</bool>
|
||||
</resources>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="Theme.Widget" parent="@android:style/Theme.DeviceDefault.DayNight">
|
||||
<item name="colorPrimary">?android:attr/colorAccent</item>
|
||||
<item name="colorSecondary">?android:attr/colorAccent</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user