fix: move kW unit inside gauge next to power value

This commit is contained in:
Davide Ferrari
2026-01-09 23:58:10 +01:00
parent 595a6134a0
commit 65ab84895b
@@ -104,23 +104,26 @@ fun ChargingPowerGauge(
}
}
// Power value in center
Text(
text = "$powerKw",
style = MaterialTheme.typography.titleMedium,
fontWeight = FontWeight.Bold,
color = gaugeColor
)
// Power value and kW unit in center
Row(
verticalAlignment = Alignment.Bottom,
horizontalArrangement = Arrangement.Center
) {
Text(
text = "$powerKw",
style = MaterialTheme.typography.titleSmall,
fontWeight = FontWeight.Bold,
color = gaugeColor
)
Text(
text = "kW",
style = MaterialTheme.typography.labelSmall,
fontWeight = FontWeight.Normal,
color = gaugeColor,
modifier = Modifier.padding(bottom = 1.dp)
)
}
}
Spacer(modifier = Modifier.width(4.dp))
// kW unit label
Text(
text = "kW",
style = MaterialTheme.typography.labelSmall,
color = gaugeColor
)
}
}