1
0
Fork 0

New Settings screen

* Settings screen is now based on the Android SharedPreferences

* Added function key configuration on the Settings screen

* Added a setting for toggling the on-screen buttons

* Added a dark/light theme setting

* Improved translations

* Fixed a problem with launching the Settings screen directly from the Android settings

* Fixed ignoring keys not actually ignoring them properly
This commit is contained in:
sspanak 2022-11-08 15:13:28 +02:00 committed by Dimo Karaivanov
parent 4e59d3393c
commit b550d5d5dd
84 changed files with 1463 additions and 1205 deletions

View file

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="pref_lang_titles">
<item>English</item>
<item>Русский</item>
<item>Deutsch</item>
<item>Français</item>
<item>Italiano</item>
<item>Українська</item>
<item>Български</item>
<item>Nederlands</item>
</string-array>
<!--pref_lang_titles pair with pref_lang_values -->
<integer-array translatable="false" name="pref_lang_values">
<item>@integer/LANG_EN</item>
<item>@integer/LANG_RU</item>
<item>@integer/LANG_DE</item>
<item>@integer/LANG_FR</item>
<item>@integer/LANG_IT</item>
<item>@integer/LANG_UK</item>
<item>@integer/LANG_BG</item>
<item>@integer/LANG_NL</item>
</integer-array>
</resources>

View file

@ -1,8 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="button_text">#EFEBE9</color>
<color name="candidate_background">#333333</color>
<color name="candidate_color">#CCCCCC</color>
<color name="candidate_selected">#555555</color>
<!-- Light theme -->
<color name="button_text">#242424</color>
<color name="candidate_background">#CECECE</color>
<color name="candidate_color">#202020</color>
<color name="candidate_selected">#AAAAAA</color>
<color name="candidate_separator">#888888</color>
<!-- Dark theme -->
<color name="dark_button_text">#C0C0C0</color>
<color name="dark_candidate_background">#333333</color>
<color name="dark_candidate_color">#CCCCCC</color>
<color name="dark_candidate_selected">#555555</color>
</resources>

View file

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- MAKE SURE THESE MATCH WITH with IDs in "languages/definitions" -->
<integer name="LANG_EN">1</integer>
<integer name="LANG_RU">2</integer>
<integer name="LANG_DE">3</integer>
<integer name="LANG_FR">4</integer>
<integer name="LANG_IT">5</integer>
<integer name="LANG_UK">6</integer>
<integer name="LANG_BG">7</integer>
<integer name="LANG_NL">8</integer>
<integer name="LANG_DEFAULT">@integer/LANG_EN</integer>
</resources>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<resources>
<string translatable="false" name="help_url">https://github.com/sspanak/tt9/blob/master/docs/user-manual.md</string>
<string name="app_name" translatable="false">Traditional T9</string>
<string name="app_settings">Traditional T9 Settings</string>
@ -14,21 +14,45 @@
<string name="add_word_invalid_language">Cannot insert a word when no language is selected.</string>
<string name="add_word_title">Add Word</string>
<string name="pref_help">Show Help</string>
<string name="pref_choose_languages">Choose Languages</string>
<string name="pref_loaddict">Load dictionary</string>
<string name="pref_loaduserdict">Load user dictionary</string>
<string translatable="false" name="pref_loaduserdictdesc">SDcard/traditionalt9/user.lang.dict (lang: en/ru/de/fr)</string>
<string name="pref_truncatedict">Clear dictionary</string>
<string name="pref_category_about">About</string>
<string name="pref_category_appearance">Appearance</string>
<string name="pref_category_dictionaries">Dictionaries</string>
<string name="pref_category_function_keys">Select Hotkeys</string>
<string name="pref_choose_languages">Choose Languages</string>
<string name="pref_dark_theme">Dark Theme</string>
<string name="pref_show_soft_function_keys">Show on-screen keys</string>
<string name="pref_help">Help</string>
<string name="dictionary_cancel_load">Cancel loading</string>
<string name="dictionary_load_bad_char">Loading failed. Invalid word \"%1$s\" on line %2$d of language \"%3$s\".</string>
<string name="dictionary_load_cancelled">Dictionary load cancelled.</string>
<string name="dictionary_load_error">Failed loading the dictionary for language \"%1$s\" (%2$s).</string>
<string name="dictionary_load_failed">Dictionary load failed.</string>
<string name="dictionary_loaded">Dictionary load completed.</string>
<string name="dictionary_loading">Loading dictionary (%1$s)…</string>
<string name="dictionary_loading_user_dict">Loading user dictionary…</string>
<string name="dictionary_load_title">Load dictionary</string>
<string name="dictionary_not_found">Loading failed. Dictionary for \"%1$s\" not found.</string>
<string name="dictionary_truncate_title">Clear dictionary</string>
<string name="dictionary_truncated">Dictionary successfully cleared.</string>
<string name="function_add_word_key">Add Word key</string>
<string name="function_backspace_key">Backspace key</string>
<string name="function_next_language_key">Next Language key</string>
<string name="function_next_mode_key">Input Mode key</string>
<string name="function_show_settings_key">Show Settings key</string>
<string name="function_reset_keys_title">Restore Default Keys</string>
<string name="function_reset_keys_done">Default key settings restored.</string>
<string name="key_hold_key">(hold)</string>
<string name="key_none" translatable="false">--</string>
<string name="key_back">Back</string>
<string name="key_call">Call</string>
<string name="key_delete" translatable="false">Delete</string>
<string name="key_f1" translatable="false">F1</string>
<string name="key_f2" translatable="false">F2</string>
<string name="key_f3" translatable="false">F3</string>
<string name="key_f4" translatable="false">F4</string>
<string name="key_menu" translatable="false">Menu</string>
<string name="key_pound" translatable="false">#</string>
<string name="key_star" translatable="false"></string>
</resources>

View file

@ -1,24 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
<style name="hSeparator">
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">2px</item>
<item name="android:layout_marginBottom">1dp</item>
<item name="android:layout_marginTop">1dp</item>
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
<declare-styleable name="PrefItem">
<attr name="title" format="string" />
<attr name="summary" format="string" />
</declare-styleable>
</resources>