diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/ic_settings_force_adaptive.xml | 24 | ||||
-rw-r--r-- | res/values/lineage_strings.xml | 3 | ||||
-rw-r--r-- | res/xml/launcher_preferences.xml | 9 |
3 files changed, 36 insertions, 0 deletions
diff --git a/res/drawable/ic_settings_force_adaptive.xml b/res/drawable/ic_settings_force_adaptive.xml new file mode 100644 index 000000000..21a9c9079 --- /dev/null +++ b/res/drawable/ic_settings_force_adaptive.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?><!-- + Copyright (C) 2017 The LineageOS Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="@dimen/settings_icon_size" + android:height="@dimen/settings_icon_size" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> + <path + android:fillColor="@color/settings_icons" + android:pathData="M12,8c-2.21,0 -4,1.79 -4,4s1.79,4 4,4 4,-1.79 4,-4 -1.79,-4 -4,-4zM5,15L3,15v4c0,1.1 0.9,2 2,2h4v-2L5,19v-4zM5,5h4L9,3L5,3c-1.1,0 -2,0.9 -2,2v4h2L5,5zM19,3h-4v2h4v4h2L21,5c0,-1.1 -0.9,-2 -2,-2zM19,19h-4v2h4c1.1,0 2,-0.9 2,-2v-4h-2v4z" /> +</vector> diff --git a/res/values/lineage_strings.xml b/res/values/lineage_strings.xml index 49114cb45..980de5da3 100644 --- a/res/values/lineage_strings.xml +++ b/res/values/lineage_strings.xml @@ -67,6 +67,9 @@ <string name="settings_icon_shape">Icons shape</string> <string name="settings_icon_badging_desc_on">A bubble will be displayed above the icon when there\'s a notification</string> <string name="settings_icon_badging_desc_off">No bubble will be displayed above the icon when there\'s a notification</string> + <string name="settings_icon_force_adaptive_title">Force adaptive icons</string> + <string name="settings_icon_force_adaptive_desc_on">Icons with a custom shape will be boxed</string> + <string name="settings_icon_force_adaptive_desc_off">Icons with a custom shape will not be boxed</string> <string name="settings_feed">Enable feed integration</string> <string name="settings_edit_allow_title">Allow edit</string> <string name="settings_edit_allow_summary_on">Icons and widgets can be added, removed and moved on the homescreen</string> diff --git a/res/xml/launcher_preferences.xml b/res/xml/launcher_preferences.xml index 45f3b6edc..195b6bf18 100644 --- a/res/xml/launcher_preferences.xml +++ b/res/xml/launcher_preferences.xml @@ -97,6 +97,15 @@ android:summary="%s" android:title="@string/settings_icon_shape" /> + <SwitchPreference + android:defaultValue="false" + android:icon="@drawable/ic_settings_force_adaptive" + android:key="pref_icon_force_adaptive" + android:persistent="true" + android:summaryOn="@string/settings_icon_force_adaptive_desc_on" + android:summaryOff="@string/settings_icon_force_adaptive_desc_off" + android:title="@string/settings_icon_force_adaptive_title" /> + <com.android.launcher3.views.ButtonPreference android:key="pref_icon_badging" android:title="@string/icon_badging_title" |