Cherish: Power/reboot menu transparency (1/2)

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
LorDClockaN
2018-11-30 12:56:33 +05:30
committed by Hưng Phan
parent 527b6b1421
commit 117c3c83fe
2 changed files with 19 additions and 0 deletions

View File

@@ -669,4 +669,9 @@
<string name="qs_set_animation_style">%1$s</string> <string name="qs_set_animation_style">%1$s</string>
<string name="qs_set_animation_duration">%1$s</string> <string name="qs_set_animation_duration">%1$s</string>
<string name="qs_set_animation_interpolator">%1$s</string> <string name="qs_set_animation_interpolator">%1$s</string>
<!-- Power menu and dialogs opacity -->
<string name="power_menu_transparency">Power/reboot menu opacity</string>
<string name="power_menu_dialog_dim">Power/reboot dialog dim background amount</string>
</resources> </resources>

View File

@@ -18,6 +18,20 @@
android:title="@string/powermenu_title" android:title="@string/powermenu_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="transparent_power_menu"
android:title="@string/power_menu_transparency"
android:max="100"
android:min="0"
android:defaultValue="100" />
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="transparent_power_dialog_dim"
android:title="@string/power_menu_dialog_dim"
android:max="100"
android:min="0"
android:defaultValue="50" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference <com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="powermenu_power" android:key="powermenu_power"
android:title="@string/powermenu_power" android:title="@string/powermenu_power"