make icon monochrome

This commit is contained in:
Miuzarte
2026-04-24 19:15:07 +08:00
parent c394e682f7
commit 7168e82fcb
17 changed files with 68 additions and 86 deletions

View File

@@ -54,8 +54,8 @@ android {
applicationId = "io.github.miuzarte.scrcpyforandroid"
minSdk = 26
targetSdk = 37
versionCode = 19
versionName = "0.2.3"
versionCode = 20
versionName = "0.2.4"
externalNativeBuild {
cmake {

View File

@@ -17,7 +17,7 @@
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/Theme.ScrcpyForAndroid">

View File

@@ -1,46 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 27.5.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 48 48" style="enable-background:new 0 0 48 48;" xml:space="preserve">
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
viewBox="0 0 48 48" style="enable-background:new 0 0 48 48;" xml:space="preserve">
<style type="text/css">
.st0{opacity:0.2;enable-background:new ;}
.st1{fill:#E4E4E4;}
.st2{fill:#077063;}
.st3{opacity:0.1;enable-background:new ;}
.st4{fill:none;stroke:#30DD81;stroke-width:3;stroke-linecap:round;}
.st5{fill:#30DD81;}
.st6{fill:#FFFFFF;}
.st7{opacity:0.2;fill:#FFFFFF;enable-background:new ;}
.st0{opacity:0.2;enable-background:new ;}
.st1{fill:#FFEEE8;}
.st2{fill:#733420;}
.st3{opacity:0.1;enable-background:new ;}
.st4{fill:none;stroke:#CB7C62;stroke-width:3;stroke-linecap:round;}
.st5{fill:#CB7C62;}
.st6{fill:#FFEEE8;}
.st7{opacity:0.2;fill:#FFEEE8;enable-background:new ;}
</style>
<g class="st0">
<path d="M11.5,9c0-1.1,0.9-2,2-2h21c1.1,0,2,0.9,2,2v35c0,1.1-0.9,2-2,2h-21c-1.1,0-2-0.9-2-2V9z"/>
<path d="M11.5,9c0-1.1,0.9-2,2-2h21c1.1,0,2,0.9,2,2v35c0,1.1-0.9,2-2,2h-21c-1.1,0-2-0.9-2-2V9z"/>
</g>
<g>
<path class="st1" d="M13.5,6c-1.1,0-2,0.9-2,2v35c0,1.1,0.9,2,2,2h21c1.1,0,2-0.9,2-2V8c0-1.1-0.9-2-2-2H13.5z"/>
<path class="st1" d="M13.5,6c-1.1,0-2,0.9-2,2v35c0,1.1,0.9,2,2,2h21c1.1,0,2-0.9,2-2V8c0-1.1-0.9-2-2-2H13.5z"/>
</g>
<g>
<path class="st1" d="M13.5,2c-1.1,0-2,0.9-2,2v35c0,1.1,0.9,2,2,2h21c1.1,0,2-0.9,2-2V4c0-1.1-0.9-2-2-2H13.5z"/>
<path class="st1" d="M13.5,2c-1.1,0-2,0.9-2,2v35c0,1.1,0.9,2,2,2h21c1.1,0,2-0.9,2-2V4c0-1.1-0.9-2-2-2H13.5z"/>
</g>
<path class="st2" d="M36.5,6h-25v35h25V6z"/>
<path class="st3" d="M15,28.1c-0.2,0-0.4,0.1-0.6,0.2c-0.5,0.3-0.6,1-0.3,1.5l2.3,3.3c-2.1,1.9-3.6,4.5-3.9,7.5
c-0.1,1.1,1.1,1.1,1.1,1.1h20.7c0,0,1.2,0,1.1-1.2c-0.3-3-1.7-5.6-3.9-7.5l2.2-3.3c0.3-0.5,0.2-1.2-0.3-1.5
c-0.2-0.2-0.5-0.2-0.8-0.2c-0.3,0.1-0.5,0.2-0.7,0.5l-2.2,3.3c-1.7-1-3.7-1.6-5.9-1.6c-2.1,0-4.2,0.6-5.9,1.6l-2.2-3.3
c-0.2-0.2-0.4-0.4-0.7-0.5C15.2,28.1,15.1,28.1,15,28.1z"/>
c-0.1,1.1,1.1,1.1,1.1,1.1h20.7c0,0,1.2,0,1.1-1.2c-0.3-3-1.7-5.6-3.9-7.5l2.2-3.3c0.3-0.5,0.2-1.2-0.3-1.5
c-0.2-0.2-0.5-0.2-0.8-0.2c-0.3,0.1-0.5,0.2-0.7,0.5l-2.2,3.3c-1.7-1-3.7-1.6-5.9-1.6c-2.1,0-4.2,0.6-5.9,1.6l-2.2-3.3
c-0.2-0.2-0.4-0.4-0.7-0.5C15.2,28.1,15.1,28.1,15,28.1z"/>
<path class="st4" d="M17.7,32.4l-2.7-4"/>
<path class="st4" d="M30.3,32.4l2.7-4"/>
<path class="st5" d="M24,29.5c-6,0-10.9,4.6-11.5,10.4C12.4,41,13.6,41,13.6,41h20.7c0,0,1.2,0,1.1-1.2C34.9,34,30,29.5,24,29.5z"/>
<path class="st0" d="M18.3,35.2c-0.8,0-1.4,0.6-1.4,1.4c0,0,0,0,0,0c0,0.8,0.6,1.4,1.4,1.4c0,0,0,0,0,0c0.8,0,1.4-0.6,1.4-1.4
c0,0,0,0,0,0C19.7,35.9,19,35.2,18.3,35.2C18.3,35.2,18.3,35.2,18.3,35.2z M29.7,35.2c-0.8,0-1.4,0.6-1.4,1.4c0,0,0,0,0,0
c0,0.8,0.6,1.4,1.4,1.4c0,0,0,0,0,0c0.8,0,1.4-0.6,1.4-1.4c0,0,0,0,0,0C31.2,35.9,30.5,35.2,29.7,35.2
C29.7,35.2,29.7,35.2,29.7,35.2z"/>
c0,0,0,0,0,0C19.7,35.9,19,35.2,18.3,35.2C18.3,35.2,18.3,35.2,18.3,35.2z M29.7,35.2c-0.8,0-1.4,0.6-1.4,1.4c0,0,0,0,0,0
c0,0.8,0.6,1.4,1.4,1.4c0,0,0,0,0,0c0.8,0,1.4-0.6,1.4-1.4c0,0,0,0,0,0C31.2,35.9,30.5,35.2,29.7,35.2
C29.7,35.2,29.7,35.2,29.7,35.2z"/>
<path class="st6" d="M18.3,34.5c0.8,0,1.4,0.6,1.4,1.4l0,0c0,0.8-0.6,1.4-1.4,1.4c0,0,0,0,0,0c-0.8,0-1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
c0.3-0.1,0.6,0,0.8,0.2c0.2,0.1,0.3,0.3,0.4,0.5c0.2-0.5,0-1-0.4-1.3c-0.2-0.2-0.5-0.2-0.8-0.2c-0.3,0.1-0.5,0.2-0.7,0.5l-2.2,3.3
c-1.7-1-3.7-1.6-5.9-1.6c-2.1,0-4.2,0.6-5.9,1.6l-2.2-3.3c-0.2-0.2-0.4-0.4-0.7-0.5C15.2,27.3,15.1,27.3,15,27.3z M31.9,32.6
l-0.3,0.4c2.1,1.8,3.5,4.3,3.8,7.2c0-0.1,0-0.2,0-0.4C35.2,37,33.9,34.5,31.9,32.6z M16.1,32.6c-2,1.9-3.3,4.4-3.6,7.3
c0,0.1,0,0.3,0,0.4c0.4-2.9,1.8-5.4,3.8-7.2L16.1,32.6z"/>
</svg>

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -1,18 +1,3 @@
<!--
~ Copyright (C) 2026 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.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
@@ -29,13 +14,13 @@
android:fillAlpha="0.2"/>
<path
android:pathData="M13.5,6c-1.1,0 -2,0.9 -2,2v35c0,1.1 0.9,2 2,2h21c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2H13.5z"
android:fillColor="#E4E4E4"/>
android:fillColor="@color/ic_launcher_device"/>
<path
android:pathData="M13.5,2c-1.1,0 -2,0.9 -2,2v35c0,1.1 0.9,2 2,2h21c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2H13.5z"
android:fillColor="#E4E4E4"/>
android:fillColor="@color/ic_launcher_device"/>
<path
android:pathData="M36.5,6h-25v35h25V6z"
android:fillColor="#077063"/>
android:fillColor="@color/ic_launcher_foreground_sub"/>
<path
android:fillColor="#FF000000"
android:pathData="M15,28.1c-0.2,0 -0.4,0.1 -0.6,0.2c-0.5,0.3 -0.6,1 -0.3,1.5l2.3,3.3c-2.1,1.9 -3.6,4.5 -3.9,7.5c-0.1,1.1 1.1,1.1 1.1,1.1h20.7c0,0 1.2,0 1.1,-1.2c-0.3,-3 -1.7,-5.6 -3.9,-7.5l2.2,-3.3c0.3,-0.5 0.2,-1.2 -0.3,-1.5c-0.2,-0.2 -0.5,-0.2 -0.8,-0.2c-0.3,0.1 -0.5,0.2 -0.7,0.5l-2.2,3.3c-1.7,-1 -3.7,-1.6 -5.9,-1.6c-2.1,0 -4.2,0.6 -5.9,1.6l-2.2,-3.3c-0.2,-0.2 -0.4,-0.4 -0.7,-0.5C15.2,28.1 15.1,28.1 15,28.1z"
@@ -45,17 +30,17 @@
android:pathData="M17.7,32.4l-2.7,-4"
android:strokeWidth="3"
android:fillColor="#00000000"
android:strokeColor="#30DD81"
android:strokeColor="@color/ic_launcher_foreground_main"
android:strokeLineCap="round"/>
<path
android:pathData="M30.3,32.4l2.7,-4"
android:strokeWidth="3"
android:fillColor="#00000000"
android:strokeColor="#30DD81"
android:strokeColor="@color/ic_launcher_foreground_main"
android:strokeLineCap="round"/>
<path
android:pathData="M24,29.5c-6,0 -10.9,4.6 -11.5,10.4C12.4,41 13.6,41 13.6,41h20.7c0,0 1.2,0 1.1,-1.2C34.9,34 30,29.5 24,29.5z"
android:fillColor="#30DD81"/>
android:fillColor="@color/ic_launcher_foreground_main"/>
<path
android:fillColor="#FF000000"
android:pathData="M18.3,35.2c-0.8,0 -1.4,0.6 -1.4,1.4c0,0 0,0 0,0c0,0.8 0.6,1.4 1.4,1.4c0,0 0,0 0,0c0.8,0 1.4,-0.6 1.4,-1.4c0,0 0,0 0,0C19.7,35.9 19,35.2 18.3,35.2C18.3,35.2 18.3,35.2 18.3,35.2zM29.7,35.2c-0.8,0 -1.4,0.6 -1.4,1.4c0,0 0,0 0,0c0,0.8 0.6,1.4 1.4,1.4c0,0 0,0 0,0c0.8,0 1.4,-0.6 1.4,-1.4c0,0 0,0 0,0C31.2,35.9 30.5,35.2 29.7,35.2C29.7,35.2 29.7,35.2 29.7,35.2z"
@@ -63,14 +48,14 @@
android:fillAlpha="0.2"/>
<path
android:pathData="M18.3,34.5c0.8,0 1.4,0.6 1.4,1.4l0,0c0,0.8 -0.6,1.4 -1.4,1.4c0,0 0,0 0,0c-0.8,0 -1.4,-0.6 -1.4,-1.4l0,0C16.8,35.2 17.5,34.5 18.3,34.5L18.3,34.5z"
android:fillColor="#FFFFFF"/>
android:fillColor="@color/colorOnPrimary"/>
<path
android:pathData="M29.7,34.5c0.8,0 1.4,0.6 1.4,1.4l0,0c0,0.8 -0.6,1.4 -1.4,1.4l0,0c-0.8,0 -1.4,-0.6 -1.4,-1.4l0,0C28.3,35.2 29,34.5 29.7,34.5L29.7,34.5z"
android:fillColor="#FFFFFF"/>
android:fillColor="@color/colorOnPrimary"/>
<path
android:pathData="M15,27.3c-0.2,0 -0.4,0.1 -0.6,0.2c-0.4,0.3 -0.6,0.8 -0.4,1.3c0.1,-0.2 0.2,-0.4 0.4,-0.5c0.2,-0.1 0.4,-0.2 0.6,-0.2c0.1,0 0.1,0 0.2,0c0.3,0.1 0.5,0.2 0.7,0.5l2.2,3.3c1.7,-1 3.7,-1.6 5.9,-1.6c2.1,0 4.2,0.6 5.9,1.6l2.2,-3.3c0.2,-0.2 0.4,-0.4 0.7,-0.5c0.3,-0.1 0.6,0 0.8,0.2c0.2,0.1 0.3,0.3 0.4,0.5c0.2,-0.5 0,-1 -0.4,-1.3c-0.2,-0.2 -0.5,-0.2 -0.8,-0.2c-0.3,0.1 -0.5,0.2 -0.7,0.5l-2.2,3.3c-1.7,-1 -3.7,-1.6 -5.9,-1.6c-2.1,0 -4.2,0.6 -5.9,1.6l-2.2,-3.3c-0.2,-0.2 -0.4,-0.4 -0.7,-0.5C15.2,27.3 15.1,27.3 15,27.3zM31.9,32.6l-0.3,0.4c2.1,1.8 3.5,4.3 3.8,7.2c0,-0.1 0,-0.2 0,-0.4C35.2,37 33.9,34.5 31.9,32.6zM16.1,32.6c-2,1.9 -3.3,4.4 -3.6,7.3c0,0.1 0,0.3 0,0.4c0.4,-2.9 1.8,-5.4 3.8,-7.2L16.1,32.6z"
android:strokeAlpha="0.2"
android:fillColor="#FFFFFF"
android:fillColor="@color/colorOnPrimary"
android:fillAlpha="0.2"/>
</group>
</vector>

View File

@@ -1,21 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2026 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="@drawable/ic_launcher_background"/>
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
</adaptive-icon>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">@android:color/system_accent1_100</color>
<color name="ic_launcher_device">@android:color/system_accent1_50</color>
<color name="ic_launcher_foreground_main">@android:color/system_accent1_400</color>
<color name="ic_launcher_foreground_sub">@android:color/system_accent1_700</color>
<color name="colorPrimary">@android:color/system_accent1_600</color>
<color name="colorOnPrimary">@android:color/system_accent1_0</color>
</resources>

View File

@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>
<color name="ic_launcher_background">#733420</color>
<color name="ic_launcher_device">#FFEEE8</color>
<color name="ic_launcher_foreground_main">#CB7C62</color>
<color name="ic_launcher_foreground_sub">#733420</color>
<color name="colorPrimary">#CB7C62</color>
<color name="colorOnPrimary">#FFEEE8</color>
</resources>