Skip to content

Commit 7a180d5

Browse files
committed
style(home): update bottom bar assets
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent b9226f5 commit 7a180d5

4 files changed

Lines changed: 20 additions & 25 deletions

File tree

app/src/main/java/com/getcode/view/main/home/components/HomeBottom.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ internal fun HomeBottom(
7373
modifier = Modifier.weight(1f),
7474
label = stringResource(R.string.action_balance),
7575
painter = painterResource(R.drawable.ic_balance),
76-
contentPadding = PaddingValues(
77-
top = CodeTheme.dimens.grid.x2,
78-
bottom = CodeTheme.dimens.grid.x3
79-
),
80-
imageSize = CodeTheme.dimens.staticGrid.x6,
8176
onClick = { onPress(HomeAction.BALANCE) },
8277
badge = {
8378
Badge(
@@ -116,7 +111,7 @@ private fun BottomBarAction(
116111
vertical = CodeTheme.dimens.grid.x2
117112
),
118113
painter: Painter,
119-
imageSize: Dp = CodeTheme.dimens.staticGrid.x8,
114+
imageSize: Dp = CodeTheme.dimens.staticGrid.x10,
120115
badge: @Composable () -> Unit = { },
121116
onClick: () -> Unit,
122117
) {
@@ -125,7 +120,7 @@ private fun BottomBarAction(
125120
content = {
126121
Column(
127122
modifier = Modifier
128-
.unboundedClickable { onClick() }
123+
.unboundedClickable(rippleRadius = imageSize) { onClick() }
129124
.layoutId("action"),
130125
horizontalAlignment = Alignment.CenterHorizontally
131126
) {

app/src/main/res/drawable/ic_balance.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="32dp"
3-
android:height="28dp"
4-
android:viewportWidth="32"
5-
android:viewportHeight="28">
2+
android:width="50dp"
3+
android:height="50dp"
4+
android:viewportWidth="50"
5+
android:viewportHeight="50">
66
<path
7-
android:pathData="M0,2H24"
7+
android:pathData="M10,13H34"
88
android:strokeWidth="4"
99
android:fillColor="#00000000"
1010
android:strokeColor="#ffffff"/>
1111
<path
12-
android:pathData="M0,26H24"
12+
android:pathData="M10,37H34"
1313
android:strokeWidth="4"
1414
android:fillColor="#00000000"
1515
android:strokeColor="#ffffff"/>
1616
<path
17-
android:pathData="M8,14H32"
17+
android:pathData="M18,25H42"
1818
android:strokeWidth="4"
1919
android:fillColor="#00000000"
2020
android:strokeColor="#ffffff"/>

app/src/main/res/drawable/ic_kin_white_small.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="38dp"
3-
android:height="42dp"
4-
android:viewportWidth="38"
5-
android:viewportHeight="42">
2+
android:width="50dp"
3+
android:height="50dp"
4+
android:viewportWidth="50"
5+
android:viewportHeight="50">
66
<path
7-
android:pathData="M2.813,11.655L19,2.309L35.187,11.655V30.345L19,39.691L2.813,30.345V11.655Z"
7+
android:pathData="M8.813,15.655L25,6.309L41.187,15.655V34.345L25,43.691L8.813,34.345V15.655Z"
88
android:strokeWidth="4"
99
android:fillColor="#00000000"
1010
android:strokeColor="#ffffff"/>

app/src/main/res/drawable/ic_tip_card.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="28dp"
3-
android:height="40dp"
4-
android:viewportWidth="28"
5-
android:viewportHeight="40">
2+
android:width="50dp"
3+
android:height="50dp"
4+
android:viewportWidth="50"
5+
android:viewportHeight="50">
66
<path
7-
android:pathData="M2,2h24v36h-24z"
7+
android:pathData="M13,7h24v36h-24z"
88
android:strokeWidth="4"
99
android:fillColor="#00000000"
1010
android:strokeColor="#ffffff"/>
1111
<path
12-
android:pathData="M14,16.182m-6.136,0a6.136,6.136 0,1 1,12.273 0a6.136,6.136 0,1 1,-12.273 0"
12+
android:pathData="M25,21.182m-6.136,0a6.136,6.136 0,1 1,12.273 0a6.136,6.136 0,1 1,-12.273 0"
1313
android:strokeWidth="3"
1414
android:fillColor="#00000000"
1515
android:strokeColor="#ffffff"/>

0 commit comments

Comments
 (0)