summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJoey <joey@lineageos.org>2018-04-12 21:31:25 +0200
committerJoey <joey@lineageos.org>2018-05-21 14:42:22 +0200
commit57b4c04e745eb8ab0d8259ed5a24ea176976191f (patch)
tree991ad4997b97d4a30be16e30dfc56edf655e1ae1 /res
parent8fc47fa6856ccd6ddbef8c096c5df8885baeca8b (diff)
downloadandroid_packages_apps_Trebuchet-57b4c04e745eb8ab0d8259ed5a24ea176976191f.zip
android_packages_apps_Trebuchet-57b4c04e745eb8ab0d8259ed5a24ea176976191f.tar.gz
android_packages_apps_Trebuchet-57b4c04e745eb8ab0d8259ed5a24ea176976191f.tar.bz2
Trebuchet: make forced adaptive icons optional
Change-Id: Ie84af7114118f54b2d267a35ce24dd5e58c0be22 Signed-off-by: Joey <joey@lineageos.org>
Diffstat (limited to 'res')
-rw-r--r--res/drawable/ic_settings_force_adaptive.xml24
-rw-r--r--res/values/lineage_strings.xml3
-rw-r--r--res/xml/launcher_preferences.xml9
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 0000000..21a9c90
--- /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 49114cb..980de5d 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 45f3b6e..195b6bf 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"