Skip to content

Commit df8db4f

Browse files
committed
Migrate buttons from AppCompat/MaterialComponents to Material3 styles
- troubleshooting.xml: Widget.AppCompat.Button.Borderless.Colored → Widget.Material3.Button.TextButton - activity_onboarding.xml: Widget.AppCompat.Button.Borderless → Widget.Material3.Button.TextButton - list_item_trackers_header.xml: Theme/Widget.MaterialComponents → Theme/Widget.Material3 https://claude.ai/code/session_01YWBt21ZE6WvhgivEEF6ED2
1 parent 3bd977c commit df8db4f

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/src/main/res/layout/activity_onboarding.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<Button
2727
android:id="@+id/btnPrevious"
28-
style="@style/Widget.AppCompat.Button.Borderless"
28+
style="@style/Widget.Material3.Button.TextButton"
2929
android:layout_width="wrap_content"
3030
android:layout_height="wrap_content"
3131
android:layout_marginStart="16dp"

app/src/main/res/layout/list_item_trackers_header.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@
155155

156156
<com.google.android.material.button.MaterialButton
157157
android:id="@+id/btnAnalyzeTrackers"
158-
android:theme="@style/Theme.MaterialComponents.DayNight"
159-
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
158+
android:theme="@style/Theme.Material3.DayNight"
159+
style="@style/Widget.Material3.Button.OutlinedButton"
160160
android:layout_width="0dp"
161161
android:layout_height="wrap_content"
162162
android:layout_marginTop="12dp"

app/src/main/res/layout/troubleshooting.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
<Button
5555
android:id="@+id/btnBattery"
56-
style="@style/Widget.AppCompat.Button.Borderless.Colored"
56+
style="@style/Widget.Material3.Button.TextButton"
5757
android:layout_width="wrap_content"
5858
android:layout_height="wrap_content"
5959
android:text="@string/troubleshooting_battery_action"
@@ -87,7 +87,7 @@
8787

8888
<Button
8989
android:id="@+id/btnDataSaver"
90-
style="@style/Widget.AppCompat.Button.Borderless.Colored"
90+
style="@style/Widget.Material3.Button.TextButton"
9191
android:layout_width="wrap_content"
9292
android:layout_height="wrap_content"
9393
android:text="@string/troubleshooting_datasaver_action"
@@ -153,7 +153,7 @@
153153

154154
<Button
155155
android:id="@+id/btnVpnSettings"
156-
style="@style/Widget.AppCompat.Button.Borderless.Colored"
156+
style="@style/Widget.Material3.Button.TextButton"
157157
android:layout_width="wrap_content"
158158
android:layout_height="wrap_content"
159159
android:text="@string/troubleshooting_alwayson_action" />

0 commit comments

Comments
 (0)