Skip to content

Commit

Permalink
Improve symbol keyboards
Browse files Browse the repository at this point in the history
  • Loading branch information
bingzheung committed Nov 11, 2024
1 parent c3b34dd commit 4507b87
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,15 @@ fun CantoneseNumericKeyboard(keyHeight: Dp) {
.fillMaxWidth()
) {
TransformKey(destination = KeyboardForm.Symbolic, modifier = Modifier.weight(1.3f))
Spacer(modifier = Modifier.weight(0.22f))
SymbolKey(symbol = "", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = ".", modifier = Modifier.weight(1.16f))
Spacer(modifier = Modifier.weight(0.22f))
Spacer(modifier = Modifier.weight(0.2f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = ".", modifier = Modifier.weight(1f))
SymbolKey(symbol = "\"", modifier = Modifier.weight(1f))
Spacer(modifier = Modifier.weight(0.2f))
BackspaceKey(modifier = Modifier.weight(1.3f))
}
BottomKeyRow(transform = KeyboardForm.Alphabetic, height = keyHeight)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,15 @@ fun CantoneseSymbolicKeyboard(keyHeight: Dp) {
.fillMaxWidth()
) {
TransformKey(destination = KeyboardForm.Numeric, modifier = Modifier.weight(1.3f))
Spacer(modifier = Modifier.weight(0.22f))
SymbolKey(symbol = "", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "©", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "'", modifier = Modifier.weight(1.16f))
Spacer(modifier = Modifier.weight(0.22f))
Spacer(modifier = Modifier.weight(0.2f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "©", modifier = Modifier.weight(1f))
SymbolKey(symbol = "®", modifier = Modifier.weight(1f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "'", modifier = Modifier.weight(1f))
Spacer(modifier = Modifier.weight(0.2f))
BackspaceKey(modifier = Modifier.weight(1.3f))
}
BottomKeyRow(transform = KeyboardForm.Alphabetic, height = keyHeight)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,15 @@ fun NumericKeyboard(keyHeight: Dp) {
.fillMaxWidth()
) {
TransformKey(destination = KeyboardForm.Symbolic, modifier = Modifier.weight(1.3f))
Spacer(modifier = Modifier.weight(0.22f))
SymbolKey(symbol = ".", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = ",", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "?", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "!", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "*", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "'", modifier = Modifier.weight(1.16f))
Spacer(modifier = Modifier.weight(0.22f))
Spacer(modifier = Modifier.weight(0.2f))
SymbolKey(symbol = ".", modifier = Modifier.weight(1f))
SymbolKey(symbol = ",", modifier = Modifier.weight(1f))
SymbolKey(symbol = "?", modifier = Modifier.weight(1f))
SymbolKey(symbol = "!", modifier = Modifier.weight(1f))
SymbolKey(symbol = "%", modifier = Modifier.weight(1f))
SymbolKey(symbol = "*", modifier = Modifier.weight(1f))
SymbolKey(symbol = "'", modifier = Modifier.weight(1f))
Spacer(modifier = Modifier.weight(0.2f))
BackspaceKey(modifier = Modifier.weight(1.3f))
}
BottomKeyRow(transform = KeyboardForm.Alphabetic, height = keyHeight)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,15 @@ fun SymbolicKeyboard(keyHeight: Dp) {
.fillMaxWidth()
) {
TransformKey(destination = KeyboardForm.Numeric, modifier = Modifier.weight(1.3f))
Spacer(modifier = Modifier.weight(0.22f))
SymbolKey(symbol = ".", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = ",", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "?", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "!", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "&", modifier = Modifier.weight(1.16f))
SymbolKey(symbol = "'", modifier = Modifier.weight(1.16f))
Spacer(modifier = Modifier.weight(0.22f))
Spacer(modifier = Modifier.weight(0.2f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "©", modifier = Modifier.weight(1f))
SymbolKey(symbol = "®", modifier = Modifier.weight(1f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "", modifier = Modifier.weight(1f))
SymbolKey(symbol = "'", modifier = Modifier.weight(1f))
Spacer(modifier = Modifier.weight(0.2f))
BackspaceKey(modifier = Modifier.weight(1.3f))
}
BottomKeyRow(transform = KeyboardForm.Alphabetic, height = keyHeight)
Expand Down

0 comments on commit 4507b87

Please sign in to comment.