Cherish: Monet settings
This reverts commit f547af0ea1.
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
55
res/xml/monet_engine_settings.xml
Normal file
55
res/xml/monet_engine_settings.xml
Normal file
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 FlamingoOS 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:settings="http://schemas.android.com/apk/res-auto"
|
||||
android:title="@string/monet_engine_settings_title">
|
||||
|
||||
<!-- Accurate shades -->
|
||||
<com.cherish.settings.preferences.SecureSettingSwitchPreference
|
||||
android:key="monet_engine_accurate_shades"
|
||||
android:title="@string/accurate_shades_title"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<!-- Color override -->
|
||||
<com.cherish.settings.preferences.SecureSettingColorPickerPreference
|
||||
android:key="monet_engine_color_override"
|
||||
android:title="@string/color_override_title"
|
||||
settings:controller="com.cherish.settings.fragments.MonetCustomColorPreferenceController" />
|
||||
|
||||
<!-- Chroma factor -->
|
||||
<com.cherish.settings.preferences.CustomSeekBarPreference
|
||||
android:key="chroma_factor"
|
||||
android:title="@string/chroma_factor_title"
|
||||
android:defaultValue="100"
|
||||
android:max="100"
|
||||
android:persistent="false"
|
||||
android:min="0"
|
||||
settings:interval="10"
|
||||
settings:controller="com.cherish.settings.fragments.MonetChromaFactorPreferenceController" />
|
||||
|
||||
<!-- Custom lightness scale -->
|
||||
<com.cherish.settings.preferences.SecureSettingSwitchPreference
|
||||
android:key="monet_engine_linear_lightness"
|
||||
android:title="@string/linear_lightness_title"
|
||||
android:defaultValue="0" />
|
||||
|
||||
<!-- Brightness -->
|
||||
<com.cherish.settings.preferences.SecureSettingSeekBarPreference
|
||||
android:key="monet_engine_white_luminance"
|
||||
android:title="@string/white_luminance_title"
|
||||
android:defaultValue="425"
|
||||
android:max="1000"
|
||||
settings:min="1"
|
||||
settings:interval="100" />
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user