maxwen | b51c111 | 2017-01-12 01:10:46 +0100 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2017 The OmniROM Project |
| 3 | |
| 4 | This program is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by |
| 6 | the Free Software Foundation, either version 2 of the License, or |
| 7 | (at your option) any later version. |
| 8 | |
| 9 | This program is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | GNU General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU General Public License |
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | --> |
| 17 | <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> |
| 19 | |
| 20 | <PreferenceCategory |
| 21 | android:key="category_statusbar" |
| 22 | android:title="@string/statusbar_title"> |
| 23 | |
| 24 | <PreferenceScreen |
| 25 | android:key="statusbar_battery" |
| 26 | android:title="@string/battery_title" |
| 27 | android:summary="@string/statusbar_battery_summary" |
| 28 | android:fragment="org.omnirom.omnigears.interfacesettings.StatusbarBatterySettings" /> |
| 29 | |
| 30 | </PreferenceCategory> |
| 31 | |
| 32 | <PreferenceCategory |
| 33 | android:key="status_bar_custom_header_category" |
| 34 | android:title="@string/notification_title" > |
| 35 | |
| 36 | <org.omnirom.omnigears.preference.SystemSettingSwitchPreference |
| 37 | android:key="status_bar_custom_header" |
| 38 | android:title="@string/status_bar_custom_header_title" |
| 39 | android:summary="@string/status_bar_custom_header_summary" |
| 40 | android:defaultValue="false" /> |
| 41 | |
| 42 | <ListPreference |
| 43 | android:key="custom_header_provider" |
| 44 | android:title="@string/custom_header_provider_title" |
| 45 | android:persistent="false" |
| 46 | android:entries="@array/custom_header_provider_entries" |
| 47 | android:entryValues="@array/custom_header_provider_values" |
| 48 | android:dependency="status_bar_custom_header" /> |
| 49 | |
| 50 | <ListPreference |
| 51 | android:key="daylight_header_pack" |
| 52 | android:title="@string/daylight_header_pack_title" |
| 53 | android:persistent="false" |
| 54 | android:dependency="status_bar_custom_header" /> |
| 55 | |
| 56 | <PreferenceScreen |
| 57 | android:key="custom_header_browse" |
| 58 | android:title="@string/custom_header_browse_title" |
| 59 | android:summary="@string/custom_header_browse_summary" |
| 60 | android:dependency="status_bar_custom_header" |
| 61 | android:persistent="false" > |
| 62 | <intent android:action="android.intent.action.MAIN" |
| 63 | android:targetPackage="org.omnirom.omnistyle" |
| 64 | android:targetClass="org.omnirom.omnistyle.BrowseHeaderActivity" /> |
| 65 | </PreferenceScreen> |
| 66 | |
| 67 | <org.omnirom.omnigears.preference.SeekBarPreference |
| 68 | android:key="status_bar_custom_header_shadow" |
| 69 | android:title="@string/status_bar_custom_header_shadow_title" |
| 70 | android:summary="@string/status_bar_custom_header_shadow_summary" |
| 71 | android:max="100" |
| 72 | settings:min="0" |
| 73 | settings:unitsLeft="" |
| 74 | settings:unitsRight="@string/unit_percent" |
| 75 | android:persistent="false" |
| 76 | android:dependency="status_bar_custom_header" /> |
| 77 | |
| 78 | </PreferenceCategory> |
| 79 | </PreferenceScreen> |