diff options
Diffstat (limited to 'Settings/res/xml/accessibility_color_correction.xml')
-rw-r--r-- | Settings/res/xml/accessibility_color_correction.xml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/Settings/res/xml/accessibility_color_correction.xml b/Settings/res/xml/accessibility_color_correction.xml new file mode 100644 index 000000000..b26aa5d02 --- /dev/null +++ b/Settings/res/xml/accessibility_color_correction.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2022 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. + --> + +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:title="@string/accessibility_color_correction"> + + <com.android.tv.settings.widget.SwitchWithSoundPreference + android:key="toggle_color_correction" + android:persistent="true" + android:title="@string/color_correction_usage" + android:fragment="com.android.tv.settings.accessibility.AccessibilityColorCorrectionPreviewFragment" /> + + <PreferenceCategory + android:key="color_correction_mode" + android:title="@string/color_correction_color_mode"> + <com.android.tv.settings.RadioPreference + android:key="color_correction_mode_deuteranomaly" + android:persistent="true" + android:title="@string/color_correction_mode_deuteranomaly" + android:summary="@string/color_correction_mode_deuteranomaly_summary" + app:radioGroup="color_correction_mode" + android:fragment="com.android.tv.settings.accessibility.AccessibilityColorCorrectionPreviewFragment" /> + <com.android.tv.settings.RadioPreference + android:key="color_correction_mode_protanomaly" + android:persistent="true" + android:title="@string/color_correction_mode_protanomaly" + android:summary="@string/color_correction_mode_protanomaly_summary" + app:radioGroup="color_correction_mode" + android:fragment="com.android.tv.settings.accessibility.AccessibilityColorCorrectionPreviewFragment" /> + <com.android.tv.settings.RadioPreference + android:key="color_correction_mode_tritanomaly" + android:persistent="true" + android:title="@string/color_correction_mode_tritanomaly" + android:summary="@string/color_correction_mode_tritanomaly_summary" + app:radioGroup="color_correction_mode" + android:fragment="com.android.tv.settings.accessibility.AccessibilityColorCorrectionPreviewFragment" /> + <com.android.tv.settings.RadioPreference + android:key="color_correction_mode_grayscale" + android:persistent="true" + android:title="@string/color_correction_mode_grayscale" + app:radioGroup="color_correction_mode" + android:fragment="com.android.tv.settings.accessibility.AccessibilityColorCorrectionPreviewFragment" /> + </PreferenceCategory> + +</PreferenceScreen>
\ No newline at end of file |