mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-23 17:40:54 +00:00
Square action key for border themes
This commit is contained in:
parent
db1af954d3
commit
b5f22f58e3
9 changed files with 47 additions and 11 deletions
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item >
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<solid android:color="#1f1f1f" />
|
||||||
|
<corners android:radius="5dp"/>
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
<item android:bottom="3px">
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<solid android:color="#0075f6" />
|
||||||
|
<corners android:radius="5dp" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item >
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<solid android:color="#cbcacf" />
|
||||||
|
<corners android:radius="5dp"/>
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
<item android:bottom="3px">
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<solid android:color="#0075f6" />
|
||||||
|
<corners android:radius="5dp" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<solid android:color="#3389e8" />
|
||||||
|
<corners android:radius="5dp" />
|
||||||
|
</shape>
|
|
@ -6,9 +6,9 @@
|
||||||
<corners android:radius="5dp"/>
|
<corners android:radius="5dp"/>
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
<item android:bottom="5px">
|
<item android:bottom="3px">
|
||||||
<shape android:shape="rectangle">
|
<shape android:shape="rectangle">
|
||||||
<solid android:color="#303030" />
|
<solid android:color="#1f1f1f" />
|
||||||
<corners android:radius="5dp" />
|
<corners android:radius="5dp" />
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<!-- Action keys. -->
|
<!-- Action keys. -->
|
||||||
<item android:state_active="true" android:state_pressed="true"
|
<item android:state_active="true" android:state_pressed="true"
|
||||||
android:drawable="@drawable/btn_keyboard_key_active_pressed_lxx_dark" />
|
android:drawable="@drawable/btn_keyboard_key_action_pressed_lxx_border" />
|
||||||
<item android:state_active="true"
|
<item android:state_active="true"
|
||||||
android:drawable="@drawable/btn_keyboard_key_active_lxx_dark" />
|
android:drawable="@drawable/btn_keyboard_key_action_lxx_border" />
|
||||||
|
|
||||||
<!-- Toggle keys. Use checkable/checked state. -->
|
<!-- Toggle keys. Use checkable/checked state. -->
|
||||||
<item android:state_checkable="true" android:state_checked="true" android:state_pressed="true"
|
<item android:state_checkable="true" android:state_checked="true" android:state_pressed="true"
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<!-- Action keys. -->
|
<!-- Action keys. -->
|
||||||
<item android:state_active="true" android:state_pressed="true"
|
<item android:state_active="true" android:state_pressed="true"
|
||||||
android:drawable="@drawable/btn_keyboard_key_active_pressed_lxx_light" />
|
android:drawable="@drawable/btn_keyboard_key_action_pressed_lxx_border" />
|
||||||
<item android:state_active="true"
|
<item android:state_active="true"
|
||||||
android:drawable="@drawable/btn_keyboard_key_active_lxx_light" />
|
android:drawable="@drawable/btn_keyboard_key_action_lxx_border_light" />
|
||||||
|
|
||||||
<!-- Toggle keys. Use checkable/checked state. -->
|
<!-- Toggle keys. Use checkable/checked state. -->
|
||||||
<item android:state_checkable="true" android:state_checked="true" android:state_pressed="true"
|
<item android:state_checkable="true" android:state_checked="true" android:state_pressed="true"
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
<corners android:radius="5dp"/>
|
<corners android:radius="5dp"/>
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
<item android:bottom="5px">
|
<item android:bottom="3px">
|
||||||
<shape android:shape="rectangle">
|
<shape android:shape="rectangle">
|
||||||
<solid android:color="#424242" />
|
<solid android:color="#4d4d4d" />
|
||||||
<corners android:radius="5dp" />
|
<corners android:radius="5dp" />
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
name="KeyboardView.LXX_Dark_Border"
|
name="KeyboardView.LXX_Dark_Border"
|
||||||
parent="KeyboardView.LXX"
|
parent="KeyboardView.LXX"
|
||||||
>
|
>
|
||||||
<item name="android:background">#212121</item>
|
<item name="android:background">#0d0d0d</item>
|
||||||
<item name="keyBackground">@drawable/btn_keyboard_key_lxx_dark_border</item>
|
<item name="keyBackground">@drawable/btn_keyboard_key_lxx_dark_border</item>
|
||||||
<item name="functionalKeyBackground">@drawable/btn_keyboard_key_functional_lxx_dark_border</item>
|
<item name="functionalKeyBackground">@drawable/btn_keyboard_key_functional_lxx_dark_border</item>
|
||||||
<item name="spacebarBackground">@drawable/btn_keyboard_key_lxx_dark_border</item>
|
<item name="spacebarBackground">@drawable/btn_keyboard_key_lxx_dark_border</item>
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
<item name="centerSuggestionPercentile">@fraction/config_center_suggestion_percentile</item>
|
<item name="centerSuggestionPercentile">@fraction/config_center_suggestion_percentile</item>
|
||||||
<item name="maxMoreSuggestionsRow">@integer/config_max_more_suggestions_row</item>
|
<item name="maxMoreSuggestionsRow">@integer/config_max_more_suggestions_row</item>
|
||||||
<item name="minMoreSuggestionsWidth">@fraction/config_min_more_suggestions_width</item>
|
<item name="minMoreSuggestionsWidth">@fraction/config_min_more_suggestions_width</item>
|
||||||
<item name="android:background">#212121</item>
|
<item name="android:background">#0d0d0d</item>
|
||||||
<item name="android:src">@drawable/suggestions_strip_divider_lxx_dark</item>
|
<item name="android:src">@drawable/suggestions_strip_divider_lxx_dark</item>
|
||||||
<item name="suggestionStripOptions">autoCorrectBold|validTypedWordBold</item>
|
<item name="suggestionStripOptions">autoCorrectBold|validTypedWordBold</item>
|
||||||
<item name="colorValidTypedWord">@color/typed_word_color_lxx_dark</item>
|
<item name="colorValidTypedWord">@color/typed_word_color_lxx_dark</item>
|
||||||
|
|
|
@ -213,7 +213,7 @@
|
||||||
</switch>
|
</switch>
|
||||||
<!-- Enter key style -->
|
<!-- Enter key style -->
|
||||||
<switch>
|
<switch>
|
||||||
<case latin:keyboardTheme="ICS|KLP">
|
<case latin:keyboardTheme="ICS|KLP|LXXLightBorder|LXXDarkBorder">
|
||||||
<key-style
|
<key-style
|
||||||
latin:styleName="defaultEnterKeyStyle"
|
latin:styleName="defaultEnterKeyStyle"
|
||||||
latin:keySpec="!icon/enter_key|!code/key_enter"
|
latin:keySpec="!icon/enter_key|!code/key_enter"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue