Replace Code Guard icon image with SVG drawable

This commit is contained in:
MrLetsplay 2023-10-07 16:07:27 +02:00
parent a04318bc46
commit b0fe65f76b
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
5 changed files with 30 additions and 58 deletions

View File

@ -102,7 +102,7 @@ public class IconListAdapter extends BaseExpandableListAdapter implements Expand
IconListIconBinding binding = IconListIconBinding.inflate(LayoutInflater.from(context)); IconListIconBinding binding = IconListIconBinding.inflate(LayoutInflater.from(context));
Icon icon = getChild(groupPosition, childPosition); Icon icon = getChild(groupPosition, childPosition);
binding.iconListIconImage.setImageResource(R.drawable.cringeauth_white); binding.iconListIconImage.setImageResource(R.drawable.codeguard_white);
IconUtil.loadImage(binding.iconListIconImage, icon.getBytes(), v -> v.setImageDrawable(new ColorDrawable(Color.TRANSPARENT))); IconUtil.loadImage(binding.iconListIconImage, icon.getBytes(), v -> v.setImageDrawable(new ColorDrawable(Color.TRANSPARENT)));
binding.iconListIconText.setText(icon.getMetadata().getName()); binding.iconListIconText.setText(icon.getMetadata().getName());
return binding.getRoot(); return binding.getRoot();

View File

@ -0,0 +1,28 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="698dp"
android:height="764dp"
android:viewportWidth="698"
android:viewportHeight="764">
<path
android:pathData="m298.48,1.72c-76.2,4.17 -159.05,18.76 -228.58,40.67 -22.21,7 -55.01,18.32 -56.01,19.33 -1.88,1.92 -8.63,47.21 -11.07,74.28 -0.59,6.55 -0.91,19.1 -1.1,32.87v40.72c0.19,13.6 0.51,25.97 1.09,32.41 5.75,63.48 18.36,118.85 40.43,177.5 18.45,49.06 46.7,102 77.08,144.5 22.98,32.14 41.88,54.35 71.11,83.55 43.51,43.48 85.16,75.08 140.42,106.56 8.59,4.89 16.24,8.89 17,8.89 0.76,0 7.52,-3.45 15.02,-7.67 30.21,-17.01 51.63,-31.06 79.24,-51.97 39.1,-29.62 83.35,-73.06 113.72,-111.63 76.62,-97.32 123.26,-211.26 136.61,-333.78 3.83,-35.13 4.54,-89.83 1.59,-122.45 -2.22,-24.6 -9.23,-72.07 -10.88,-73.74 -0.99,-1 -34.6,-12.61 -56.15,-19.41 -43.68,-13.77 -103.9,-27.01 -153.59,-33.79 -19.24,-2.62 -49.64,-5.33 -75.15,-6.84h-100.79zM698,1.72v380.28,382h-349,-347.28v1.72h698v-764h-1.72zM349.03,50.65c23.63,0 47.25,0.38 59.47,1.13 43.36,2.67 101.12,11.6 153.5,23.72 12.29,2.85 77.75,21.91 78.79,22.95 0.79,0.79 5.09,41.05 5.66,53.05 0.34,7.15 0.88,15.59 1.19,18.75l0.56,5.75 -5.62,-2.15c-3.09,-1.18 -5.8,-1.97 -6.03,-1.74 -0.23,0.23 -0.73,11.92 -1.13,25.99l-0.71,25.58 5.64,2.34c5.56,2.3 5.65,2.4 5.63,6.41 -0.03,9.28 -5.17,48.54 -8.97,68.57 -2.25,11.82 -4.29,22.07 -4.53,22.77 -0.35,0.99 -1.27,0.92 -4.21,-0.36 -5.84,-2.52 -7.21,-2.75 -7.69,-1.28 -0.24,0.75 -3,10.81 -6.14,22.36 -3.14,11.55 -5.9,21.72 -6.15,22.59 -0.32,1.14 1.1,2.27 5.07,4l5.52,2.41 -8.44,22.85c-8.2,22.2 -23.05,55.73 -32.03,72.31 -4.7,8.68 -23.14,40.4 -23.95,41.21 -0.27,0.27 -2.99,-0.3 -6.06,-1.27s-5.73,-1.6 -5.92,-1.41c-2.89,2.89 -28.45,40.43 -28.12,41.3 0.25,0.66 2.53,1.78 5.05,2.49 2.53,0.71 4.59,1.61 4.59,2.01s-7.05,9.23 -15.67,19.62c-15.93,19.21 -49.61,54.39 -52.06,54.39 -0.74,0 -3.11,-0.9 -5.27,-2s-4.59,-2 -5.41,-2c-1.15,0 -33.3,25.86 -40.47,32.54 -1.15,1.08 -0.42,1.78 4.41,4.22l5.79,2.93 -7.41,5.45c-19.73,14.53 -52.77,36.33 -58.23,38.43 -0.67,0.26 -11.93,-6.41 -25.02,-14.8 -64.72,-41.51 -124.55,-99.35 -167.43,-161.85 -18.27,-26.63 -21.41,-31.77 -36.53,-59.91 -17.06,-31.75 -32.15,-67.82 -42.67,-102 -9.47,-30.75 -9.89,-32.35 -14.91,-57 -5.88,-28.85 -6.83,-35.05 -9.6,-62.87 -2.15,-21.66 -2.52,-30.38 -2.52,-59.62 0,-29.33 0.36,-37.76 2.49,-58.63 3.57,-34.93 2.41,-31.14 10.31,-33.66 61.32,-19.58 114.36,-31.6 171.19,-38.78 19.52,-2.47 44.05,-5.01 54.5,-5.66 12.26,-0.75 35.9,-1.13 59.53,-1.13z"
android:strokeWidth="3.4434"
android:fillColor="#fff"/>
<path
android:pathData="m349.3,72.66c-21.7,-0 -43.51,0.39 -55.3,1.19 -55.57,3.75 -110.9,12.54 -162,25.73 -14.59,3.77 -54.04,15.15 -54.69,15.78 -0.1,0.1 -1,8.05 -2,17.66 -1.43,13.86 -1.8,25.86 -1.77,57.98 0.03,35.85 0.29,42.62 2.3,59 3.17,25.84 5.62,40.87 9.78,60 20.31,93.28 60.38,175.14 122.35,250 21.42,25.88 65.46,67.6 94.03,89.08 8.07,6.07 45.95,31.92 46.77,31.92 0.21,0 6.7,-4.06 14.42,-9.02 13.24,-8.51 40.81,-28.4 40.81,-29.45 0,-0.26 -5.85,-3.91 -13,-8.11 -7.15,-4.2 -13,-8 -13,-8.44 0,-1.08 16.55,-13.98 17.94,-13.98 0.59,0 6.13,2.86 12.32,6.36 6.18,3.5 12.21,6.86 13.39,7.48 1.93,1.01 3.33,0.04 14.07,-9.73 12.21,-11.11 32.76,-31.79 44.72,-45 10.2,-11.27 29.77,-35.99 29.39,-37.13 -0.28,-0.84 -16.67,-8.85 -24.58,-12.02 -2.19,-0.88 -2.06,-1.16 4.35,-9.93 3.63,-4.96 6.89,-9.02 7.25,-9.02 0.36,0 6.28,2.47 13.16,5.48 6.88,3.01 13.07,5.49 13.77,5.5 4.05,0.06 37.55,-59.02 52.72,-92.98 5.97,-13.37 17.35,-43.51 21.5,-56.95 1.76,-5.7 3.41,-10.92 3.67,-11.6 0.31,-0.81 -4.1,-3.03 -12.84,-6.46 -7.32,-2.87 -13.61,-5.4 -13.98,-5.61 -0.93,-0.54 4.6,-20.69 5.78,-21.08 0.53,-0.18 6.76,1.95 13.84,4.73 7.08,2.78 13.18,4.7 13.57,4.27 1.33,-1.5 8.15,-35.85 11.07,-55.79 2.65,-18.09 5.91,-52.85 5.9,-63v-4l-14.75,-5.12 -14.75,-5.12 -0.28,-11.63c-0.15,-6.4 0.09,-11.63 0.54,-11.63 0.45,0 6.86,2.03 14.24,4.5s13.84,4.5 14.36,4.5c2.05,0 -2.14,-63.07 -4.33,-65.34 -1.95,-2.02 -53.9,-16.56 -79,-22.12 -44.92,-9.95 -89.36,-16.33 -137.03,-19.68 -11.39,-0.8 -33,-1.2 -54.7,-1.21zM363.24,151.17c0.38,0 0.87,0.08 1.51,0.2 1.51,0.29 7.7,1.26 13.75,2.15 25.03,3.69 55.23,16.47 76.82,32.51l10.82,8.04 -3.02,3.44c-3.59,4.08 -4.83,9.36 -3.15,13.4 3.61,8.72 14.83,11.18 21.01,4.6 1.3,-1.39 2.7,-2.52 3.09,-2.52s4.32,4.84 8.73,10.75c16.12,21.64 27.97,49.56 32.3,76.1 2.75,16.87 2.72,17.15 -1.85,17.16 -11.88,0.01 -17.48,13.82 -8.83,21.75 2.91,2.66 4.36,3.25 8.06,3.25 4.26,0 4.52,0.16 4.52,2.75 -0,1.51 -0.91,8.3 -2.01,15.08 -4.14,25.4 -15.58,52.75 -30.89,73.87 -4.46,6.16 -8.57,11.48 -9.13,11.82 -0.56,0.34 -2.39,-0.53 -4.07,-1.95 -7.57,-6.37 -18.01,-3.85 -20.95,5.08 -1.46,4.43 -0.41,8.76 3.12,12.77l2.88,3.28 -2.22,2.01c-13.24,11.95 -38.85,26.04 -59.48,32.72 -11.67,3.78 -34.2,8.5 -40.87,8.56 -0.62,0.01 -1.41,-2.14 -1.76,-4.78 -1.06,-8.03 -5.67,-12.21 -13.44,-12.21 -6.69,0 -12.18,6.3 -12.18,13.97 0,3.62 0.32,3.6 -16.16,0.98 -25.54,-4.05 -54.43,-16.18 -75.77,-31.81 -5.74,-4.2 -10.88,-7.94 -11.43,-8.31 -0.57,-0.39 0.34,-2.19 2.17,-4.27 4.06,-4.63 4.85,-7.93 3.09,-12.97 -3.3,-9.47 -15.29,-11.46 -22.31,-3.7l-1.9,2.11 -8.37,-11.25c-15.75,-21.18 -28.27,-50.42 -32.43,-75.75 -1.04,-6.32 -1.89,-12.96 -1.89,-14.75 -0,-3.19 0.09,-3.25 4.52,-3.25 3.7,0 5.14,-0.58 8.03,-3.25 8.7,-8.04 2.94,-21.74 -9.15,-21.75l-4.1,-0 2.22,-14.75c4.14,-27.5 15.19,-54.53 31.53,-77.08 4.43,-6.11 8.51,-11.4 9.08,-11.75s2.28,0.56 3.8,2.02c7.07,6.77 18.07,4.12 21.11,-5.09 1.47,-4.47 0.4,-8.77 -3.21,-12.89l-2.97,-3.38 10.82,-8.07c21.16,-15.79 51.75,-28.81 76.32,-32.48 5.78,-0.86 11.96,-1.81 13.75,-2.09 3.19,-0.51 3.25,-0.45 3.25,3.27 0.01,7.45 5.73,13.38 13.02,13.48 7.02,0.1 12.98,-6.33 12.98,-14.01 0,-2.32 0.11,-3.01 1.24,-3z"
android:fillColor="#fff"/>
<path
android:pathData="m355.69,472.05c5.81,-3.54 5.77,-3.25 6.31,-44.85l0.5,-38.31 6.5,-2.19c8.83,-2.98 20.1,-10.7 26.03,-17.83 5.04,-6.05 11.25,-17.84 12.45,-23.62l0.68,-3.25h77.69l3.06,-2.57c4.52,-3.81 5.71,-9.26 3.22,-14.87 -3.38,-7.65 -2.85,-7.56 -45.88,-7.56h-37.85l-2.21,-6.87c-3.37,-10.46 -10.88,-21.03 -20.21,-28.42 -5.12,-4.06 -15.86,-9.41 -20.73,-10.33l-3.25,-0.61v-37.49c0,-32.95 -0.2,-37.91 -1.67,-41.01 -4.2,-8.86 -16.4,-9.74 -21.93,-1.58 -1.76,2.6 -1.94,5.61 -2.4,41.21l-0.5,38.4 -5.24,1.78c-18.55,6.3 -33.6,21.4 -38.87,39l-1.77,5.91h-38.16c-38.1,0 -38.17,0 -41.56,2.29 -7.14,4.8 -7.14,15.65 0,20.43 3.39,2.27 3.49,2.28 41.63,2.28h38.23l1.16,4.61c4.29,17.05 20.48,34.17 37.82,40l6.76,2.27 0.5,38.31c0.38,29.04 0.82,38.86 1.81,40.61 1.88,3.3 7.11,6.19 11.19,6.19 1.92,0 4.93,-0.87 6.69,-1.94z"
android:fillColor="#fff"/>
<path
android:pathData="m314,443.57v-38.43l-5.75,-3.24c-12.63,-7.12 -23.54,-17.97 -31.32,-31.16l-3.39,-5.75h-38.27c-33.18,0 -38.27,0.2 -38.27,1.49 0,6.19 13.07,36.89 19.99,46.96 2.65,3.86 2.84,3.94 9.12,4.09 20.1,0.46 34.89,15.54 34.89,35.58 0,6.75 -0.08,6.68 15.44,14.96 8.62,4.6 32.69,13.81 36.31,13.9 0.98,0.02 1.25,-8.31 1.25,-38.4z"
android:fillColor="#fff"/>
<path
android:pathData="m398.27,477.93c11.51,-3.83 24.82,-10.1 34.48,-16.25l4.25,-2.7 0.02,-6.74c0.04,-11.23 5.7,-22.2 14.64,-28.35 6.13,-4.21 11.79,-6.02 19.76,-6.3 6.65,-0.23 7.01,-0.37 9.28,-3.67 4.83,-7.02 12.74,-23.74 16.46,-34.78 2.11,-6.27 3.84,-12.02 3.84,-12.77 0,-1.14 -6.5,-1.37 -38.41,-1.37h-38.41l-3.52,6.25c-6.67,11.85 -17.17,22.41 -29.68,29.84l-6.97,4.14v38.39c0,25.35 0.35,38.39 1.02,38.39 0.56,0 6.52,-1.83 13.25,-4.07z"
android:fillColor="#fff"/>
<path
android:pathData="m277.03,288.25c6.57,-11.72 17.96,-23.17 30.22,-30.37l6.75,-3.97v-37.9c0,-20.84 -0.37,-38.12 -0.82,-38.4 -0.89,-0.55 -20.72,5.91 -28.58,9.32 -2.69,1.17 -9.06,4.57 -14.14,7.56l-9.25,5.44 -0.36,7.8c-0.88,19.2 -14.84,33.18 -33.81,33.86l-7.55,0.27 -2.86,4.31c-6.76,10.19 -19.64,40.71 -19.64,46.52 0,1.03 7.7,1.29 38.4,1.29h38.4z"
android:fillColor="#fff"/>
<path
android:pathData="m500.45,290.75c-2.47,-11.34 -11,-31.28 -18.65,-43.56l-3.31,-5.31 -7.71,-0.28c-18.87,-0.69 -32.5,-14.23 -33.58,-33.35l-0.46,-8.25 -5.62,-3.4c-10.88,-6.58 -21.75,-11.58 -33.62,-15.47 -6.6,-2.16 -12.34,-3.72 -12.75,-3.47 -0.41,0.26 -0.75,17.52 -0.75,38.36v37.9l7.25,4.28c9.56,5.64 23.23,19.24 28.71,28.56l4.27,7.25h76.93z"
android:fillColor="#fff"/>
</vector>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

View File

@ -1,56 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:id="@+id/input_password_edittext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/password"
android:inputType="textPassword"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/confirm_password_edittext"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:ems="10"
android:hint="@string/password"
android:inputType="textPassword"
app:layout_constraintStart_toStartOf="@+id/confirm_password_textview"
app:layout_constraintTop_toBottomOf="@+id/confirm_password_textview" />
<TextView
android:id="@+id/confirm_password_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/confirm_password"
app:layout_constraintStart_toStartOf="@+id/input_password_edittext"
app:layout_constraintTop_toBottomOf="@+id/input_password_edittext" />
<TextView
android:id="@+id/set_password_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/set_password"
app:layout_constraintBottom_toTopOf="@+id/input_password_edittext"
app:layout_constraintStart_toStartOf="@+id/input_password_edittext" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="0dp"
android:layout_height="208dp"
app:layout_constraintBottom_toTopOf="@+id/input_password_edittext"
app:layout_constraintEnd_toEndOf="@+id/input_password_edittext"
app:layout_constraintStart_toStartOf="@+id/input_password_edittext"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/cringeauth_white" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -25,7 +25,7 @@
android:paddingStart="10dp" android:paddingStart="10dp"
android:paddingEnd="10dp" android:paddingEnd="10dp"
android:scaleType="centerInside" android:scaleType="centerInside"
android:src="@drawable/cringeauth_white" /> android:src="@drawable/codeguard_white" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"