Skip to content

Commit

Permalink
replace debug icon with overlayed default icon using dlayer list draw…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
edeso committed Mar 10, 2023
1 parent 46694d1 commit 4d75808
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 53 deletions.
26 changes: 26 additions & 0 deletions app/src/main/res/drawable/icon_debug.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="m89.14,238.72l0,57.64l5.51,0q1.53,0 2.17,0.59 0.64,0.54 0.64,1.48 0,0.89 -0.64,1.48 -0.64,0.59 -2.17,0.59l-9.7,0l0,-8.22q-7.19,9.85 -18.26,9.85 -5.61,0 -10.78,-2.95 -5.12,-3 -8.12,-8.52 -2.95,-5.51 -2.95,-11.37 0,-5.91 2.95,-11.37 3,-5.51 8.12,-8.52 5.17,-3 10.83,-3 10.83,0 18.21,9.85l0,-23.33l-5.51,0q-1.53,0 -2.17,-0.59 -0.64,-0.59 -0.64,-1.53 0,-0.89 0.64,-1.48 0.64,-0.59 2.17,-0.59zM84.96,279.28q0,-7.88 -5.32,-13.29 -5.32,-5.41 -12.65,-5.41 -7.38,0 -12.7,5.41 -5.32,5.41 -5.32,13.29 0,7.83 5.32,13.29 5.32,5.41 12.7,5.41 7.33,0 12.65,-5.41 5.32,-5.46 5.32,-13.29z"
android:strokeWidth="5.95"
android:fillColor="#00000000"
android:strokeColor="#ff0000"/>
<path
android:pathData="m151.75,280.17l-42.14,0q1.08,8.02 6.69,12.95 5.66,4.87 13.98,4.87 4.63,0 9.7,-1.53 5.07,-1.53 8.27,-4.04 0.94,-0.74 1.62,-0.74 0.79,0 1.38,0.64 0.59,0.59 0.59,1.43 0,0.84 -0.79,1.62 -2.36,2.46 -8.42,4.63 -6.01,2.12 -12.36,2.12 -10.63,0 -17.77,-6.94 -7.09,-6.99 -7.09,-16.88 0,-9.01 6.65,-15.46 6.69,-6.45 16.54,-6.45 10.14,0 16.69,6.65 6.55,6.6 6.45,17.13zM147.57,275.98q-1.23,-6.84 -6.5,-11.12 -5.22,-4.28 -12.45,-4.28 -7.24,0 -12.45,4.23 -5.22,4.23 -6.5,11.17z"
android:strokeWidth="5.95"
android:fillColor="#00000000"
android:strokeColor="#ff0000"/>
<path
android:pathData="m375.75,298.78l0,-6.05q-8.47,7.68 -18.31,7.68 -6.05,0 -9.21,-3.3 -4.09,-4.33 -4.09,-10.09l0,-26.68l-5.56,0q-1.48,0 -2.12,-0.59 -0.64,-0.59 -0.64,-1.53 0,-0.89 0.64,-1.48 0.64,-0.59 2.12,-0.59l9.7,0l0,30.86q0,4.04 2.56,6.65 2.56,2.61 6.4,2.61 10.09,0 18.51,-9.25l0,-26.68l-7.63,0q-1.48,0 -2.12,-0.59 -0.64,-0.59 -0.64,-1.53 0,-0.89 0.64,-1.48 0.64,-0.59 2.12,-0.59l11.76,0l0,38.49l3.49,0q1.48,0 2.12,0.59 0.64,0.54 0.64,1.48 0,0.89 -0.64,1.48 -0.64,0.59 -2.12,0.59z"
android:strokeWidth="5.95"
android:fillColor="#00000000"
android:strokeColor="#ff0000"/>
<path
android:pathData="m436,263.73l0,-7.58l9.7,0q1.48,0 2.12,0.59 0.64,0.59 0.64,1.53 0,0.89 -0.64,1.48 -0.64,0.59 -2.12,0.59l-5.56,0l0,41.3q0,4.13 -1.77,7.38 -1.18,2.17 -3.94,4.48 -2.76,2.31 -5.02,3.3 -2.26,0.98 -6.05,0.98l-11.72,0q-1.48,0 -2.12,-0.59 -0.64,-0.54 -0.64,-1.48 0,-0.94 0.64,-1.53 0.64,-0.59 2.12,-0.59l11.86,0.05q3.64,0 6.55,-1.87 2.95,-1.87 4.87,-5.46 1.08,-2.07 1.08,-5.27l0,-12.4q-6.65,9.11 -17.13,9.11 -8.52,0 -14.72,-6.3 -6.15,-6.35 -6.15,-15.26 0,-8.91 6.15,-15.21 6.2,-6.3 14.72,-6.3 10.48,0 17.13,9.06zM436,276.18q0,-7.29 -5.02,-12.31 -4.97,-5.02 -11.91,-5.02 -6.94,0 -11.91,5.07 -4.97,5.02 -4.97,12.26 0,7.29 4.97,12.36 4.97,5.02 11.91,5.02 6.94,0 11.91,-5.02 5.02,-5.07 5.02,-12.36z"
android:strokeWidth="5.95"
android:fillColor="#00000000"
android:strokeColor="#ff0000"/>
</vector>
57 changes: 4 additions & 53 deletions app/src/main/res/drawable/icon_squared_debug.xml
Original file line number Diff line number Diff line change
@@ -1,53 +1,4 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="m20.72,249.76c0,-111.92 107.55,-204.73 240.22,-204.73 132.67,-0 240.22,91.72 240.22,204.73 0,113.01 -104.28,205.55 -236.94,205.55 -65.51,-0 -51.59,-6.55 -66.88,-6.55 -15.56,-0 -40.94,20.2 -72.34,25.39 -31.39,4.91 -76.71,-6.83 -76.71,-6.83 0,-0 26.75,-22.65 36.3,-33.3 9.55,-10.38 14.2,-17.75 14.2,-25.66 0,-7.91 -10.92,-18.56 -10.92,-18.56C87.87,389.79 20.72,337.38 20.72,249.76Z"
android:strokeLineJoin="miter"
android:strokeWidth="19.69"
android:fillColor="#000000"
android:strokeColor="#000000"
android:strokeLineCap="butt"/>
<path
android:pathData="m4.94,233.97c0,-111.92 107.55,-204.73 240.22,-204.73 132.67,-0 240.22,91.72 240.22,204.73 0,113.01 -104.28,205.55 -236.94,205.55 -65.51,-0 -51.59,-6.55 -66.88,-6.55 -15.56,-0 -40.94,20.2 -72.34,25.39 -31.39,4.91 -76.71,-6.83 -76.71,-6.83 0,-0 26.75,-22.65 36.3,-33.3 9.55,-10.38 14.2,-17.75 14.2,-25.66 0,-7.91 -10.92,-18.56 -10.92,-18.56C72.09,374.01 4.94,321.6 4.94,233.97Z"
android:strokeLineJoin="miter"
android:strokeWidth="7.88"
android:fillColor="#fefefe"
android:strokeColor="#000000"
android:strokeLineCap="butt"/>
<path
android:pathData="m262.59,441.74c-27.16,-27.16 -78.25,-84.15 -78.25,-84.15 0,-0 -2.92,-141.48 -2.92,-214.23l148.76,-6.54c0,-0 100.81,95.39 152.37,146.95 -7.75,27.56 -21.76,53.24 -40.32,75 -32.2,37.91 -77.15,63.96 -125.16,76.11 -17.42,4.46 -35.28,7.09 -53.22,8.11 -0.42,-0.42 -0.85,-0.85 -1.27,-1.27z"
android:strokeAlpha="0.11"
android:strokeWidth="2.63"
android:fillColor="#000000"
android:strokeColor="#00000000"
android:fillType="nonZero"
android:fillAlpha="0.11"/>
<path
android:pathData="m210.21,263.73 l-2.46,77.8c18.02,-5.1 33.58,-11.1 46.68,-18.02 20.75,-10.74 31.12,-21.84 31.12,-33.3C285.55,274.38 260.44,265.55 210.21,263.73m80.53,-101.27c-7.82,-2.18 -16.38,-3.27 -25.66,-3.27 -12.19,-0 -30.03,2.73 -53.5,8.19 0.36,3.1 0.54,6.1 0.54,9.01 0,4.91 -0.18,12.01 -0.54,21.29C211.04,207.13 210.76,214.23 210.76,218.96l0,7.92c18.38,-6.19 36.76,-12.46 55.14,-18.83 27.66,-11.1 41.49,-21.29 41.49,-30.57 0,-6.55 -5.55,-11.56 -16.65,-15.02M282.55,240.25c10.73,3.82 19.57,10.19 26.48,19.11 6.91,8.73 10.37,18.74 10.37,30.03 0,23.3 -13.28,42.67 -39.85,58.14 -22.75,13.46 -46.68,20.2 -71.8,20.2 -8.55,-0 -13.92,-2.46 -16.1,-7.37 -7.1,0.37 -11.46,-5.92 -13.1,-18.83 -0.36,-3.27 -0.54,-12.37 -0.54,-27.3 0,-16.02 -1.37,-39.58 -4.1,-70.7 -2.55,-31.3 -3.91,-54.59 -4.09,-69.88 -8.92,-3.09 -13.38,-9.64 -13.38,-19.65 0,-14.56 14.56,-24.75 43.68,-30.57 16.92,-3.46 37.3,-5.18 61.15,-5.18 35.85,-0 60.32,7.73 73.43,23.2 7.82,9.28 11.74,19.75 11.74,31.39 0,29.12 -21.29,51.59 -63.88,67.43"
android:fillColor="#000000"
android:strokeColor="#00000000"
android:fillType="nonZero"/>
<path
android:pathData="m89.14,238.72l0,57.64l5.51,0q1.53,0 2.17,0.59 0.64,0.54 0.64,1.48 0,0.89 -0.64,1.48 -0.64,0.59 -2.17,0.59l-9.7,0l0,-8.22q-7.19,9.85 -18.26,9.85 -5.61,0 -10.78,-2.95 -5.12,-3 -8.12,-8.52 -2.95,-5.51 -2.95,-11.37 0,-5.91 2.95,-11.37 3,-5.51 8.12,-8.52 5.17,-3 10.83,-3 10.83,0 18.21,9.85l0,-23.33l-5.51,0q-1.53,0 -2.17,-0.59 -0.64,-0.59 -0.64,-1.53 0,-0.89 0.64,-1.48 0.64,-0.59 2.17,-0.59zM84.96,279.28q0,-7.88 -5.32,-13.29 -5.32,-5.41 -12.65,-5.41 -7.38,0 -12.7,5.41 -5.32,5.41 -5.32,13.29 0,7.83 5.32,13.29 5.32,5.41 12.7,5.41 7.33,0 12.65,-5.41 5.32,-5.46 5.32,-13.29z"
android:strokeWidth="5.95"
android:fillColor="#00000000"
android:strokeColor="#ff0000"/>
<path
android:pathData="m151.75,280.17l-42.14,0q1.08,8.02 6.69,12.95 5.66,4.87 13.98,4.87 4.63,0 9.7,-1.53 5.07,-1.53 8.27,-4.04 0.94,-0.74 1.62,-0.74 0.79,0 1.38,0.64 0.59,0.59 0.59,1.43 0,0.84 -0.79,1.62 -2.36,2.46 -8.42,4.63 -6.01,2.12 -12.36,2.12 -10.63,0 -17.77,-6.94 -7.09,-6.99 -7.09,-16.88 0,-9.01 6.65,-15.46 6.69,-6.45 16.54,-6.45 10.14,0 16.69,6.65 6.55,6.6 6.45,17.13zM147.57,275.98q-1.23,-6.84 -6.5,-11.12 -5.22,-4.28 -12.45,-4.28 -7.24,0 -12.45,4.23 -5.22,4.23 -6.5,11.17z"
android:strokeWidth="5.95"
android:fillColor="#00000000"
android:strokeColor="#ff0000"/>
<path
android:pathData="m375.75,298.78l0,-6.05q-8.47,7.68 -18.31,7.68 -6.05,0 -9.21,-3.3 -4.09,-4.33 -4.09,-10.09l0,-26.68l-5.56,0q-1.48,0 -2.12,-0.59 -0.64,-0.59 -0.64,-1.53 0,-0.89 0.64,-1.48 0.64,-0.59 2.12,-0.59l9.7,0l0,30.86q0,4.04 2.56,6.65 2.56,2.61 6.4,2.61 10.09,0 18.51,-9.25l0,-26.68l-7.63,0q-1.48,0 -2.12,-0.59 -0.64,-0.59 -0.64,-1.53 0,-0.89 0.64,-1.48 0.64,-0.59 2.12,-0.59l11.76,0l0,38.49l3.49,0q1.48,0 2.12,0.59 0.64,0.54 0.64,1.48 0,0.89 -0.64,1.48 -0.64,0.59 -2.12,0.59z"
android:strokeWidth="5.95"
android:fillColor="#00000000"
android:strokeColor="#ff0000"/>
<path
android:pathData="m436,263.73l0,-7.58l9.7,0q1.48,0 2.12,0.59 0.64,0.59 0.64,1.53 0,0.89 -0.64,1.48 -0.64,0.59 -2.12,0.59l-5.56,0l0,41.3q0,4.13 -1.77,7.38 -1.18,2.17 -3.94,4.48 -2.76,2.31 -5.02,3.3 -2.26,0.98 -6.05,0.98l-11.72,0q-1.48,0 -2.12,-0.59 -0.64,-0.54 -0.64,-1.48 0,-0.94 0.64,-1.53 0.64,-0.59 2.12,-0.59l11.86,0.05q3.64,0 6.55,-1.87 2.95,-1.87 4.87,-5.46 1.08,-2.07 1.08,-5.27l0,-12.4q-6.65,9.11 -17.13,9.11 -8.52,0 -14.72,-6.3 -6.15,-6.35 -6.15,-15.26 0,-8.91 6.15,-15.21 6.2,-6.3 14.72,-6.3 10.48,0 17.13,9.06zM436,276.18q0,-7.29 -5.02,-12.31 -4.97,-5.02 -11.91,-5.02 -6.94,0 -11.91,5.07 -4.97,5.02 -4.97,12.26 0,7.29 4.97,12.36 4.97,5.02 11.91,5.02 6.94,0 11.91,-5.02 5.02,-5.07 5.02,-12.36z"
android:strokeWidth="5.95"
android:fillColor="#00000000"
android:strokeColor="#ff0000"/>
</vector>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/icon_squared"/>
<item android:drawable="@drawable/icon_debug"/>
</layer-list>

0 comments on commit 4d75808

Please sign in to comment.