Skip to content

Commit 28a8d53

Browse files
committed
Update UI elements
1 parent 2a6b77c commit 28a8d53

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

app/src/main/java/de/dertyp7214/rboardpatcher/adapter/MainOptionAdapter.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class MainOptionAdapter(
3838
}
3939
else{
4040
holder.root.setBackgroundResource(R.drawable.color_surface_overlay_background_top)
41-
4241
}
4342
}
4443
list.lastIndex -> {

app/src/main/java/de/dertyp7214/rboardpatcher/adapter/PatchAdapter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ class PatchAdapter(
107107
if (list.size == 1){
108108
holder.root.setBackgroundResource(R.drawable.color_surface_overlay_background_rounded)
109109
val param = holder.root.layoutParams as ViewGroup.MarginLayoutParams
110-
param.setMargins(16.dpToPxRounded(context), 0.dpToPxRounded(context), 16.dpToPxRounded(context), 0.dpToPxRounded(context))
110+
param.setMargins(16.dpToPxRounded(context), 4.dpToPxRounded(context), 16.dpToPxRounded(context), 0.dpToPxRounded(context))
111111
holder.root.layoutParams = param
112112

113113
}
114114
else{
115115
holder.root.setBackgroundResource(R.drawable.color_surface_overlay_background_top)
116116
val param = holder.root.layoutParams as ViewGroup.MarginLayoutParams
117-
param.setMargins(16.dpToPxRounded(context), 0.dpToPxRounded(context), 16.dpToPxRounded(context), 0.dpToPxRounded(context))
117+
param.setMargins(16.dpToPxRounded(context), 4.dpToPxRounded(context), 16.dpToPxRounded(context), 0.dpToPxRounded(context))
118118
holder.root.layoutParams = param
119119

120120
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
android:layout_marginBottom="32dp"
171171
android:translationZ="0dp"
172172
app:cardBackgroundColor="?android:attr/colorBackground"
173-
app:cardCornerRadius="@dimen/roundCorners"
173+
app:cardCornerRadius="20dp"
174174
app:layout_constraintBottom_toBottomOf="parent"
175175
app:layout_constraintEnd_toEndOf="parent"
176176
app:layout_constraintStart_toStartOf="parent"

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

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

105105
<com.google.android.material.button.MaterialButton
106106
android:id="@+id/ok"
107-
style="@style/Widget.Material3Expressive.Button.TextButton.Dialog"
107+
style="@style/Widget.Material3Expressive.Button"
108108
android:layout_width="wrap_content"
109109
android:layout_height="wrap_content"
110110
android:layout_margin="5dp"

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

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

9292
<com.google.android.material.button.MaterialButton
9393
android:id="@+id/ok"
94-
style="@style/Widget.Material3Expressive.Button.TextButton.Dialog"
94+
style="@style/Widget.Material3Expressive.Button"
9595
android:layout_width="wrap_content"
9696
android:layout_height="wrap_content"
9797
android:layout_margin="5dp"

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

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

106106
<com.google.android.material.button.MaterialButton
107107
android:id="@+id/ok"
108-
style="@style/Widget.Material3Expressive.Button.TextButton.Dialog"
108+
style="@style/Widget.Material3Expressive.Button"
109109
android:layout_width="wrap_content"
110110
android:layout_height="wrap_content"
111111
android:layout_margin="5dp"

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

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

5454
<com.google.android.material.button.MaterialButton
5555
android:id="@+id/cancel"
56-
style="@style/Widget.Material3Expressive.Button.TextButton.Dialog"
56+
style="@style/Widget.Material3Expressive.Button.TonalButton"
5757
android:layout_width="wrap_content"
5858
android:layout_height="wrap_content"
5959
android:layout_margin="5dp"
@@ -62,7 +62,7 @@
6262

6363
<com.google.android.material.button.MaterialButton
6464
android:id="@+id/ok"
65-
style="@style/Widget.Material3Expressive.Button.TextButton.Dialog"
65+
style="@style/Widget.Material3Expressive.Button"
6666
android:layout_width="wrap_content"
6767
android:layout_height="wrap_content"
6868
android:layout_margin="5dp"

0 commit comments

Comments
 (0)