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

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

LatinIME: Style action popup buttons

The lxx theme variants style the action button popup with png graphics.
Create our own for Material You, so we don't need to change the entire
MoreKeys code.

Change-Id: Ia1b01142d85cc5d8a3ea329822a2c61b4443b797
parent b0e34aa4
Loading
Loading
Loading
Loading
+12 −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_action_corner_radius_you" />
    <size
        android:width="@dimen/keyboard_key_popup_action_size"
        android:height="@dimen/keyboard_key_popup_action_size"/>
</shape>
+12 −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_pressed_color_you"/>
    <corners android:radius="@dimen/keyboard_key_action_corner_radius_you" />
    <size
        android:width="@dimen/keyboard_key_popup_action_size"
        android:height="@dimen/keyboard_key_popup_action_size"/>
</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_key_active_pressed_you" />
    <item android:drawable="@drawable/btn_keyboard_key_active_normal_you" />
</selector>
+1 −0
Original line number Diff line number Diff line
@@ -2,5 +2,6 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <dimen name="keyboard_key_corner_radius_you">8dp</dimen>
    <dimen name="keyboard_key_action_corner_radius_you">120dp</dimen>
    <dimen name="keyboard_key_popup_action_size">40dp</dimen>
    <dimen name="config_gesture_floating_preview_round_radius_you">8dp</dimen>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@
        parent="MoreKeysKeyboardView.You"
    >
        <item name="android:background">@android:color/transparent</item>
        <item name="keyBackground">@drawable/btn_keyboard_key_popup_action_lxx_dark</item>
        <item name="keyBackground">@drawable/btn_keyboard_key_popup_action_you</item>
        <item name="divider">@null</item>
        <item name="keyLabelFlags">keepBackgroundAspectRatio</item>
    </style>