Skip to content

Commit

Permalink
feat: fix theme style
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleidot725 committed May 28, 2024
1 parent dc755be commit 19bea75
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,5 @@ fun Modifier.selectedBackground(isSelected: Boolean): Modifier {

@Composable
fun Modifier.selectorBorder(): Modifier {
return this.border(
width = 2.dp,
color = MaterialTheme.colors.primary.copy(alpha = 0.5f),
shape = RoundedCornerShape(8.dp),
)
return this.border(shape = RoundedCornerShape(8.dp), color = MaterialTheme.colors.primary, width = 1.dp)
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fun CommandItem(
Card(modifier, elevation = 1.dp) {
Column(verticalArrangement = Arrangement.spacedBy(8.dp), modifier = Modifier.fillMaxHeight().padding(8.dp)) {
Text(text = title, fontWeight = FontWeight.Bold)
Text(text = detail, modifier = Modifier.weight(0.9f, true))
Text(text = detail)
Button(onClick = { onExecute() }, enabled = canExecute, modifier = Modifier.align(Alignment.End)) {
when {
isRunning -> RunningIndicator()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import jp.kaleidot725.adbpad.domain.model.language.Language
import jp.kaleidot725.adbpad.view.common.resource.selectorBorder

@Composable
fun LanguageDropButton(
Expand All @@ -38,7 +39,7 @@ fun LanguageDropButton(
modifier =
Modifier
.width(200.dp)
.border(shape = RoundedCornerShape(8.dp), color = MaterialTheme.colors.primary, width = 1.dp)
.selectorBorder()
.clickable { expanded = true }
.padding(vertical = 8.dp, horizontal = 12.dp),
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp

@Composable
fun MenuItem(
Expand All @@ -35,6 +36,7 @@ fun MenuItem(
Text(
text = text,
style = MaterialTheme.typography.subtitle2,
lineHeight = 20.sp,
modifier = Modifier.align(Alignment.CenterVertically),
)
}
Expand Down

0 comments on commit 19bea75

Please sign in to comment.