Skip to content

Commit b2197e4

Browse files
authored
Migrate to Material Design 3 and AndroidX preferences
2 parents ec9e7d3 + 069d4ca commit b2197e4

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

TODO.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,25 @@ If revisited later, start by deciding whether the desired goal is:
105105

106106
- just to reduce cross-app cache bleed, or
107107
- to redesign tracker attribution so "per-app blocking" is backed by per-app evidence.
108+
109+
## Remaining Material 3 migration items
110+
111+
The core M3 migration is complete (themes, switches, settings with MaterialToolbar, FABs, tabs). The following are cosmetic items that still reference AppCompat/MaterialComponents but work correctly:
112+
113+
### TextAppearance references (~16 occurrences)
114+
- `traffic.xml` — 8 uses of `Base.TextAppearance.AppCompat.Small` → should be `TextAppearance.Material3.BodySmall`
115+
- `item_onboarding.xml` / `item_onboarding_blocking_mode.xml` — uses of `TextAppearance.AppCompat.Large`, `.Body1`, `.Caption` → should be `TextAppearance.Material3.HeadlineSmall`, `.BodyLarge`, `.LabelSmall`
116+
117+
### Button styles (4 buttons)
118+
- `activity_onboarding.xml:28``Widget.AppCompat.Button.Borderless``Widget.Material3.Button.TextButton`
119+
- `troubleshooting.xml:56,90,156``Widget.AppCompat.Button.Borderless.Colored``Widget.Material3.Button.TextButton`
120+
121+
### Layout-level theme references
122+
- `traffic.xml:5``Theme.AppCompat.Light.DarkActionBar` on a RelativeLayout
123+
- `list_item_trackers_header.xml:158-159``Theme.MaterialComponents.DayNight` and `Widget.MaterialComponents.Button.OutlinedButton``Theme.Material3.DayNight` and `Widget.Material3.Button.OutlinedButton`
124+
125+
### AlertDialog → MaterialAlertDialogBuilder (12 occurrences)
126+
Uses of `androidx.appcompat.app.AlertDialog.Builder` across ActivityMain, ActivityLog, ActivitySettings, ActivityForwarding, ActivityBlocklists, ActionsFragment, and Util. Migrating to `com.google.android.material.dialog.MaterialAlertDialogBuilder` would give M3-styled dialogs (rounded corners, M3 color tokens).
127+
128+
### Action bar styles in styles.xml
129+
`ActionBar.Red`, `ActionBarTheme.Red`, `Toolbar.Red`, `ActionBarTitleText` still reference AppCompat parents (`Widget.AppCompat.ActionBar.Solid`, `TextAppearance.AppCompat.Widget.ActionBar.Title`). These are used by the main screen's legacy action bar and work correctly but aren't pure M3.

0 commit comments

Comments
 (0)