Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit c07045b3 authored by Georg Veichtlbauer's avatar Georg Veichtlbauer Committed by Michael Bestas
Browse files

LatinIME: Give the spacebar a special treatment

* Add a fresh space bar icon
* Restyle it to be closer to other keyboards
* Disable long-press when in number pad mode
* Hide the active language text when not in long-press mode

Includes I27c02a35ed161c928c9062be5486b84f1d1f6ae5.

Change-Id: I49c1ac0affa617536f416f502683a97cad7287a9
parent d01f23a3
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     SPDX-FileCopyrightText: 2023 The LineageOS Project
     SPDX-License-Identifier: Apache-2.0
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="@color/keyboard_key_normal_color_you"/>
    <corners android:radius="@dimen/keyboard_key_corner_radius_you" />
</shape>
+9 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     SPDX-FileCopyrightText: 2023 The LineageOS Project
     SPDX-License-Identifier: Apache-2.0
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="@color/keyboard_key_functional_pressed_color_you"/>
    <corners android:radius="@dimen/keyboard_key_corner_radius_you" />
</shape>
+10 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     SPDX-FileCopyrightText: 2023 The LineageOS Project
     SPDX-License-Identifier: Apache-2.0
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true"
          android:drawable="@drawable/btn_keyboard_spacebar_pressed_you" />
    <item android:drawable="@drawable/btn_keyboard_spacebar_normal_you" />
</selector>
+13 −0
Original line number Diff line number Diff line
<!--
    SPDX-FileCopyrightText: Material Design Authors / Google LLC
    SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="960"
    android:viewportHeight="960">
    <path
        android:fillColor="@color/icon_color_you"
        android:pathData="M160,600L160,360L220,360L220,540L740,540L740,360L800,360L800,600L160,600Z"/>
</vector>
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@
        <item name="iconPreviousKey">@drawable/sym_keyboard_previous_you</item>
        <item name="iconTabKey">@drawable/sym_keyboard_tab_you</item>
        <item name="iconShortcutKey">@drawable/sym_keyboard_voice_you</item>
        <item name="iconSpaceKeyForNumberLayout">@drawable/sym_keyboard_space_lxx_dark</item>
        <item name="iconSpaceKeyForNumberLayout">@drawable/sym_keyboard_space_you</item>
        <item name="iconShiftKeyShifted">@drawable/sym_keyboard_shift_locked_you</item>
        <item name="iconShortcutKeyDisabled">@drawable/sym_keyboard_voice_off_you</item>
        <item name="iconLanguageSwitchKey">@drawable/sym_keyboard_language_switch_you</item>
Loading