Commit e3ab674b authored by Friedrich Horschig's avatar Friedrich Horschig Committed by Commit Bot

[Android] Use modern svg icons in accessory and settings

Before this change, the keyboard accessory (and the settings pages it
stole these icons from) were using old icons.

This CL adds modern icons and replaces pngs with smaller vector assets:
ic_vpn_key.xml: 777B -> 767B
infobar_autofill_cc.xml: 1289B -> 661B
permission_location.xml: 2505B -> 773B

The images have been compressed with avocado for ~22% space gain:
ic_vpn_key.xml: 0.987 Kb - 24.1% = 0.749 Kb
infobar_autofill_cc.xml: 0.831 Kb - 22.3% = 0.646 Kb
permission_location.xml: 0.977 Kb - 22.7% = 0.755 Kb

Screenshots for all affected surfaces are attached to the linked bug.

Bug: 1028107
Change-Id: Ia66e7ae71f73a2e620969dd87ee74813cf9a9752
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1937007Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Commit-Queue: Friedrich [CET] <fhorschig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719225}
parent 7e8af9a6
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 The Chromium Authors. All rights reserved. <!--Copyright 2019 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.-->
Use of this source code is governed by a BSD-style license that can be <vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:targetApi="21" android:width="24dp" android:height="24dp" android:viewportWidth="24.0" android:viewportHeight="24.0">
found in the LICENSE file. --> <path android:pathData="M7.5 6c2.796 0 5.145 1.912 5.811 4.5H22.5v3h-2V18H17v-4.5h-3.69C12.646 16.089 10.297 18 7.5 18c-3.314 0-6-2.686-6-6s2.686-6 6-6zm0 3.5C6.12 9.5 5 10.62 5 12s1.12 2.5 2.5 2.5S10 13.38 10 12 8.88 9.5 7.5 9.5z" android:strokeWidth="1" android:fillColor="#000000" android:fillType="evenOdd"/>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:targetApi="21"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="@color/default_icon_color"
android:pathData="M12.65,10C11.83,7.67 9.61,6 7,6c-3.31,0 -6,2.69 -6,6s2.69,6 6,6c2.61,0 4.83,-1.67 5.65,-4H17v4h4v-4h2v-4H12.65zM7,14c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2z"/>
</vector> </vector>
<?xml version="1.0" encoding="utf-8"?>
<!--Copyright 2019 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.-->
<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:targetApi="21" android:width="24dp" android:height="24dp" android:viewportWidth="24.0" android:viewportHeight="24.0">
<path android:pathData="M20 4H4C2.89 4 2.01 4.89 2.01 6L2 18c0 1.11 0.89 2 2 2h16c1.11 0 2-0.89 2-2V6c0-1.11-0.89-2-2-2zm0 14H4v-7h16v7zm0-10H4V6h16v2z" android:strokeWidth="1" android:fillColor="#000000"/>
</vector>
<?xml version="1.0" encoding="utf-8"?>
<!--Copyright 2019 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.-->
<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:targetApi="21" android:width="24dp" android:height="24dp" android:viewportWidth="24.0" android:viewportHeight="24.0">
<path android:pathData="M12 2c3.87 0 7 3.13 7 7 0 5.25-7 13-7 13S5 14.25 5 9c0-3.87 3.13-7 7-7zm0 2C9.24 4 7 6.24 7 9c0 2.85 2.92 7.21 5 9.88 2.12-2.69 5-7 5-9.88 0-2.76-2.24-5-5-5zm0 2.5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5S9.5 10.38 9.5 9s1.12-2.5 2.5-2.5z" android:strokeWidth="1" android:fillColor="#000000"/>
</vector>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment