Cherish:optional miui-like brightness slider [3/3]
This commit is contained in:
15
res/drawable/ic_brightness_qs.xml
Normal file
15
res/drawable/ic_brightness_qs.xml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<vector android:height="24dp" android:viewportHeight="24"
|
||||||
|
android:viewportWidth="24" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m12,7c-0.552,0 -1,-0.448 -1,-1v-2c0,-0.552 0.448,-1 1,-1s1,0.448 1,1v2c0,0.552 -0.448,1 -1,1z"/>
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m12,7c-0.552,0 -1,-0.448 -1,-1v-2c0,-0.552 0.448,-1 1,-1s1,0.448 1,1v2c0,0.552 -0.448,1 -1,1z"/>
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m8.001,8.072c-0.346,0 -0.682,-0.179 -0.867,-0.5l-1,-1.732c-0.276,-0.478 -0.113,-1.09 0.366,-1.366 0.477,-0.277 1.089,-0.113 1.366,0.366l1,1.732c0.276,0.478 0.113,1.09 -0.366,1.366 -0.157,0.091 -0.33,0.134 -0.499,0.134z"/>
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m8.001,8.072c-0.346,0 -0.682,-0.179 -0.867,-0.5l-1,-1.732c-0.276,-0.478 -0.113,-1.09 0.366,-1.366 0.477,-0.277 1.089,-0.113 1.366,0.366l1,1.732c0.276,0.478 0.113,1.09 -0.366,1.366 -0.157,0.091 -0.33,0.134 -0.499,0.134z"/>
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m5.071,11c-0.169,0 -0.342,-0.043 -0.499,-0.134l-1.732,-1c-0.479,-0.276 -0.642,-0.888 -0.366,-1.366 0.276,-0.479 0.887,-0.644 1.366,-0.366l1.732,1c0.478,0.276 0.642,0.888 0.366,1.366 -0.186,0.321 -0.521,0.5 -0.867,0.5z"/>
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m5.071,11c-0.169,0 -0.342,-0.043 -0.499,-0.134l-1.732,-1c-0.479,-0.276 -0.642,-0.888 -0.366,-1.366 0.276,-0.479 0.887,-0.644 1.366,-0.366l1.732,1c0.478,0.276 0.642,0.888 0.366,1.366 -0.186,0.321 -0.521,0.5 -0.867,0.5z"/>
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m15.999,8.072c-0.169,0 -0.342,-0.043 -0.499,-0.134 -0.479,-0.276 -0.642,-0.888 -0.366,-1.366l1,-1.732c0.276,-0.479 0.888,-0.643 1.366,-0.366 0.479,0.276 0.642,0.888 0.366,1.366l-1,1.732c-0.185,0.321 -0.521,0.5 -0.867,0.5z"/>
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m15.999,8.072c-0.169,0 -0.342,-0.043 -0.499,-0.134 -0.479,-0.276 -0.642,-0.888 -0.366,-1.366l1,-1.732c0.276,-0.479 0.888,-0.643 1.366,-0.366 0.479,0.276 0.642,0.888 0.366,1.366l-1,1.732c-0.185,0.321 -0.521,0.5 -0.867,0.5z"/>
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m18.929,11c-0.346,0 -0.682,-0.179 -0.867,-0.5 -0.276,-0.478 -0.112,-1.09 0.366,-1.366l1.732,-1c0.478,-0.277 1.089,-0.112 1.366,0.366 0.276,0.478 0.112,1.09 -0.366,1.366l-1.732,1c-0.157,0.091 -0.329,0.134 -0.499,0.134z"/>
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m18.929,11c-0.346,0 -0.682,-0.179 -0.867,-0.5 -0.276,-0.478 -0.112,-1.09 0.366,-1.366l1.732,-1c0.478,-0.277 1.089,-0.112 1.366,0.366 0.276,0.478 0.112,1.09 -0.366,1.366l-1.732,1c-0.157,0.091 -0.329,0.134 -0.499,0.134z"/>
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m23,13h-5.257c-0.762,-2.344 -3.04,-4 -5.743,-4s-4.981,1.656 -5.743,4h-5.257c-0.552,0 -1,0.448 -1,1s0.448,1 1,1h22c0.552,0 1,-0.448 1,-1s-0.448,-1 -1,-1z"/>
|
||||||
|
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="m12,21c-0.212,0 -0.415,-0.09 -0.558,-0.248l-2.25,-2.5c-0.198,-0.22 -0.248,-0.537 -0.127,-0.807s0.389,-0.445 0.685,-0.445h4.5c0.296,0 0.564,0.174 0.685,0.445s0.07,0.587 -0.127,0.807l-2.25,2.5c-0.143,0.158 -0.346,0.248 -0.558,0.248z"/>
|
||||||
|
</vector>
|
||||||
@@ -488,4 +488,6 @@
|
|||||||
<string name="qs_footer_text_summary">Hiển thị văn bản ở dưới cùng của bảng cài đặt nhanh</string>
|
<string name="qs_footer_text_summary">Hiển thị văn bản ở dưới cùng của bảng cài đặt nhanh</string>
|
||||||
<string name="qs_footer_text_string_title">Tùy chỉnh văn bản cuối trang</string>
|
<string name="qs_footer_text_string_title">Tùy chỉnh văn bản cuối trang</string>
|
||||||
<string name="qs_footer_text_string_summary">Đặt mặc định là #KeeptheLove</string>
|
<string name="qs_footer_text_string_summary">Đặt mặc định là #KeeptheLove</string>
|
||||||
|
<string name="brightness_slider_qs_unexpanded">Thanh trượt độ sáng kiểu MIUI (beta)</string>
|
||||||
|
<string name="brightness_slider_qs_unexpanded_summary">Hiển thị thanh trượt độ sáng trong bảng điều khiển nhanh</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -546,4 +546,7 @@
|
|||||||
<string name="qs_footer_text_summary">Display text at bottom of QS panel</string>
|
<string name="qs_footer_text_summary">Display text at bottom of QS panel</string>
|
||||||
<string name="qs_footer_text_string_title">Customize footer text</string>
|
<string name="qs_footer_text_string_title">Customize footer text</string>
|
||||||
<string name="qs_footer_text_string_summary">Set to empty for default #KeeptheLove</string>
|
<string name="qs_footer_text_string_summary">Set to empty for default #KeeptheLove</string>
|
||||||
|
|
||||||
|
<string name="brightness_slider_qs_unexpanded">MIUI style brightness slider (beta)</string>
|
||||||
|
<string name="brightness_slider_qs_unexpanded_summary">Shows brightness slider below qs panel</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -125,6 +125,13 @@
|
|||||||
android:summary="@string/lockscreen_qs_disabled_summary"
|
android:summary="@string/lockscreen_qs_disabled_summary"
|
||||||
android:defaultValue="false" />
|
android:defaultValue="false" />
|
||||||
|
|
||||||
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||||
|
android:key="brightness_slider_qs_unexpanded"
|
||||||
|
android:icon="@drawable/ic_brightness_qs"
|
||||||
|
android:title="@string/brightness_slider_qs_unexpanded"
|
||||||
|
android:summary="@string/brightness_slider_qs_unexpanded_summary"
|
||||||
|
android:defaultValue="false" />
|
||||||
|
|
||||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||||
android:key="qs_bottom_brightness"
|
android:key="qs_bottom_brightness"
|
||||||
android:icon="@drawable/ic_brightness"
|
android:icon="@drawable/ic_brightness"
|
||||||
|
|||||||
Reference in New Issue
Block a user