Extensions: Add Runtime Rounded Corner preferences Change-Id: I6dd7b0c3b8fce13c738f2239ba5504b14d1cc568 Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com> Signed-off-by: Shubham Singh <coolsks94@gmail.com> RoundCornerPreferences: Use frameworks default values Change-Id: Ib5ad571bec311b75bc138bae238e5ca8ee005358 Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com> RoundCornerPreferences: Evaluate framework values correctly Change-Id: I81d9830d4cfc76a568d6862c344c1f44666e3bc9 Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com> Allow using framework values for rounded corners [2/2] Change-Id: I04ac74f7ea2062dfe7c3a783bdb08b65cb774d34 Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com> RoundCorners: Allow radius to reach 60 - Some devices have almost 50. Allow configuring a bit over this. Extensions: corners: Update seekbars when framework values toggled - Clean up and refactor some older code - Add new method to restore corner values to the seekbar prefs Change-Id: Ib6869208c8cc0eeaf30acfe2126c1af52a21b01a Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com> Signed-off-by: Shubham Singh <coolsks94@gmail.com> Change-Id: I3cd485c178d74f507e78c9ad173a73d1650a7561 Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com> Signed-off-by: Shubham Singh <coolsks94@gmail.com> Signed-off-by: SagarMakhar <sagarmakhar@gmail.com> Signed-off-by: blinoff82 <blinov.in@gmail.com>
98 lines
3.5 KiB
XML
98 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2020 CherishOS
|
|
|
|
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"
|
|
android:title="@string/theme_title"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
|
|
|
|
|
<PreferenceCategory
|
|
android:key="system_theme_category"
|
|
android:title="@string/theme_type_title">
|
|
|
|
<ListPreference
|
|
android:key="theme_switch"
|
|
android:icon="@drawable/ic_system_theme"
|
|
android:title="@string/theme_type_title"
|
|
android:summary="%s"
|
|
android:dialogTitle="@string/theme_type_summary"
|
|
android:entries="@array/theme_type_titles"
|
|
android:entryValues="@array/theme_type_values"
|
|
android:defaultValue="1"/>
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="system_rgb_category"
|
|
android:title="@string/theme_rgb_title">
|
|
|
|
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
|
android:key="accent_color"
|
|
android:icon="@drawable/ic_accent_picker"
|
|
android:title="@string/accent_color"
|
|
android:summary="@string/accent_summary"
|
|
android:defaultValue="0xffffff"
|
|
android:persistent="false" />
|
|
|
|
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
|
android:key="gradient_color"
|
|
android:icon="@drawable/ic_accent_picker"
|
|
android:title="@string/gradient_color"
|
|
android:summary="@string/gradient_summary"
|
|
android:defaultValue="0xffffff"
|
|
android:persistent="false" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="rounded_corners_category"
|
|
android:title="@string/corners_category_title" >
|
|
|
|
<com.cherish.settings.preferences.SecureSettingSwitchPreference
|
|
android:key="sysui_rounded_fwvals"
|
|
android:title="@string/corner_fwvals"
|
|
android:defaultValue="true"
|
|
android:disableDependentsState="true" />
|
|
|
|
<com.cherish.settings.preferences.CustomSeekBarPreference
|
|
android:key="sysui_rounded_size"
|
|
android:title="@string/corner_radius"
|
|
android:max="60"
|
|
settings:min="0"
|
|
settings:units="dp"
|
|
android:persistent="false"
|
|
android:dependency="sysui_rounded_fwvals" />
|
|
|
|
<com.cherish.settings.preferences.CustomSeekBarPreference
|
|
android:key="sysui_rounded_content_padding"
|
|
android:title="@string/content_padding"
|
|
android:max="30"
|
|
settings:min="0"
|
|
settings:units="dp"
|
|
android:persistent="false"
|
|
android:dependency="sysui_rounded_fwvals" />
|
|
|
|
<com.cherish.settings.preferences.CustomSeekBarPreference
|
|
android:key="sysui_status_bar_padding"
|
|
android:title="@string/status_bar_padding"
|
|
android:max="30"
|
|
settings:min="0"
|
|
settings:units="dp"
|
|
android:persistent="false"
|
|
android:dependency="sysui_rounded_fwvals" />
|
|
|
|
</PreferenceCategory>
|
|
</PreferenceScreen> |