mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Skill dialog tweaks
- Set MP cost text to medium weight - Update skill description to 16sp regular - Fix text size/weight in pause damage bottom sheet - Adjust 'Use Skill' button for consistency (16sp medium, 12dp radius, 43dp height) - Reduce horizontal padding on MP cost chip by ~6-7dp per side - (Also tweak to text for "Pause/Resume Damage" text)
This commit is contained in:
parent
5f1648f2ef
commit
86edc4ac7e
2 changed files with 5 additions and 4 deletions
|
|
@ -106,7 +106,7 @@ fun SkillDialog(
|
|||
modifier = Modifier
|
||||
.clip(RoundedCornerShape(20.dp))
|
||||
.background(chipBg)
|
||||
.padding(horizontal = 20.dp, vertical = 8.dp)
|
||||
.padding(horizontal = 16.dp, vertical = 8.dp)
|
||||
) {
|
||||
Icon(
|
||||
painter = resourceIconPainter,
|
||||
|
|
@ -118,7 +118,7 @@ fun SkillDialog(
|
|||
Text(
|
||||
text = mpCost,
|
||||
color = chipTextColor,
|
||||
fontWeight = FontWeight.Normal,
|
||||
fontWeight = FontWeight.Medium,
|
||||
fontSize = 16.sp
|
||||
)
|
||||
}
|
||||
|
|
@ -127,14 +127,14 @@ fun SkillDialog(
|
|||
|
||||
Button(
|
||||
onClick = onUseSkill,
|
||||
shape = RoundedCornerShape(8.dp),
|
||||
shape = RoundedCornerShape(12.dp),
|
||||
colors = ButtonDefaults.buttonColors(
|
||||
containerColor = colorResource(R.color.brand_400),
|
||||
contentColor = Color.White
|
||||
),
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.height(48.dp)
|
||||
.height(43.dp)
|
||||
) {
|
||||
Text(
|
||||
text = stringResource(R.string.use_skill),
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ fun PauseResumeDamageView(
|
|||
color = HabiticaTheme.colors.textSecondary,
|
||||
fontSize = 16.sp,
|
||||
textAlign = TextAlign.Center,
|
||||
fontWeight = FontWeight.Medium,
|
||||
modifier =
|
||||
Modifier
|
||||
.padding(bottom = 18.dp)
|
||||
|
|
|
|||
Loading…
Reference in a new issue