PowerMenu: Power menu alpha and dim (2/2)

Commit Original :
Project-Xtended/packages_apps_Xtensions@8c5495c
This commit is contained in:
Hung Phan
2020-04-11 16:54:28 +07:00
parent b6057bf285
commit 33142e3c12
3 changed files with 31 additions and 0 deletions

View File

@@ -244,4 +244,8 @@
<string name="accent_summary">Tự làm Gradient</string>
<string name="gradient_color">Chọn Gradient</string>
<string name="gradient_summary">Làm hiệu ứng Gradient</string>
<!-- Power menu and dialogs opacity -->
<string name="panel_porn_title">Menu nguồn trong suốt</string>
<string name="power_menu_transparency">Độ mờ của menu nguồn / khởi động lại</string>
<string name="power_menu_dialog_dim"> Nguồn/ khởi động lại hộp thoại mờ nền</string>
</resources>

View File

@@ -279,5 +279,10 @@
<string name="accent_summary">Gradient Maker</string>
<string name="gradient_color">Gradient picker</string>
<string name="gradient_summary">Gradient effect maker</string>
<!-- Power menu and dialogs opacity -->
<string name="panel_porn_title">Power Menu Transparency</string>
<string name="power_menu_transparency">Power/reboot menu opacity</string>
<string name="power_menu_dialog_dim">Power/reboot dialog dim background amount</string>
</resources>

View File

@@ -17,6 +17,28 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/powermenu_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory
android:title="@string/panel_porn_title">
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="transparent_power_menu"
android:title="@string/power_menu_transparency"
android:max="100"
android:min="0"
settings:unitsLeft=""
settings:unitsRight="%"
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"
settings:unitsLeft=""
settings:unitsRight="%"
android:defaultValue="50" />
</PreferenceCategory>
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:icon="@drawable/ic_recovery"