Skip to content

Commit 6f595fe

Browse files
committed
chore(flipcash): convert ic_cash_bill to webp
Something is off with the rasterization in the SVG that is causing it to appear clipped in the corners. Use a webp file for now until it can be figured out and a vector utilized again. Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent b774c59 commit 6f595fe

3 files changed

Lines changed: 12 additions & 19 deletions

File tree

562 Bytes
Loading

apps/flipcash/core/src/main/res/drawable/ic_cash_bill.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

apps/flipcash/features/scanner/src/main/kotlin/com/flipcash/app/scanner/internal/ui/components/ScannerNavigationBar.kt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ import com.flipcash.app.scanner.internal.ScannerDecorItem
4141
import com.flipcash.app.session.SessionState
4242
import com.flipcash.features.scanner.R
4343
import com.getcode.theme.CodeTheme
44+
import com.getcode.theme.DesignSystem
4445
import com.getcode.theme.xxl
4546
import com.getcode.ui.components.Badge
4647
import com.getcode.ui.components.Pill
4748
import com.getcode.ui.core.unboundedClickable
4849
import com.getcode.ui.utils.heightOrZero
4950
import com.getcode.ui.utils.widthOrZero
5051

51-
@Preview
5252
@Composable
5353
internal fun ScannerNavigationBar(
5454
modifier: Modifier = Modifier,
@@ -80,6 +80,7 @@ internal fun ScannerNavigationBar(
8080
// onClick = { onAction(ScannerDecorItem.Send) },
8181
// )
8282

83+
8384
BottomBarAction(
8485
modifier = Modifier.weight(1f),
8586
label = stringResource(R.string.action_balance),
@@ -114,12 +115,12 @@ internal fun ScannerNavigationBar(
114115

115116
@Composable
116117
private fun BottomBarAction(
117-
modifier: Modifier = Modifier,
118+
painter: Painter,
118119
label: String,
120+
modifier: Modifier = Modifier,
119121
contentPadding: PaddingValues = PaddingValues(
120122
vertical = CodeTheme.dimens.grid.x2
121123
),
122-
painter: Painter,
123124
imageSize: Dp = CodeTheme.dimens.staticGrid.x10,
124125
toast: @Composable () -> Unit = { },
125126
badgeCount: Int = 0,
@@ -218,4 +219,12 @@ private fun BottomBarAction(
218219
)
219220
}
220221
}
222+
}
223+
224+
@Preview
225+
@Composable
226+
private fun PreviewNavBar() {
227+
DesignSystem {
228+
ScannerNavigationBar { }
229+
}
221230
}

0 commit comments

Comments
 (0)