[android] Use SVG assets for download status icons

Signed-off-by: Jean-Baptiste Charron <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-07-05 09:56:22 +02:00
committed by Harry Bond
parent 979c713436
commit 309eed2365
61 changed files with 271 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 638 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 488 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 566 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 842 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 678 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 530 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 630 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 872 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1014 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 994 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 860 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 984 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/dl_done" />
<size
android:width="40dp"
android:height="40dp" />
</shape>
</item>
<item
android:left="8dp"
android:right="8dp"
android:bottom="8dp"
android:top="8dp">
<vector
android:width="20dp"
android:height="20dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="#6c6c6c"
android:pathData="M382,606L721,267Q733,255 749.5,255Q766,255 778,267Q790,279 790,295.5Q790,312 778,324L410,692Q398,704 382,704Q366,704 354,692L182,520Q170,508 170.5,491.5Q171,475 183,463Q195,451 211.5,451Q228,451 240,463L382,606Z" />
</vector>
</item>
</layer-list>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/dl_done_night" />
<size
android:width="40dp"
android:height="40dp" />
</shape>
</item>
<item
android:left="8dp"
android:right="8dp"
android:bottom="8dp"
android:top="8dp">
<vector
android:width="20dp"
android:height="20dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="#cccdce"
android:pathData="M382,606L721,267Q733,255 749.5,255Q766,255 778,267Q790,279 790,295.5Q790,312 778,324L410,692Q398,704 382,704Q366,704 354,692L182,520Q170,508 170.5,491.5Q171,475 183,463Q195,451 211.5,451Q228,451 240,463L382,606Z" />
</vector>
</item>
</layer-list>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/dl_download" />
<size
android:width="40dp"
android:height="40dp" />
</shape>
</item>
<item
android:bottom="8dp"
android:left="8dp"
android:right="8dp"
android:top="8dp">
<vector
android:width="20dp"
android:height="20dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFF"
android:pathData="M19,9h-4v-6h-6v6h-4l7,7 7,-7ZM5,18v2h14v-2h-14Z" />
</vector>
</item>
</layer-list>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/dl_download_night" />
<size
android:width="40dp"
android:height="40dp" />
</shape>
</item>
<item
android:bottom="8dp"
android:left="8dp"
android:right="8dp"
android:top="8dp">
<vector
android:width="20dp"
android:height="20dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#756940"
android:pathData="M19,9h-4v-6h-6v6h-4l7,7 7,-7ZM5,18v2h14v-2h-14Z" />
</vector>
</item>
</layer-list>

View File

@@ -4,8 +4,16 @@
<item>
<shape android:shape="oval">
<solid android:color="@color/base_red"/>
<size
android:width="40dp"
android:height="40dp" />
</shape>
</item>
<item android:drawable="@drawable/ic_downloader_retry"/>
<item
android:bottom="8dp"
android:drawable="@drawable/ic_downloader_retry"
android:left="8dp"
android:right="8dp"
android:top="8dp" />
</layer-list>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/dl_download" />
<size
android:width="40dp"
android:height="40dp" />
</shape>
</item>
<item
android:bottom="8dp"
android:left="8dp"
android:right="8dp"
android:top="8dp">
<vector
android:width="20dp"
android:height="20dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFF"
android:pathData="M10,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2h-8l-2,-2z" />
</vector>
</item>
</layer-list>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/dl_done" />
<size
android:width="40dp"
android:height="40dp" />
</shape>
</item>
<item
android:bottom="8dp"
android:left="8dp"
android:right="8dp"
android:top="8dp">
<vector
android:width="20dp"
android:height="20dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#6c6c6c"
android:pathData="M10,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2h-8l-2,-2z" />
</vector>
</item>
</layer-list>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/dl_done_night" />
<size
android:width="40dp"
android:height="40dp" />
</shape>
</item>
<item
android:bottom="8dp"
android:left="8dp"
android:right="8dp"
android:top="8dp">
<vector
android:width="20dp"
android:height="20dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#cccdce"
android:pathData="M10,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2h-8l-2,-2z" />
</vector>
</item>
</layer-list>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/dl_download_night" />
<size
android:width="40dp"
android:height="40dp" />
</shape>
</item>
<item
android:bottom="8dp"
android:left="8dp"
android:right="8dp"
android:top="8dp">
<vector
android:width="20dp"
android:height="20dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#756940"
android:pathData="M10,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2h-8l-2,-2z" />
</vector>
</item>
</layer-list>

View File

@@ -3,9 +3,17 @@
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/base_yellow"/>
<solid android:color="@color/dl_update"/>
<size
android:width="40dp"
android:height="40dp" />
</shape>
</item>
<item android:drawable="@drawable/ic_downloader_update"/>
<item
android:bottom="8dp"
android:drawable="@drawable/ic_downloader_update"
android:left="8dp"
android:right="8dp"
android:top="8dp" />
</layer-list>

View File

@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="20dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:pathData="M480,680q-17,0 -28.5,-11.5T440,640q0,-17 11.5,-28.5T480,600q17,0 28.5,11.5T520,640q0,17 -11.5,28.5T480,680ZM480,520q-17,0 -28.5,-11.5T440,480v-160q0,-17 11.5,-28.5T480,280q17,0 28.5,11.5T520,320v160q0,17 -11.5,28.5T480,520ZM200,480q0,54 21.5,99.5T280,658v-58q0,-17 11.5,-28.5T320,560q17,0 28.5,11.5T360,600v160q0,17 -11.5,28.5T320,800L160,800q-17,0 -28.5,-11.5T120,760q0,-17 11.5,-28.5T160,720h69q-51,-44 -80,-106t-29,-134q0,-94 49,-170t128,-116q14,-8 29.5,-1t20.5,23q5,16 -1.5,31T325,270q-56,31 -90.5,86.5T200,480ZM760,501q0,-54 -21.5,-99.5T680,323v58q0,17 -11.5,28.5T640,421q-17,0 -28.5,-11.5T600,381v-160q0,-17 11.5,-28.5T640,181h160q17,0 28.5,11.5T840,221q0,17 -11.5,28.5T800,261h-69q51,44 80,106t29,134q0,94 -49,170.5T663,788q-14,8 -29.5,0.5T613,765q-5,-16 1.5,-31t20.5,-23q56,-31 90.5,-86.5T760,501Z"
android:fillColor="#FFFFFF"/>
</vector>

View File

@@ -1,6 +1,6 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="40dp"
android:height="40dp"
android:width="24dp"
android:height="24dp"
android:tint="#FFFFFF"
android:viewportWidth="24"
android:viewportHeight="24">

View File

@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M10,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2h-8l-2,-2z"
android:fillColor="#FFFFFF"/>
</vector>

View File

@@ -21,5 +21,5 @@
android:layout_height="match_parent"
android:scaleType="center"
android:background="?clickableBackground"
tools:src="@drawable/downloader_failed"/>
tools:src="@drawable/downloader_update"/>
</FrameLayout>

View File

@@ -143,4 +143,11 @@
<color name="material_calendar_surface_dark">#929292</color>
<color name="notification_warning">#FFC22219</color>
<!-- Downloader -->
<color name="dl_done">#ebebeb</color>
<color name="dl_done_night">#54575b</color>
<color name="dl_download">#FF37653F</color>
<color name="dl_download_night">#ffe68c</color>
<color name="dl_update">#ffc30a</color>
</resources>

View File

@@ -158,19 +158,19 @@
</style>
<style name="MwmTheme.Downloader">
<item name="status_done">@drawable/ic_downloader_done</item>
<item name="status_downloadable">@drawable/ic_downloader_download</item>
<item name="status_done">@drawable/downloader_done</item>
<item name="status_downloadable">@drawable/downloader_download</item>
<item name="status_failed">@drawable/downloader_failed</item>
<item name="status_updatable">@drawable/downloader_update</item>
<item name="status_folder">@drawable/ic_downloader_folder</item>
<item name="status_folder_done">@drawable/ic_downloader_folder_done</item>
<item name="status_folder">@drawable/downloader_folder</item>
<item name="status_folder_done">@drawable/downloader_folder_done</item>
</style>
<style name="MwmTheme.Downloader.Night">
<item name="status_done">@drawable/ic_downloader_done_night</item>
<item name="status_downloadable">@drawable/ic_downloader_download_night</item>
<item name="status_folder">@drawable/ic_downloader_folder_night</item>
<item name="status_folder_done">@drawable/ic_downloader_folder_done_night</item>
<item name="status_done">@drawable/downloader_done_night</item>
<item name="status_downloadable">@drawable/downloader_download_night</item>
<item name="status_folder">@drawable/downloader_folder_night</item>
<item name="status_folder_done">@drawable/downloader_folder_done_night</item>
</style>
<style name="MwmTheme.NavButtonsRound">