Skip to content

Commit

Permalink
Merge pull request #14 from M00NJ/character-input
Browse files Browse the repository at this point in the history
style: change character input screen colors
  • Loading branch information
SuhasDissa authored Dec 10, 2023
2 parents 91ffddb + d1a5b42 commit b3b04f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.surfaceColorAtElevation
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
Expand All @@ -28,7 +29,7 @@ fun KeyboardKey(
Box(
modifier = Modifier
.clip(shape = RoundedCornerShape(8.dp))
.background(MaterialTheme.colorScheme.primaryContainer)
.background(MaterialTheme.colorScheme.surfaceColorAtElevation(1.dp))
.size(48.dp)
.clickable {
onClick()
Expand All @@ -41,7 +42,7 @@ fun KeyboardKey(
Modifier
.padding(4.dp),
style = MaterialTheme.typography.headlineSmall,
color = MaterialTheme.colorScheme.onPrimaryContainer
color = MaterialTheme.colorScheme.onSurface

)
}
Expand Down Expand Up @@ -77,7 +78,7 @@ fun KeyboardSpecialKey(
keyboardKey,
Modifier
.padding(vertical = 4.dp, horizontal = 16.dp),
style = MaterialTheme.typography.headlineSmall,
style = MaterialTheme.typography.bodyLarge,
color = MaterialTheme.colorScheme.onPrimaryContainer
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ fun CharacterInputScreen() {
textStyle = MaterialTheme.typography.displaySmall,
modifier = Modifier.fillMaxWidth(),
colors = TextFieldDefaults.colors(
focusedContainerColor = MaterialTheme.colorScheme.primaryContainer,
unfocusedContainerColor = MaterialTheme.colorScheme.primaryContainer,
focusedContainerColor = MaterialTheme.colorScheme.surfaceVariant,
unfocusedContainerColor = MaterialTheme.colorScheme.surfaceVariant,
disabledContainerColor = Color.Transparent,
focusedIndicatorColor = Color.Transparent,
unfocusedIndicatorColor = Color.Transparent,
Expand All @@ -73,7 +73,7 @@ fun CharacterInputScreen() {
modifier = Modifier
.align(Alignment.CenterHorizontally)
.padding(10.dp)
.size(70.dp, 6.dp)
.size(70.dp, 4.dp)
.clip(RoundedCornerShape(50))
)
val rowScrollState = rememberScrollState()
Expand Down

0 comments on commit b3b04f2

Please sign in to comment.