Skip to content

Commit c62eb6c

Browse files
Only use size resources for reusable sizes
1 parent c3d0771 commit c62eb6c

File tree

2 files changed

+2
-2
lines changed
  • app/src/main

2 files changed

+2
-2
lines changed

app/src/main/kotlin/app/fyreplace/fyreplace/ui/views/account/Logo.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import androidx.compose.ui.graphics.vector.ImageVector
1111
import androidx.compose.ui.res.dimensionResource
1212
import androidx.compose.ui.res.vectorResource
1313
import androidx.compose.ui.tooling.preview.Preview
14+
import androidx.compose.ui.unit.dp
1415
import app.fyreplace.fyreplace.R
1516

1617
@Composable
@@ -21,7 +22,7 @@ fun Logo(modifier: Modifier = Modifier) {
2122
contentDescription = null,
2223
modifier = Modifier
2324
.padding(vertical = dimensionResource(R.dimen.spacing_large))
24-
.size(dimensionResource(R.dimen.logo_size))
25+
.size(96.dp)
2526
.then(modifier)
2627
)
2728
}

app/src/main/res/values/sizes.xml

-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
<dimen name="spacing_large">32dp</dimen>
66
<dimen name="form_min_width">280dp</dimen>
77
<dimen name="form_max_width">600dp</dimen>
8-
<dimen name="logo_size">96dp</dimen>
98
</resources>

0 commit comments

Comments
 (0)