Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Themed/monochrome icon support #671

Merged
merged 1 commit into from May 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions android/app/src/main/res/drawable/ic_launcher_monochrome.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="M196.63,273.75L180.25,283.88C180.09,283.98 179.85,283.98 179.69,283.84C178.11,282.55 176.36,281.45 174.5,280.59C172.81,279.82 170.81,280.56 170.03,282.25C169.26,283.94 170.03,285.94 171.72,286.72C173.05,287.33 174.28,288.1 175.41,289.03C177.79,291 181.16,291.24 183.78,289.63L195.78,282.22C195.82,282.48 220.75,257.78 196.63,273.75ZM153.25,281.63C152.82,281.7 152.39,281.85 152,282.09C151.59,282.35 151.18,282.62 150.78,282.91C141.35,289.69 138.26,302.62 143.59,312.94C146.73,319 152.31,323.42 158.91,325.06C159.09,325.11 159.23,325.32 159.19,325.5C157.71,332.13 159.17,339.11 163.19,344.63C167.74,350.88 174.97,354.31 182.34,354.31C186.04,354.31 189.78,353.46 193.22,351.66C202.75,346.67 207.76,335.87 205.38,325.41C205.33,325.2 205.4,325.01 205.56,324.91L216,318.47C229.2,311.05 210.21,313.69 210.44,313.97L202,319.16C199.38,320.77 198.09,323.89 198.78,326.91C200.49,334.39 196.92,342.11 190.09,345.69C182.74,349.54 173.51,347.37 168.63,340.66C165.75,336.7 164.72,331.71 165.78,326.97C166.62,323.23 164.28,319.46 160.56,318.53C155.85,317.35 151.84,314.19 149.59,309.84C145.78,302.47 147.98,293.26 154.72,288.41C155,288.2 155.33,288 155.63,287.81C157.2,286.82 157.65,284.73 156.66,283.16C155.91,281.98 154.55,281.42 153.25,281.63Z"
android:strokeLineJoin="miter"
android:strokeWidth="5"
android:fillColor="#000000"
android:strokeColor="#000000"
android:strokeLineCap="butt"/>
<path
android:pathData="M295.19,159.59C288.33,159.59 282.57,164.24 280.81,170.53C278.28,168.55 275.1,167.38 271.63,167.38C265.9,167.38 260.95,170.6 258.44,175.31C257.44,175.1 256.43,175 255.38,175C247.12,175 240.41,181.68 240.41,189.94C236.32,192.6 233.63,197.19 233.63,202.44C233.63,205.7 234.7,208.7 236.47,211.16C232.22,212.8 228.91,216.33 227.56,220.72C227.34,220.71 227.11,220.69 226.88,220.69C216.97,220.69 208.94,228.72 208.94,238.63C208.94,243.28 210.72,247.5 213.63,250.69C208.92,253.2 205.72,258.13 205.72,263.84C205.72,264.57 205.77,265.3 205.88,266C201.18,268.52 197.97,273.48 197.97,279.19C197.97,281.43 198.49,283.56 199.38,285.47C198.49,287.38 197.97,289.51 197.97,291.75C197.97,298.8 202.84,304.7 209.41,306.28C211.05,312.75 216.89,317.56 223.88,317.56C227.55,317.56 230.93,316.2 233.53,314C236.21,316.55 239.85,318.13 243.84,318.13C250.36,318.13 255.89,313.97 257.94,308.16C260.11,310.71 263.13,312.48 266.56,313.13C267.86,320.07 273.93,325.34 281.25,325.34C287.32,325.34 292.5,321.69 294.84,316.5C294.95,316.5 295.08,316.5 295.19,316.5C299.43,316.5 303.25,314.71 305.97,311.88C308.69,314.7 312.49,316.5 316.72,316.5C323.61,316.5 329.39,311.83 331.13,305.5C331.53,305.53 331.93,305.56 332.34,305.56C338.34,305.56 343.53,302 345.91,296.91C349.11,297.39 352.7,296.57 356.19,293.66C356.33,293.54 356.43,293.39 356.53,293.25C360.47,287.61 359.56,281.56 356.13,277.78C357.98,275.74 359.13,273.04 359.13,270.06C359.13,269.86 359.11,269.67 359.09,269.47C364.67,267.3 368.63,261.9 368.63,255.56C368.63,250.24 365.85,245.55 361.66,242.91C363.28,240.52 364.22,237.64 364.22,234.53C364.22,231.97 363.58,229.55 362.44,227.44C366.16,224.15 368.53,219.35 368.53,214C368.53,204.1 360.5,196.06 350.59,196.06C349.87,196.06 349.14,196.1 348.44,196.19C345.82,190.89 340.62,187.08 334.5,186.34C333.43,177.46 325.89,170.56 316.72,170.56C314.3,170.56 311.98,171.04 309.88,171.91C308.62,164.92 302.54,159.59 295.19,159.59ZM291.19,202.03C294.72,202.26 297.94,203.87 300.28,206.53C302.62,209.19 303.79,212.59 303.56,216.13C303.41,218.44 301.51,220.22 299.22,220.22C299.12,220.22 299.03,220.22 298.94,220.22C296.53,220.06 294.69,218 294.84,215.59C294.92,214.38 294.52,213.22 293.72,212.31C292.92,211.4 291.84,210.86 290.63,210.78C288.14,210.62 285.97,212.51 285.81,215C285.8,215.15 285.77,215.3 285.75,215.44C285.73,215.55 285.72,215.56 285.72,215.56C285.72,215.56 285.72,215.59 285.72,215.59C285.71,215.66 285.69,215.73 285.66,215.84C285.63,215.95 285.63,216.02 285.63,216.03C285.61,216.09 285.57,216.15 285.53,216.25C285.5,216.34 285.48,216.42 285.47,216.44C285.45,216.49 285.42,216.56 285.38,216.66C285.34,216.73 285.29,216.79 285.28,216.81C285.25,216.87 285.21,216.91 285.16,217C285.15,217 285.16,217.03 285.16,217.03C285.11,217.1 285.08,217.14 285.06,217.16C285.03,217.21 285,217.26 284.94,217.34C284.94,217.35 284.94,217.37 284.94,217.38C284.89,217.44 284.86,217.45 284.84,217.47C284.8,217.53 284.72,217.62 284.66,217.69C284.6,217.74 284.58,217.77 284.56,217.78C284.51,217.84 284.45,217.9 284.38,217.97C284.33,218.01 284.3,218.05 284.28,218.06C284.21,218.12 284.14,218.16 284.06,218.22C284.02,218.25 283.96,218.29 283.94,218.31C283.86,218.37 283.77,218.42 283.69,218.47C283.67,218.48 283.61,218.52 283.59,218.53C283.51,218.58 283.43,218.61 283.34,218.66C283.34,218.66 283.32,218.65 283.31,218.66C283.3,218.66 283.24,218.71 283.22,218.72C283.13,218.76 283.03,218.78 282.94,218.81C282.92,218.82 282.86,218.87 282.84,218.88C282.75,218.91 282.63,218.91 282.53,218.94C282.5,218.95 282.48,218.96 282.44,218.97C282.33,218.99 282.22,219.02 282.13,219.03C282.09,219.04 282.05,219.06 282,219.06C281.9,219.07 281.8,219.09 281.72,219.09C281.69,219.1 281.64,219.09 281.59,219.09C281.56,219.1 281.51,219.09 281.5,219.09C281.48,219.1 281.46,219.09 281.44,219.09C281.34,219.09 281.28,219.1 281.19,219.09C281.19,219.09 281.16,219.09 281.16,219.09C281.01,219.08 280.87,219.06 280.72,219.03C280.28,218.96 279.88,218.82 279.5,218.63C279.48,218.62 279.45,218.6 279.44,218.59C279.43,218.59 279.37,218.58 279.34,218.56C279.28,218.53 279.22,218.5 279.13,218.44C277.81,217.61 276.99,216.09 277.09,214.44C277.14,213.72 276.91,213.04 276.44,212.5C275.96,211.96 275.31,211.64 274.59,211.59C273.87,211.55 273.17,211.77 272.63,212.25C272.08,212.73 271.77,213.37 271.72,214.09C271.56,216.5 269.5,218.34 267.09,218.19C264.68,218.03 262.85,215.94 263,213.53C263.19,210.49 264.59,207.7 266.88,205.69C269.16,203.68 272.08,202.68 275.13,202.88C277.51,203.03 279.68,204 281.5,205.47C284.06,203.17 287.48,201.8 291.19,202.03ZM331.38,241.53C335.62,241.85 339.5,243.8 342.28,247.03C345.06,250.26 346.41,254.38 346.09,258.63C345.47,267 338.46,273.41 330.19,273.41C329.79,273.41 329.4,273.4 329,273.38C326.59,273.2 324.79,271.1 324.97,268.69C325.15,266.28 327.25,264.48 329.66,264.66C333.62,264.95 337.08,261.94 337.38,257.97C337.52,256.04 336.92,254.18 335.66,252.72C334.39,251.26 332.65,250.39 330.72,250.25C328.31,250.07 326.51,247.97 326.69,245.56C326.87,243.15 328.97,241.35 331.38,241.53ZM238.84,263.5C241.24,263.21 243.4,264.92 243.69,267.31C243.98,269.71 242.27,271.9 239.88,272.19C238.92,272.3 238.26,273.17 238.38,274.13C238.43,274.59 238.66,274.99 239.03,275.28C239.4,275.57 239.85,275.71 240.31,275.66C242.71,275.37 244.9,277.07 245.19,279.47C245.48,281.86 243.77,284.02 241.38,284.31C240.95,284.36 240.52,284.41 240.09,284.41C237.76,284.41 235.49,283.61 233.63,282.16C231.42,280.43 230.03,277.96 229.69,275.19C228.99,269.44 233.1,264.2 238.84,263.5Z"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
</vector>
1 change: 1 addition & 0 deletions android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_monochrome"/>
</adaptive-icon>