mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
37ec0fe984
This CL introduces two new key attributes to achieve this. - KeyboardView.functionalTextColor - followFunctionalTextColor flag for Key.keyLabelFlags Bug: 14419121 Change-Id: I45ca433dcc9cc8c6cf891e21d5316ee4048b0cad
136 lines
6.7 KiB
XML
136 lines
6.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
/*
|
|
**
|
|
** Copyright 2014, The Android Open Source Project
|
|
**
|
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
|
** you may not use this file except in compliance with the License.
|
|
** You may obtain a copy of the License at
|
|
**
|
|
** http://www.apache.org/licenses/LICENSE-2.0
|
|
**
|
|
** Unless required by applicable law or agreed to in writing, software
|
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
** See the License for the specific language governing permissions and
|
|
** limitations under the License.
|
|
*/
|
|
-->
|
|
|
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<style name="KeyboardTheme.LXX" parent="KeyboardIcons.LXX">
|
|
<item name="keyboardStyle">@style/Keyboard.LXX</item>
|
|
<item name="keyboardViewStyle">@style/KeyboardView.LXX</item>
|
|
<item name="mainKeyboardViewStyle">@style/MainKeyboardView.LXX</item>
|
|
<item name="keyPreviewTextViewStyle">@style/KeyPreviewTextView.LXX</item>
|
|
<item name="emojiPalettesViewStyle">@style/EmojiPalettesView.LXX</item>
|
|
<item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.LXX</item>
|
|
<item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.LXX</item>
|
|
<item name="suggestionStripViewStyle">@style/SuggestionStripView.LXX</item>
|
|
<item name="suggestionWordStyle">@style/SuggestionWord.LXX</item>
|
|
</style>
|
|
<style
|
|
name="Keyboard.LXX"
|
|
parent="Keyboard"
|
|
>
|
|
<!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
|
|
<item name="themeId">3</item>
|
|
<item name="keyboardTopPadding">@fraction/config_keyboard_top_padding_holo</item>
|
|
<item name="keyboardBottomPadding">@fraction/config_keyboard_bottom_padding_holo</item>
|
|
<item name="horizontalGap">@fraction/config_key_horizontal_gap_holo</item>
|
|
<item name="verticalGap">@fraction/config_key_vertical_gap_holo</item>
|
|
<item name="touchPositionCorrectionData">@array/touch_position_correction_data_holo</item>
|
|
</style>
|
|
<style
|
|
name="KeyboardView.LXX"
|
|
parent="KeyboardView"
|
|
>
|
|
<item name="android:background">@color/keyboard_background_lxx</item>
|
|
<item name="keyBackground">@drawable/btn_keyboard_key_lxx</item>
|
|
<item name="functionalKeyBackground">@drawable/btn_keyboard_key_functional_lxx</item>
|
|
<item name="spacebarBackground">@drawable/btn_keyboard_spacebar_lxx</item>
|
|
<item name="keyTypeface">bold</item>
|
|
<item name="keyTextColor">@color/key_text_color_holo</item>
|
|
<item name="keyTextInactivatedColor">@color/key_text_inactive_color_lxx</item>
|
|
<item name="functionalTextColor">@color/key_hint_letter_color_lxx</item>
|
|
<item name="keyHintLetterColor">@color/key_hint_letter_color_lxx</item>
|
|
<item name="keyHintLabelColor">@color/key_text_inactive_color_lxx</item>
|
|
<item name="keyShiftedLetterHintInactivatedColor">@color/key_text_inactive_color_lxx</item>
|
|
<item name="keyShiftedLetterHintActivatedColor">@color/key_text_color_holo</item>
|
|
<item name="keyPreviewTextColor">@color/key_text_color_holo</item>
|
|
<!-- A negative value to disable key text shadow layer. -->
|
|
<item name="keyTextShadowRadius">-1.0</item>
|
|
</style>
|
|
<style
|
|
name="MainKeyboardView.LXX"
|
|
parent="KeyboardView.LXX"
|
|
>
|
|
<item name="keyPreviewOffset">@dimen/config_key_preview_offset_holo</item>
|
|
<item name="gestureFloatingPreviewTextColor">@color/highlight_color_lxx</item>
|
|
<item name="gestureFloatingPreviewColor">@color/gesture_floating_preview_color_holo</item>
|
|
<item name="gestureTrailColor">@color/highlight_color_lxx</item>
|
|
<item name="slidingKeyInputPreviewColor">@color/highlight_translucent_color_lxx</item>
|
|
<item name="autoCorrectionSpacebarLedEnabled">false</item>
|
|
<item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led_holo</item>
|
|
<item name="languageOnSpacebarTextColor">@color/key_text_inactive_color_lxx</item>
|
|
<!-- A negative value to disable text shadow layer. -->
|
|
<item name="languageOnSpacebarTextShadowRadius">-1.0</item>
|
|
</style>
|
|
<style
|
|
name="KeyPreviewTextView.LXX"
|
|
parent="KeyPreviewTextView"
|
|
>
|
|
<item name="android:background">@drawable/keyboard_key_feedback_lxx</item>
|
|
</style>
|
|
<!-- Though {@link EmojiPalettesView} doesn't extend {@link KeyboardView}, some views inside it,
|
|
for instance delete button, need themed {@link KeyboardView} attributes. -->
|
|
<style
|
|
name="EmojiPalettesView.LXX"
|
|
parent="MainKeyboardView.LXX"
|
|
>
|
|
<item name="emojiTabLabelColor">@color/emoji_tab_label_color_lxx</item>
|
|
</style>
|
|
<style
|
|
name="MoreKeysKeyboard.LXX"
|
|
parent="Keyboard.LXX"
|
|
>
|
|
<item name="keyboardTopPadding">0%p</item>
|
|
<item name="keyboardBottomPadding">0%p</item>
|
|
<item name="horizontalGap">0%p</item>
|
|
<item name="touchPositionCorrectionData">@null</item>
|
|
</style>
|
|
<style
|
|
name="MoreKeysKeyboardView.LXX"
|
|
parent="KeyboardView.LXX"
|
|
>
|
|
<item name="android:background">@drawable/keyboard_popup_panel_background_lxx</item>
|
|
<item name="keyBackground">@drawable/btn_keyboard_key_popup_lxx</item>
|
|
<item name="keyTypeface">normal</item>
|
|
<item name="verticalCorrection">@dimen/config_more_keys_keyboard_vertical_correction_holo</item>
|
|
</style>
|
|
<style
|
|
name="SuggestionStripView.LXX"
|
|
parent="KeyboardView.LXX"
|
|
>
|
|
<item name="suggestionsCountInStrip">@integer/config_suggestions_count_in_strip</item>
|
|
<item name="centerSuggestionPercentile">@fraction/config_center_suggestion_percentile</item>
|
|
<item name="maxMoreSuggestionsRow">@integer/config_max_more_suggestions_row</item>
|
|
<item name="minMoreSuggestionsWidth">@fraction/config_min_more_suggestions_width</item>
|
|
<item name="android:background">@drawable/keyboard_suggest_strip_holo</item>
|
|
<item name="suggestionStripOptions">autoCorrectBold|validTypedWordBold</item>
|
|
<item name="colorValidTypedWord">@color/typed_word_color_lxx</item>
|
|
<item name="colorTypedWord">@color/typed_word_color_lxx</item>
|
|
<item name="colorAutoCorrect">@color/highlight_color_lxx</item>
|
|
<item name="colorSuggested">@color/suggested_word_color_lxx</item>
|
|
<item name="alphaObsoleted">70%</item>
|
|
</style>
|
|
<style
|
|
name="SuggestionWord.LXX"
|
|
parent="SuggestionWord"
|
|
>
|
|
<item name="android:background">@drawable/btn_suggestion_lxx</item>
|
|
<item name="android:textColor">@color/highlight_color_lxx</item>
|
|
</style>
|
|
</resources>
|