Apply a proper app icon

Closes #15
This commit is contained in:
Lea 2023-02-05 21:44:14 +01:00
parent dce3194e5d
commit 04d947c5bf
Signed by: Lea
GPG key ID: 1BAFFE8347019C42
21 changed files with 122 additions and 2 deletions

View file

@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group android:scaleX="0.84144914"
android:scaleY="0.84144914">
<path
android:pathData="M65.83,85.68V79.06h9.92L87.49,62.52 75.75,45.98H42.67V55.9H36.06V39.37H79.22L95.6,62.52 79.22,85.68ZM42.67,88.98V79.06H32.75V72.44h9.92V62.52h6.62v9.92h9.92v6.62H49.29v9.92Z"
android:fillColor="#3e71ff"/>
</group>
</vector>

View file

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="128.35dp"
android:height="128.35dp"
android:viewportWidth="128.35"
android:viewportHeight="128.35">
<path
android:pathData="M67.54,107.92L67.54,94.46h20.19l23.89,-33.65 -23.89,-33.65h-67.3L20.43,47.34L6.97,47.34L6.97,13.7L94.79,13.7L128.11,60.81 94.79,107.92ZM20.43,114.65L20.43,94.46L0.24,94.46L0.24,81L20.43,81L20.43,60.81L33.89,60.81L33.89,81L54.08,81L54.08,94.46L33.89,94.46v20.19z"
android:strokeWidth="2.03462"
android:fillColor="#3e71ff"/>
</vector>

View file

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

View file

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#222227</color>
</resources>

40
assets/icon/icon.svg Normal file
View file

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 128.348 128.348"
version="1.1"
id="svg10"
sodipodi:docname="icon.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview12"
pagecolor="#505050"
bordercolor="#ffffff"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="1"
inkscape:deskcolor="#505050"
showgrid="false"
inkscape:zoom="6.6537846"
inkscape:cx="64.174004"
inkscape:cy="64.174004"
inkscape:window-width="1920"
inkscape:window-height="1051"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg10" />
<defs
id="defs4">
<style
id="style2">.a{fill:#222227;}.b{fill:#3e71ff;}</style>
</defs>
<path
class="b"
d="M65.828,85.675V79.059h9.923L87.494,62.52,75.751,45.981H42.673V55.9H36.057V39.365H79.224L95.6,62.52,79.224,85.675ZM42.673,88.983V79.059H32.75V72.443h9.923V62.52h6.616v9.923h9.923v6.616H49.289v9.924Z"
id="path8" />
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

1
assets/icon/icon1.svg Normal file
View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128.348 128.348"><defs><style>.a{fill:#222227;}.b{fill:#3e71ff;}</style></defs><rect class="a" width="128.348" height="128.348" rx="22.257"/><path class="b" d="M65.828,85.675V79.059h9.923L87.494,62.52,75.751,45.981H42.673V55.9H36.057V39.365H79.224L95.6,62.52,79.224,85.675ZM42.673,88.983V79.059H32.75V72.443h9.923V62.52h6.616v9.923h9.923v6.616H49.289v9.924Z"/></svg>

After

Width:  |  Height:  |  Size: 419 B

1
assets/icon/icon2.svg Normal file
View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128.348 128.348"><defs><style>.a{fill:#212320;}.b{fill:#76ff43;}</style></defs><rect class="a" width="128.348" height="128.348" rx="22.844"/><path class="b" d="M65.828,85.675V79.059h9.923L87.494,62.52,75.751,45.981H42.673V55.9H36.057V39.365H79.224L95.6,62.52,79.224,85.675ZM42.673,88.983V79.059H32.75V72.443h9.923V62.52h6.616v9.923h9.923v6.616H49.289v9.924Z"/></svg>

After

Width:  |  Height:  |  Size: 419 B

1
assets/icon/icon3.svg Normal file
View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128.348 128.348"><defs><style>.a{fill:#262223;}.b{fill:#ff40a4;}</style></defs><rect class="a" width="128.348" height="128.348" rx="22.192"/><path class="b" d="M65.828,85.675V79.059h9.923L87.494,62.52,75.751,45.981H42.673V55.9H36.057V39.365H79.224L95.6,62.52,79.224,85.675ZM42.673,88.983V79.059H32.75V72.443h9.923V62.52h6.616v9.923h9.923v6.616H49.289v9.924Z"/></svg>

After

Width:  |  Height:  |  Size: 419 B

41
assets/icon/icon_big.svg Normal file
View file

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 128.348 128.348"
version="1.1"
id="svg10"
sodipodi:docname="icon_big.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview12"
pagecolor="#505050"
bordercolor="#ffffff"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="1"
inkscape:deskcolor="#505050"
showgrid="false"
inkscape:zoom="6.6537846"
inkscape:cx="64.174004"
inkscape:cy="64.174004"
inkscape:window-width="1920"
inkscape:window-height="1051"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg10" />
<defs
id="defs4">
<style
id="style2">.a{fill:#222227;}.b{fill:#3e71ff;}</style>
</defs>
<path
class="b"
d="M 67.538219,107.92026 V 94.459247 h 20.189486 l 23.892485,-33.6505 -23.892485,-33.6505 h -67.301 V 47.339594 H 6.9656912 V 13.697233 H 94.793923 L 128.11278,60.808747 94.793923,107.92026 Z m -47.111514,6.73051 V 94.459247 H 0.23721886 V 80.998233 H 20.426705 V 60.808747 H 33.887719 V 80.998233 H 54.077205 V 94.459247 H 33.887719 v 20.191523 z"
id="path8"
style="stroke-width:2.03462" />
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -21,7 +21,7 @@ void callbackDispatcher() {
try {
var initialized = await FlutterLocalNotificationsPlugin().initialize(
const InitializationSettings(
android: AndroidInitializationSettings('@mipmap/ic_launcher'),
android: AndroidInitializationSettings('notification_icon'),
),
);
@ -123,7 +123,7 @@ void setupBackgroundTasks() async {
await FlutterLocalNotificationsPlugin().initialize(
const InitializationSettings(
android: AndroidInitializationSettings('@mipmap/ic_launcher'),
android: AndroidInitializationSettings('notification_icon'),
),
onSelectNotification: handleNotificationClick,
);