Cherish:Custom Rounded Corner and Padding preferences [2/2]
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>
This commit is contained in:
@@ -56,4 +56,43 @@
|
||||
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>
|
||||
Reference in New Issue
Block a user