Cherish:[SQUASH]Add QS columns/rows options and QS tile title visibility [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
ezio84
2020-11-06 00:33:09 +01:00
committed by Hưng Phan
parent aff05b4e82
commit 31172d54b2
2 changed files with 53 additions and 0 deletions

View File

@@ -1088,4 +1088,13 @@
<string name="smart_pixels_percent">Percent of pixels to disable</string>
<string name="smart_pixels_shift">Burn-in protection interval</string>
<string name="smart_pixels_warning_text">Smart Pixels is a power saving feature. Depending on how many pixels you decide to turn off, you could see a significant improvement in battery life. For a good user experience, we recommend setting the amount of disabled pixels to 75 percent while shifting every 10 minutes.</string>
<!-- QS rows and columns -->
<string name="qs_columns_rows_category_title">QS columns and rows</string>
<string name="qs_rows_columns_title">QS rows and columns</string>
<string name="qs_rows_portrait_title">Tiles rows on portrait</string>
<string name="qs_rows_landscape_title">Tiles rows on landscape</string>
<string name="qs_columns_portrait_title">Tiles columns on portrait</string>
<string name="qs_columns_landscape_title">Tiles columns on landscape</string>
<string name="qs_tile_title_visibility_title">Show tiles title</string>
</resources>

View File

@@ -114,6 +114,50 @@
</PreferenceCategory>
<PreferenceCategory
android:key="qs_columns_rows_category"
android:title="@string/qs_columns_rows_category_title">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="qs_tile_title_visibility"
android:icon="@drawable/ic_qs_tile"
android:title="@string/qs_tile_title_visibility_title"
android:defaultValue="true" />
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
android:key="qs_rows_portrait"
android:title="@string/qs_rows_portrait_title"
android:max="5"
android:min="1"
android:defaultValue="3"
settings:units="" />
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
android:key="qs_rows_landscape"
android:title="@string/qs_rows_landscape_title"
android:max="5"
android:min="1"
android:defaultValue="1"
settings:units="" />
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
android:key="qs_columns_portrait"
android:title="@string/qs_columns_portrait_title"
android:max="7"
android:min="1"
android:defaultValue="4"
settings:units="" />
<com.cherish.settings.preferences.CustomSystemSeekBarPreference
android:key="qs_columns_landscape"
android:title="@string/qs_columns_landscape_title"
android:max="9"
android:min="1"
android:defaultValue="4"
settings:units="" />
</PreferenceCategory>
<!-- QS Quick Pull Down -->
<com.cherish.settings.preferences.SecureSettingSwitchPreference
android:key="status_bar_quick_qs_pulldown"