feat(widget): Add ANC control widget

New home-screen widget that toggles AirPods ANC modes (Off / ANC / Transparency / Adaptive) directly, with six adaptive layouts that pick based on widget size (QUAD_CORNERS, ROW_ICONS, COLUMN_ICONS, GRID_2X2, ROW, COLUMN). Consolidated battery+ANC configuration into a single ViewModel that detects widget type from AppWidgetManager. ACTIVE state uses Material3 secondaryContainer/onSecondaryContainer for guaranteed contrast. Includes live config preview, preview subtitle, stale-selection guard, device-label toggle, and aligned icons with the app's AncModeSelector.
This commit is contained in:
darken
2026-04-17 20:10:48 +02:00
committed by Matthias Urhahn
parent bba9155573
commit 86b685f28b
19 changed files with 1434 additions and 27 deletions
+1
View File
@@ -173,6 +173,7 @@
<string name="widget_config_transparency_label">Background transparency</string>
<string name="widget_config_show_device_label">Show device name</string>
<string name="widget_config_reset_label">Reset to defaults</string>
<string name="widget_config_preview_resize_hint">You can resize the widget after placing it on your hoem screen.</string>
<string name="widget_config_custom_label">Custom</string>
<string name="widget_config_preset_material_you">Material You</string>
<string name="widget_config_preset_dark">Dark</string>