Implement modifier keys settings UI.
Add four modifier keys and one reset button. Bug: 244535460 Test: local test Change-Id: I45822b0d8391022c17439dc25ab86fe022e9f43f
This commit is contained in:
@@ -3709,6 +3709,37 @@
|
||||
<!-- Summary text for 'Switch apps' [CHAR LIMIT=60] -->
|
||||
<string name="trackpad_switch_apps_summary">Swipe left or right with four fingers</string>
|
||||
|
||||
<!-- Title for the button to trigger the 'modifier keys settings' page. [CHAR LIMIT=35] -->
|
||||
<string name="modifier_keys_settings">Modifier keys</string>
|
||||
<!-- Summary text for the 'modifier_keys_settings' page. [CHAR LIMIT=100] -->
|
||||
<string name="modifier_keys_settings_summary">Change the behavior of keys</string>
|
||||
|
||||
<!-- Title for the button to trigger the 'modifier keys caps lock'. [CHAR LIMIT=15] -->
|
||||
<string name="modifier_keys_caps_lock" translatable="false">Caps lock</string>
|
||||
<!-- Title for the button to trigger the 'modifier keys ctrl'. [CHAR LIMIT=15] -->
|
||||
<string name="modifier_keys_ctrl" translatable="false">Ctrl</string>
|
||||
<!-- Title for the button to trigger the 'modifier keys meta'. [CHAR LIMIT=15] -->
|
||||
<string name="modifier_keys_meta" translatable="false">Meta</string>
|
||||
<!-- Title for the button to trigger the 'modifier keys alt'. [CHAR LIMIT=15] -->
|
||||
<string name="modifier_keys_alt" translatable="false">Alt</string>
|
||||
|
||||
<!-- Title for the button to trigger the 'modifier keys reset all'. [CHAR LIMIT=35] -->
|
||||
<string name="modifier_keys_reset_title">Reset all</string>
|
||||
<!-- Summary text for the buttons. [CHAR LIMIT=35] -->
|
||||
<string name="modifier_keys_default_summary">Default</string>
|
||||
<!-- Message for the 'Reset all' page. [CHAR LIMIT=100] -->
|
||||
<string name="modifier_keys_reset_message">Are you sure you would like to reset all the modifier keys to their default?</string>
|
||||
<!-- Text of the done button. [CHAR LIMIT=15] -->
|
||||
<string name="modifier_keys_done">Done</string>
|
||||
<!-- Text of the cancel button. [CHAR LIMIT=15] -->
|
||||
<string name="modifier_keys_cancel">Cancel</string>
|
||||
<!-- Text of the restore button. [CHAR LIMIT=15] -->
|
||||
<string name="modifier_keys_restore">Restore</string>
|
||||
<!-- Title for the modifier key picker dialog page [CHAR LIMIT=35] -->
|
||||
<string name="modifier_keys_picker_title">Choose modifier key</string>
|
||||
<!-- Summary for the modifier key picker dialog page [CHAR LIMIT=35] -->
|
||||
<string name="modifier_keys_picker_summary">Choose a new key for <xliff:g id="modifier_key_default_name">%1$s</xliff:g>:</string>
|
||||
|
||||
<!-- Summary text for keyboards when no layout has been selected. [CHAR LIMIT=35] -->
|
||||
<string name="default_keyboard_layout">Default</string>
|
||||
|
||||
|
@@ -378,6 +378,20 @@
|
||||
<item name="android:colorControlHighlight">@color/ripple_material_inverse</item>
|
||||
</style>
|
||||
|
||||
<style name="ModifierKeyButtonCancel" parent="@android:style/Widget.Material.Button">
|
||||
<item name="android:background">@drawable/modifier_key_bordered</item>
|
||||
<item name="android:stateListAnimator">@null</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:padding">4dp</item>
|
||||
</style>
|
||||
|
||||
<style name="ModifierKeyButtonDone" parent="@android:style/Widget.Material.Button">
|
||||
<item name="android:background">@drawable/modifier_key_colored</item>
|
||||
<item name="android:stateListAnimator">@null</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:padding">4dp</item>
|
||||
</style>
|
||||
|
||||
<style name="LockPatternContainerStyle">
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:maxHeight">@dimen/biometric_auth_pattern_view_max_size</item>
|
||||
|
Reference in New Issue
Block a user