diff options
author | Philip P. Moltmann <moltmann@google.com> | 2018-12-07 09:12:04 -0800 |
---|---|---|
committer | Philip P. Moltmann <moltmann@google.com> | 2018-12-07 09:12:09 -0800 |
commit | 2d1c0b78200e92a9c803c12f919e6126193edf72 (patch) | |
tree | 2bbc29c1c4563b63f6782bd56527e4f883d03894 | |
parent | 0b243df366688e8733b950810eefe1e24c8ed1a9 (diff) |
Give print spooler a prettier icon.
Test: Looked at icon
Change-Id: I67200d662e980ee80faca6dffb3b7e11aa03764c
-rw-r--r-- | packages/PrintSpooler/AndroidManifest.xml | 1 | ||||
-rw-r--r-- | packages/PrintSpooler/res/drawable/app_icon_foreground.xml | 34 | ||||
-rw-r--r-- | packages/PrintSpooler/res/drawable/ic_app_icon.xml | 21 |
3 files changed, 56 insertions, 0 deletions
diff --git a/packages/PrintSpooler/AndroidManifest.xml b/packages/PrintSpooler/AndroidManifest.xml index 03eafc4ab836..478ee54b40e5 100644 --- a/packages/PrintSpooler/AndroidManifest.xml +++ b/packages/PrintSpooler/AndroidManifest.xml @@ -51,6 +51,7 @@ <application android:allowClearUserData="true" android:label="@string/app_label" + android:icon="@drawable/ic_app_icon" android:supportsRtl="true"> <service diff --git a/packages/PrintSpooler/res/drawable/app_icon_foreground.xml b/packages/PrintSpooler/res/drawable/app_icon_foreground.xml new file mode 100644 index 000000000000..249e387d7f9f --- /dev/null +++ b/packages/PrintSpooler/res/drawable/app_icon_foreground.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2018 The Android Open Source 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. + --> +<inset + xmlns:android="http://schemas.android.com/apk/res/android" + android:insetTop="25%" + android:insetRight="25%" + android:insetBottom="25%" + android:insetLeft="25%"> + + <vector + android:width="36dp" + android:height="36dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#FFFFFF" + android:pathData="M19,8L5,8c-1.66,0 -3,1.34 -3,3v6h4v4h12v-4h4v-6c0,-1.66 -1.34,-3 -3,-3zM16,19L8,19v-5h8v5zM19,12c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM18,3L6,3v4h12L18,3z" /> + </vector> +</inset> diff --git a/packages/PrintSpooler/res/drawable/ic_app_icon.xml b/packages/PrintSpooler/res/drawable/ic_app_icon.xml new file mode 100644 index 000000000000..82c18e07f5c4 --- /dev/null +++ b/packages/PrintSpooler/res/drawable/ic_app_icon.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2018 The Android Open Source 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. + --> + +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@*android:color/accent_device_default_light"/> + <foreground android:drawable="@drawable/app_icon_foreground"/> +</adaptive-icon>
\ No newline at end of file |