Skip to content

Commit

Permalink
Add Emoji to Wide Layout (#448)
Browse files Browse the repository at this point in the history
* added Emoji to Wide Layout, renamed layout to match convention of other keyboard names

* changed text in setting to match name conventions

* changed text in setting to match name conventions

* changed text in settings because the pipeline failed for no reason
  • Loading branch information
thedroppedpocket authored Sep 27, 2023
1 parent 4ec0ab2 commit 8736460
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import com.dessalines.thumbkey.utils.SwipeDirection
import com.dessalines.thumbkey.utils.SwipeNWay

// uses programmer layout but moves spacebar to the left column in order to make a more aspect ration friendly layout. this grid is 5x3 which is closer to the average phone aspect ration of 16:9 than 4x4 keyboard.
val WIDE_LAYOUT_EN_PROGRAMMER = KeyboardC(
val THUMBKEY_EN_PROGRAMMER_WIDE = KeyboardC(
listOf(
listOf(
SPACEBAR_TYPESPLIT_TOP_KEY_ITEM,
EMOJI_KEY_ITEM,
KeyItemC(
center = KeyC(
display = KeyDisplay.TextDisplay("s"),
Expand Down Expand Up @@ -351,10 +351,10 @@ val WIDE_LAYOUT_EN_PROGRAMMER = KeyboardC(
),
)

val WIDE_LAYOUT_EN_PROGRAMMER_SHIFTED = KeyboardC(
val THUMBKEY_EN_PROGRAMMER_WIDE_SHIFTED = KeyboardC(
listOf(
listOf(
SPACEBAR_TYPESPLIT_TOP_KEY_ITEM,
EMOJI_BACK_KEY_ITEM,
KeyItemC(
center = KeyC(
display = KeyDisplay.TextDisplay("S"),
Expand Down Expand Up @@ -958,8 +958,8 @@ val NUMERIC_KEYBOARD_WIDE = KeyboardC(
),
)

val WIDE_LAYOUT_EN_PROGRAMMER_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
KeyboardMode.MAIN to WIDE_LAYOUT_EN_PROGRAMMER,
KeyboardMode.SHIFTED to WIDE_LAYOUT_EN_PROGRAMMER_SHIFTED,
val THUMBKEY_EN_PROGRAMMER_WIDE_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
KeyboardMode.MAIN to THUMBKEY_EN_PROGRAMMER_WIDE,
KeyboardMode.SHIFTED to THUMBKEY_EN_PROGRAMMER_WIDE_SHIFTED,
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD_WIDE,
)
2 changes: 1 addition & 1 deletion app/src/main/java/com/dessalines/thumbkey/utils/Types.kt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ enum class KeyboardLayout(val title: String, val index: Int) {
TypeSplitPTv1("Type-Split português v1", 41),
TypeSplitPLv1("Type-Split polski v1", 42),
TwoHandsENv1("Two Hands english v1", 43),
WideLayoutENProgrammer("Wide Layout English Programmer", 44),
ThumbKeyEnProgrammerWide("Wide programmer (Thumb-Key english)", 44),
ThumbKeyHUv1("Thumb-Key magyar nyelv v1", 45),
ThumbKeyESEOv1("Thumb-Key español esperanto v1", 46),
MessageEaseIT("MessageEase italiano", 47),
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/dessalines/thumbkey/utils/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import com.dessalines.thumbkey.keyboards.THUMBKEY_CZ_V1_KEYBOARD_MODES
import com.dessalines.thumbkey.keyboards.THUMBKEY_DA_V1_KEYBOARD_MODES
import com.dessalines.thumbkey.keyboards.THUMBKEY_DE_V2_KEYBOARD_MODES
import com.dessalines.thumbkey.keyboards.THUMBKEY_DE_V2_MULTILINGUAL_KEYBOARD_MODES
import com.dessalines.thumbkey.keyboards.THUMBKEY_EN_PROGRAMMER_WIDE_KEYBOARD_MODES
import com.dessalines.thumbkey.keyboards.THUMBKEY_EN_V4_KEYBOARD_MODES
import com.dessalines.thumbkey.keyboards.THUMBKEY_EN_V4_MULTI_KEYBOARD_MODES
import com.dessalines.thumbkey.keyboards.THUMBKEY_EN_V4_PROGRAMMER_KEYBOARD_MODES
Expand Down Expand Up @@ -98,7 +99,6 @@ import com.dessalines.thumbkey.keyboards.TYPESPLIT_FR_V1_KEYBOARD_MODES
import com.dessalines.thumbkey.keyboards.TYPESPLIT_IT_V1_KEYBOARD_MODES
import com.dessalines.thumbkey.keyboards.TYPESPLIT_PL_V1_KEYBOARD_MODES
import com.dessalines.thumbkey.keyboards.TYPESPLIT_PT_V1_KEYBOARD_MODES
import com.dessalines.thumbkey.keyboards.WIDE_LAYOUT_EN_PROGRAMMER_KEYBOARD_MODES
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
Expand Down Expand Up @@ -181,7 +181,7 @@ fun keyboardLayoutToModes(layout: KeyboardLayout): Map<KeyboardMode, KeyboardC>
KeyboardLayout.TypeSplitPTv1 -> TYPESPLIT_PT_V1_KEYBOARD_MODES
KeyboardLayout.TypeSplitPLv1 -> TYPESPLIT_PL_V1_KEYBOARD_MODES
KeyboardLayout.TwoHandsENv1 -> TWO_HANDS_EN_V1_KEYBOARD_MODES
KeyboardLayout.WideLayoutENProgrammer -> WIDE_LAYOUT_EN_PROGRAMMER_KEYBOARD_MODES
KeyboardLayout.ThumbKeyEnProgrammerWide -> THUMBKEY_EN_PROGRAMMER_WIDE_KEYBOARD_MODES
KeyboardLayout.ThumbKeyHUv1 -> THUMBKEY_HU_V1_KEYBOARD_MODES
KeyboardLayout.ThumbKeyESEOv1 -> THUMBKEY_ES_EO_V1_KEYBOARD_MODES
KeyboardLayout.MessageEaseIT -> MESSAGEEASE_IT_KEYBOARD_MODES
Expand Down

0 comments on commit 8736460

Please sign in to comment.