Skip to content

Commit

Permalink
display circle size as percent value
Browse files Browse the repository at this point in the history
  • Loading branch information
UrAvgCode committed Feb 16, 2025
1 parent 5f793e5 commit 1fc44e6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import kotlin.math.roundToInt

@Composable
fun SettingsRowSlider(
Expand All @@ -38,7 +39,7 @@ fun SettingsRowSlider(
.padding(vertical = 8.dp)
) {
Text(
text = "$title: ${"%.1f".format(value)}",
text = "$title: ${(value * 100).roundToInt()}%",
modifier = Modifier
.padding(vertical = 8.dp)
)
Expand Down

0 comments on commit 1fc44e6

Please sign in to comment.