mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 14:13:45 +00:00
[android] Set different app icon for test and debug modes
Signed-off-by: Gonzalo Pesquero <gpesquero@yahoo.es>
This commit is contained in:
committed by
Konstantin Pastbin
parent
39bd613d8b
commit
1ab4b828aa
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/bg_app_icon_debug"/>
|
||||||
|
<foreground android:drawable="@drawable/ic_launcher_foreground_debug"/>
|
||||||
|
<monochrome android:drawable="@drawable/ic_launcher_foreground_monochrome"/>
|
||||||
|
</adaptive-icon>
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector
|
||||||
android:width="64dp"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:height="64dp"
|
android:width="64dp"
|
||||||
android:viewportWidth="64"
|
android:height="64dp"
|
||||||
android:viewportHeight="64">
|
android:viewportWidth="64"
|
||||||
|
android:viewportHeight="64">
|
||||||
<path
|
<path
|
||||||
android:pathData="m43.279,20.906a0.803,0.803 0,0 1,1.236 -0.052,16.697 16.697,0 0,1 4.243,11.142 16.697,16.697 0,0 1,-3.745 10.556,0.803 0.803,0 0,1 -1.256,-0.024l-1.726,-2.272a0.803,0.803 0,0 1,-0.008 -0.963,12.322 12.322,0 0,0 2.38,-7.297c0,-2.978 -1.052,-5.712 -2.806,-7.851a0.803,0.803 0,0 1,-0.02 -0.995z"
|
android:pathData="m43.279,20.906a0.803,0.803 0,0 1,1.236 -0.052,16.697 16.697,0 0,1 4.243,11.142 16.697,16.697 0,0 1,-3.745 10.556,0.803 0.803,0 0,1 -1.256,-0.024l-1.726,-2.272a0.803,0.803 0,0 1,-0.008 -0.963,12.322 12.322,0 0,0 2.38,-7.297c0,-2.978 -1.052,-5.712 -2.806,-7.851a0.803,0.803 0,0 1,-0.02 -0.995z"
|
||||||
android:fillColor="#ccdfca"/>
|
android:fillColor="@color/fg_app_icon_release"/>
|
||||||
<path
|
<path
|
||||||
android:pathData="m25.706,33.561a0.803,0.803 0,0 1,-0.309 -1.473l11.319,-7.12a0.803,0.803 0,0 1,1.2 0.911l-3.893,12.8a0.803,0.803 0,0 1,-1.505 0.088l-1.975,-4.475z"
|
android:pathData="m25.706,33.561a0.803,0.803 0,0 1,-0.309 -1.473l11.319,-7.12a0.803,0.803 0,0 1,1.2 0.911l-3.893,12.8a0.803,0.803 0,0 1,-1.505 0.088l-1.975,-4.475z"
|
||||||
android:fillColor="#ccdfca"/>
|
android:fillColor="@color/fg_app_icon_release"/>
|
||||||
<path
|
<path
|
||||||
android:pathData="m40.381,45.466a0.803,0.803 0,0 1,-0.249 1.188,16.697 16.697,0 0,1 -8.132,2.103 16.765,16.765 0,0 1,-16.757 -16.761,16.765 16.765,0 0,1 24.215,-15.007 0.803,0.803 0,0 1,0.281 1.204l-1.702,2.24a0.803,0.803 0,0 1,-0.971 0.245,12.322 12.322,0 0,0 -5.065,-1.084 12.402,12.402 0,0 0,-12.402 12.402c0,6.847 5.559,12.402 12.402,12.402a12.322,12.322 0,0 0,5.683 -1.377,0.803 0.803,0 0,1 1.007,0.225z"
|
android:pathData="m40.381,45.466a0.803,0.803 0,0 1,-0.249 1.188,16.697 16.697,0 0,1 -8.132,2.103 16.765,16.765 0,0 1,-16.757 -16.761,16.765 16.765,0 0,1 24.215,-15.007 0.803,0.803 0,0 1,0.281 1.204l-1.702,2.24a0.803,0.803 0,0 1,-0.971 0.245,12.322 12.322,0 0,0 -5.065,-1.084 12.402,12.402 0,0 0,-12.402 12.402c0,6.847 5.559,12.402 12.402,12.402a12.322,12.322 0,0 0,5.683 -1.377,0.803 0.803,0 0,1 1.007,0.225z"
|
||||||
android:fillColor="#fefdf6"/>
|
android:fillColor="@color/fg_app_icon_white"/>
|
||||||
</vector>
|
</vector>
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<vector
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="64dp"
|
||||||
|
android:height="64dp"
|
||||||
|
android:viewportWidth="64"
|
||||||
|
android:viewportHeight="64">
|
||||||
|
<path
|
||||||
|
android:pathData="m43.279,20.906a0.803,0.803 0,0 1,1.236 -0.052,16.697 16.697,0 0,1 4.243,11.142 16.697,16.697 0,0 1,-3.745 10.556,0.803 0.803,0 0,1 -1.256,-0.024l-1.726,-2.272a0.803,0.803 0,0 1,-0.008 -0.963,12.322 12.322,0 0,0 2.38,-7.297c0,-2.978 -1.052,-5.712 -2.806,-7.851a0.803,0.803 0,0 1,-0.02 -0.995z"
|
||||||
|
android:fillColor="@color/fg_app_icon_debug_fill1"
|
||||||
|
android:strokeWidth="@dimen/app_icon_border_width"
|
||||||
|
android:strokeColor="@color/fg_app_icon_debug_border"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m25.706,33.561a0.803,0.803 0,0 1,-0.309 -1.473l11.319,-7.12a0.803,0.803 0,0 1,1.2 0.911l-3.893,12.8a0.803,0.803 0,0 1,-1.505 0.088l-1.975,-4.475z"
|
||||||
|
android:fillColor="@color/fg_app_icon_debug_fill1"
|
||||||
|
android:strokeWidth="@dimen/app_icon_border_width"
|
||||||
|
android:strokeColor="@color/fg_app_icon_debug_border"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m40.381,45.466a0.803,0.803 0,0 1,-0.249 1.188,16.697 16.697,0 0,1 -8.132,2.103 16.765,16.765 0,0 1,-16.757 -16.761,16.765 16.765,0 0,1 24.215,-15.007 0.803,0.803 0,0 1,0.281 1.204l-1.702,2.24a0.803,0.803 0,0 1,-0.971 0.245,12.322 12.322,0 0,0 -5.065,-1.084 12.402,12.402 0,0 0,-12.402 12.402c0,6.847 5.559,12.402 12.402,12.402a12.322,12.322 0,0 0,5.683 -1.377,0.803 0.803,0 0,1 1.007,0.225z"
|
||||||
|
android:fillColor="@color/fg_app_icon_debug_fill2"
|
||||||
|
android:strokeWidth="@dimen/app_icon_border_width"
|
||||||
|
android:strokeColor="@color/fg_app_icon_white"/>
|
||||||
|
</vector>
|
||||||
@@ -1,12 +1,15 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="64dp"
|
android:width="64dp"
|
||||||
android:height="64dp"
|
android:height="64dp"
|
||||||
android:viewportWidth="64"
|
android:viewportWidth="64"
|
||||||
android:viewportHeight="64">
|
android:viewportHeight="64">
|
||||||
<path
|
<path
|
||||||
android:pathData="M43.938,20.588A0.803,0.803 0,0 0,43.279 20.906L41.577,23.15A0.803,0.803 0,0 0,41.597 24.145C43.351,26.284 44.402,29.018 44.402,31.997A12.322,12.322 0,0 1,42.022 39.293A0.803,0.803 0,0 0,42.031 40.257L43.756,42.527A0.803,0.803 0,0 0,45.013 42.552A16.697,16.697 0,0 0,48.757 31.997A16.697,16.697 0,0 0,44.515 20.854A0.803,0.803 0,0 0,43.938 20.588zM37.126,24.842A0.803,0.803 0,0 0,36.716 24.968L25.397,32.089A0.803,0.803 0,0 0,25.707 33.561L30.543,34.292L32.518,38.767A0.803,0.803 0,0 0,34.022 38.679L37.916,25.879A0.803,0.803 0,0 0,37.126 24.842z"
|
android:pathData="m43.279,20.906a0.803,0.803 0,0 1,1.236 -0.052,16.697 16.697,0 0,1 4.243,11.142 16.697,16.697 0,0 1,-3.745 10.556,0.803 0.803,0 0,1 -1.256,-0.024l-1.726,-2.272a0.803,0.803 0,0 1,-0.008 -0.963,12.322 12.322,0 0,0 2.38,-7.297c0,-2.978 -1.052,-5.712 -2.806,-7.851a0.803,0.803 0,0 1,-0.02 -0.995z"
|
||||||
android:fillColor="#BFFFFFFF" />
|
android:fillColor="#BFFFFFFF"/>
|
||||||
<path
|
<path
|
||||||
android:pathData="m40.381,45.466a0.803,0.803 0,0 1,-0.249 1.188,16.697 16.697,0 0,1 -8.132,2.103 16.765,16.765 0,0 1,-16.757 -16.761,16.765 16.765,0 0,1 24.215,-15.007 0.803,0.803 0,0 1,0.281 1.204l-1.702,2.24a0.803,0.803 0,0 1,-0.971 0.245,12.322 12.322,0 0,0 -5.065,-1.084 12.402,12.402 0,0 0,-12.402 12.402c0,6.847 5.559,12.402 12.402,12.402a12.322,12.322 0,0 0,5.683 -1.377,0.803 0.803,0 0,1 1.007,0.225z"
|
android:pathData="m25.706,33.561a0.803,0.803 0,0 1,-0.309 -1.473l11.319,-7.12a0.803,0.803 0,0 1,1.2 0.911l-3.893,12.8a0.803,0.803 0,0 1,-1.505 0.088l-1.975,-4.475z"
|
||||||
android:fillColor="#FFFFFF"/>
|
android:fillColor="#BFFFFFFF"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m40.381,45.466a0.803,0.803 0,0 1,-0.249 1.188,16.697 16.697,0 0,1 -8.132,2.103 16.765,16.765 0,0 1,-16.757 -16.761,16.765 16.765,0 0,1 24.215,-15.007 0.803,0.803 0,0 1,0.281 1.204l-1.702,2.24a0.803,0.803 0,0 1,-0.971 0.245,12.322 12.322,0 0,0 -5.065,-1.084 12.402,12.402 0,0 0,-12.402 12.402c0,6.847 5.559,12.402 12.402,12.402a12.322,12.322 0,0 0,5.683 -1.377,0.803 0.803,0 0,1 1.007,0.225z"
|
||||||
|
android:fillColor="#FFFFFF"/>
|
||||||
</vector>
|
</vector>
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="64dp"
|
||||||
|
android:height="64dp"
|
||||||
|
android:viewportWidth="64"
|
||||||
|
android:viewportHeight="64">
|
||||||
|
<path
|
||||||
|
android:pathData="m43.279,20.906a0.803,0.803 0,0 1,1.236 -0.052,16.697 16.697,0 0,1 4.243,11.142 16.697,16.697 0,0 1,-3.745 10.556,0.803 0.803,0 0,1 -1.256,-0.024l-1.726,-2.272a0.803,0.803 0,0 1,-0.008 -0.963,12.322 12.322,0 0,0 2.38,-7.297c0,-2.978 -1.052,-5.712 -2.806,-7.851a0.803,0.803 0,0 1,-0.02 -0.995z"
|
||||||
|
android:fillColor="@color/fg_app_icon_test_fill1"
|
||||||
|
android:strokeWidth="@dimen/app_icon_border_width"
|
||||||
|
android:strokeColor="@color/fg_app_icon_release"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m25.706,33.561a0.803,0.803 0,0 1,-0.309 -1.473l11.319,-7.12a0.803,0.803 0,0 1,1.2 0.911l-3.893,12.8a0.803,0.803 0,0 1,-1.505 0.088l-1.975,-4.475z"
|
||||||
|
android:fillColor="@color/fg_app_icon_test_fill1"
|
||||||
|
android:strokeWidth="@dimen/app_icon_border_width"
|
||||||
|
android:strokeColor="@color/fg_app_icon_release"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m40.381,45.466a0.803,0.803 0,0 1,-0.249 1.188,16.697 16.697,0 0,1 -8.132,2.103 16.765,16.765 0,0 1,-16.757 -16.761,16.765 16.765,0 0,1 24.215,-15.007 0.803,0.803 0,0 1,0.281 1.204l-1.702,2.24a0.803,0.803 0,0 1,-0.971 0.245,12.322 12.322,0 0,0 -5.065,-1.084 12.402,12.402 0,0 0,-12.402 12.402c0,6.847 5.559,12.402 12.402,12.402a12.322,12.322 0,0 0,5.683 -1.377,0.803 0.803,0 0,1 1.007,0.225z"
|
||||||
|
android:fillColor="@color/fg_app_icon_test_fill2"
|
||||||
|
android:strokeWidth="@dimen/app_icon_border_width"
|
||||||
|
android:strokeColor="@color/fg_app_icon_white"/>
|
||||||
|
</vector>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@color/bg_primary"/>
|
<background android:drawable="@color/bg_app_icon_release"/>
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||||
<monochrome android:drawable="@drawable/ic_launcher_foreground_monochrome"/>
|
<monochrome android:drawable="@drawable/ic_launcher_foreground_monochrome"/>
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
||||||
@@ -85,6 +85,20 @@
|
|||||||
<color name="bg_statusbar_translucent">#66000000</color>
|
<color name="bg_statusbar_translucent">#66000000</color>
|
||||||
<color name="bg_statusbar_night">#121417</color>
|
<color name="bg_statusbar_night">#121417</color>
|
||||||
|
|
||||||
|
<!-- App icons background and foreground colors -->
|
||||||
|
<color name="bg_app_icon_release">@color/bg_primary</color>
|
||||||
|
<color name="bg_app_icon_test">@color/bg_primary</color>
|
||||||
|
<color name="bg_app_icon_debug">#f8b42e</color>
|
||||||
|
|
||||||
|
<color name="fg_app_icon_white">#fefdf6</color>
|
||||||
|
<color name="fg_app_icon_release">#ccdfca</color>
|
||||||
|
<color name="fg_app_icon_debug_border">#fbe0a6</color>
|
||||||
|
<color name="fg_app_icon_debug_fill1">#f8c152</color>
|
||||||
|
<color name="fg_app_icon_debug_fill2">#facb6d</color>
|
||||||
|
<color name="fg_app_icon_test_border">#ccdfca</color>
|
||||||
|
<color name="fg_app_icon_test_fill1">#7a9d7a</color>
|
||||||
|
<color name="fg_app_icon_test_fill2">#89a687</color>
|
||||||
|
|
||||||
<!-- Buttons -->
|
<!-- Buttons -->
|
||||||
<color name="button_normal">#00000000</color>
|
<color name="button_normal">#00000000</color>
|
||||||
<color name="button_normal_night">#00000000</color>
|
<color name="button_normal_night">#00000000</color>
|
||||||
|
|||||||
@@ -179,4 +179,8 @@
|
|||||||
|
|
||||||
<!--About Fragment -->
|
<!--About Fragment -->
|
||||||
<dimen name="about_max_button_width">310dp</dimen>
|
<dimen name="about_max_button_width">310dp</dimen>
|
||||||
|
|
||||||
|
<!--App Icons -->
|
||||||
|
<dimen name="app_icon_border_width">0.8</dimen>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/bg_app_icon_test"/>
|
||||||
|
<foreground android:drawable="@drawable/ic_launcher_foreground_test"/>
|
||||||
|
<monochrome android:drawable="@drawable/ic_launcher_foreground_monochrome"/>
|
||||||
|
</adaptive-icon>
|
||||||
Reference in New Issue
Block a user