mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Unify button height to match stable
Updated pause damage and copy token buttons to match stable button height
This commit is contained in:
parent
69d39a6f54
commit
8660fab3e9
2 changed files with 16 additions and 12 deletions
|
|
@ -115,20 +115,17 @@ fun ApiTokenBottomSheet(
|
|||
)
|
||||
}
|
||||
Spacer(modifier = Modifier.height(22.dp))
|
||||
Button(
|
||||
onClick = { onCopyToken(apiToken) },
|
||||
shape = RoundedCornerShape(12.dp),
|
||||
colors = ButtonDefaults.buttonColors(containerColor = buttonBg),
|
||||
modifier = Modifier
|
||||
HabiticaButton(
|
||||
background = buttonBg,
|
||||
color = buttonText,
|
||||
onClick = { onCopyToken(apiToken) },
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.height(54.dp)
|
||||
.height(48.dp),
|
||||
contentPadding = PaddingValues(0.dp),
|
||||
fontSize = 16.sp
|
||||
) {
|
||||
Text(
|
||||
stringResource(id = R.string.copy_token),
|
||||
color = buttonText,
|
||||
fontSize = 16.sp,
|
||||
fontWeight = FontWeight.SemiBold,
|
||||
)
|
||||
Text(stringResource(id = R.string.copy_token))
|
||||
}
|
||||
Spacer(modifier = Modifier.height(8.dp))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.habitrpg.android.habitica.ui.views.preferences
|
|||
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
|
|
@ -78,6 +79,9 @@ fun PauseResumeDamageView(
|
|||
HabiticaButton(
|
||||
background = colorResource(R.color.yellow_100),
|
||||
color = colorResource(R.color.yellow_1),
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.height(48.dp),
|
||||
onClick = { onClick() }
|
||||
) {
|
||||
Text(stringResource(R.string.resume_damage))
|
||||
|
|
@ -136,6 +140,9 @@ fun PauseResumeDamageView(
|
|||
HabiticaButton(
|
||||
background = colorResource(R.color.yellow_100),
|
||||
color = colorResource(R.color.yellow_1),
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.height(48.dp),
|
||||
onClick = { onClick() }
|
||||
) {
|
||||
Text(stringResource(R.string.pause_damage))
|
||||
|
|
|
|||
Loading…
Reference in a new issue