Skip to content

Commit f1ed875

Browse files
committed
Further increase widget corner radius to match current Android style
1 parent e82bd47 commit f1ed875

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

uhabits-android/src/main/java/org/isoron/uhabits/widgets/views/HabitWidgetView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ abstract class HabitWidgetView : FrameLayout {
6969
val shadowRadius = dpToPixels(context, 2f).toInt()
7070
val shadowOffset = dpToPixels(context, 1f).toInt()
7171
val shadowColor = Color.argb(shadowAlpha, 0, 0, 0)
72-
val cornerRadius = dpToPixels(context, 12f)
72+
val cornerRadius = dpToPixels(context, 18f)
7373
val radii = FloatArray(8)
7474
Arrays.fill(radii, cornerRadius)
7575
val shape = RoundRectShape(radii, null, null)

uhabits-android/src/main/res/drawable/widget_button_background.xml

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

2929
<item android:id="@android:id/mask">
3030
<shape android:shape="rectangle">
31-
<corners android:radius="12dp"/>
31+
<corners android:radius="18dp"/>
3232
<solid android:color="?android:colorPrimary"/>
3333
</shape>
3434
<color android:color="@color/white"/>

0 commit comments

Comments
 (0)