Add a setting page for Reduce Bright Colors under A11y
This is essentially a copy page of ToggleDaltonizerPreferenceFragment. We extend ToggleFeaturePreferenceFragment to maintain consistency with other shortcut assignable a11y feature. UI is a draft This CL: 1) allows users to enabled/disable RBC with the a11y shortcut (button, gestures, volume keys), if assigned 2) adds a slider and persist switch to the template ToggleFeaturePreferenceFragment page (which already contains a feature switch, shortcut preference, and footer description) 3) enables/disables the intensity slider when RBC is on/off 4) sets placeholders for calling into ColorDisplayService in controllers and tests 5) follows convention set by other color transformations settings and places feature under Experimental section in A11y settings page if transformations can't be efficiently performed by hardware Test: A11y setting and page appears, tested activation with shortcut, preference controller tests Bug: b/128465252 Change-Id: I291bb86ce3d855ce052ca70dc7a941a888e2c723
This commit is contained in:
@@ -5239,6 +5239,18 @@
|
||||
<!-- Summary shown for tritanomaly (blue-yellow color blindness) [CHAR LIMIT=45] -->
|
||||
<string name="daltonizer_mode_tritanomaly_summary">Blue-yellow</string>
|
||||
|
||||
<!-- TODO(b/170970602): remove translatable=false when RBC has official name and strings -->
|
||||
<!-- Title for the accessibility preference to configure Reduce Bright Colors feature. [CHAR LIMIT=NONE] -->
|
||||
<string name="reduce_bright_colors_preference_title" translatable="false">Reduce Bright Colors</string>
|
||||
<!-- Used in the accessibility service settings to control switching Reduce Bright Colors on/off. [CHAR LIMIT=NONE] -->
|
||||
<string name="reduce_bright_colors_switch_title" translatable="false">Use Reduce Bright Colors</string>
|
||||
<!-- Subtitle that describes Reduce Bright Colors. [CHAR LIMIT=NONE] -->
|
||||
<string name="reduce_bright_colors_preference_subtitle" translatable="false">Reduce Bright Colors reduces screen brightness.</string>
|
||||
<!-- Title for setting the brightness intensity of the display using Reduce Bright Colors. [CHAR LIMIT=NONE] -->
|
||||
<string name="reduce_bright_colors_intensity_preference_title" translatable="false">Intensity</string>
|
||||
<!-- Title for setting whether the Reduce Bright Colors activation state persists across reboots. [CHAR LIMIT=NONE] -->
|
||||
<string name="reduce_bright_colors_persist_preference_title" translatable="false">Keeps feature on after a restart</string>
|
||||
|
||||
<!-- Subtitle for the accessibility preference to configure feature that performs click action soon after mouse/trackpad pointer stops moving, in case delay before click is extremely short. Placeholder will be set to the number of milliseconds to which the delay amounts. [CHAR LIMIT=NONE] -->
|
||||
<plurals name="accessibilty_autoclick_preference_subtitle_short_delay">
|
||||
<item quantity="one">Short (<xliff:g id="click_delay_label" example="200">%1$s</xliff:g> second)</item>
|
||||
|
Reference in New Issue
Block a user