Files
packages_apps_Evolver/res/xml/monet_engine.xml
minaripenguin 646fd87edc Evolver: Monet engine: Do not allow luminance factor greater than 130%
* on our test anything greater than 130% results to system neutral colors becoming white
2025-06-11 02:36:28 +09:00

90 lines
3.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021-2024 crDroid Android 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/com.android.settings"
android:key="monet_settings"
android:title="@string/themes_monet_title">
<ListPreference
android:key="theme_style"
android:title="@string/monet_engine_style_title"
android:entries="@array/monet_engine_style_entries"
android:entryValues="@array/monet_engine_style_values"
android:defaultValue="0" />
<ListPreference
android:key="color_source"
android:title="@string/monet_engine_color_source_title"
android:entries="@array/monet_engine_color_source_entries"
android:entryValues="@array/monet_engine_color_source_values"
android:defaultValue="0" />
<org.evolution.settings.preferences.colorpicker.ColorPickerPreference
android:key="accent_color"
android:title="@string/monet_engine_custom_color_title"
android:summary="@string/monet_engine_custom_color_summary"
android:defaultValue="0xFF1b6ef3" />
<SwitchPreferenceCompat
android:key="accent_background"
android:title="@string/monet_engine_custom_bgcolor_title"
android:summary="@string/monet_engine_custom_bgcolor_summary"
android:defaultValue="false" />
<org.evolution.settings.preferences.colorpicker.ColorPickerPreference
android:key="bg_color"
android:title="@string/monet_engine_color_override_title"
android:dependency="accent_background"
android:defaultValue="0xFF1b6ef3" />
<org.evolution.settings.preferences.CustomSeekBarPreference
android:key="luminance_factor"
android:title="@string/monet_engine_luminance_factor_title"
android:summary="@string/monet_engine_luminance_factor_summary"
android:defaultValue="0"
android:max="30"
settings:min="-95"
settings:interval="5"
settings:units="%"
settings:showSign="true" />
<org.evolution.settings.preferences.CustomSeekBarPreference
android:key="chroma_factor"
android:title="@string/monet_engine_chroma_factor_title"
android:summary="@string/monet_engine_chroma_factor_summary"
android:defaultValue="0"
android:max="100"
settings:min="-95"
settings:interval="5"
settings:units="%"
settings:showSign="true" />
<SwitchPreferenceCompat
android:key="whole_palette"
android:title="@string/monet_engine_whole_palette_title"
android:summary="@string/monet_engine_whole_palette_summary"
android:defaultValue="false" />
<SwitchPreferenceCompat
android:key="tint_background"
android:title="@string/monet_engine_tint_background_title"
android:summary="@string/monet_engine_tint_background_summary"
android:defaultValue="false" />
</PreferenceScreen>