feat: Update icon resources, enable monochromatic version, remove flutter_launcher_icon

This commit is contained in:
Anton Stubenbord
2023-06-15 15:44:22 +02:00
parent 3d438d5eca
commit 0c7847dfc9
26 changed files with 39 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.paperless_mobile">
package="de.astubenbord.paperless_mobile">
<application
android:requestLegacyExternalStorage="true"/>
<!-- Flutter needs it to communicate with the running application

View File

@@ -1,8 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.paperless_mobile">
package="de.astubenbord.paperless_mobile">
<application android:label="Paperless Mobile"
android:name="${applicationName}"
android:icon="@mipmap/launcher_icon"
android:icon="@mipmap/ic_launcher"
android:requestLegacyExternalStorage="true">
<activity
android:name=".MainActivity"
@@ -12,13 +12,9 @@
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the
Android process has started. This theme is visible to the user
while
the Flutter UI initializes. After that, this theme continues
to
determine the Window background behind the Flutter UI. -->
<!-- Specifies an Android theme to apply to this Activity as soon as the Android process
has started. This theme is visible to the user whilethe Flutter UI initializes. After
that, this theme continues to determine the Window background behind the Flutter UI. -->
<meta-data android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />
<intent-filter>
@@ -26,7 +22,6 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- START Snippet from https://github.com/qcasey/paperless_share -->
<intent-filter>
<action android:name="android.intent.action.SEND" />
@@ -167,16 +162,12 @@
<!-- END Snippet from https://github.com/qcasey/paperless_share -->
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to
generate GeneratedPluginRegistrant.java -->
<!-- Don't delete the meta-data below. This is used by the Flutter tool to generate
GeneratedPluginRegistrant.java -->
<meta-data android:name="flutterEmbedding" android:value="2" />
</application>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<!-- <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" /> -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -1,4 +1,4 @@
package com.example.paperless_mobile
package de.astubenbord.paperless_mobile
import android.os.Bundle
import android.view.WindowManager.LayoutParams

View File

@@ -0,0 +1,14 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="900"
android:viewportHeight="900">
<group android:scaleX="0.44"
android:scaleY="0.44"
android:translateX="252"
android:translateY="252">
<path
android:pathData="M238.83,863.55C234.43,842.65 225.63,800.84 224.53,800.84 38.6,689.73 60.61,497.2 122.22,387.18c13.2,138.62 258.54,234.34 115.52,403.76 -1.1,2.2 6.6,28.6 13.2,52.81 28.6,-48.41 71.51,-106.72 69.31,-112.22C144.22,302.47 694.3,269.46 808.72,3.22c51.71,257.44 -26.4,655.7 -468.67,756.91 -2.2,1.1 -80.31,138.62 -83.61,139.72 0,-2.2 -33,-1.1 -28.6,-12.1 2.2,-6.6 6.6,-15.4 11,-24.2zM347.75,673.23C278.44,509.3 481.97,328.87 583.18,283.77 376.35,468.59 341.15,606.12 347.75,673.23ZM233.33,760.14c56.11,-64.91 -9.9,-176.03 -49.51,-212.33 67.11,115.52 62.71,182.63 49.51,212.33z"
android:fillColor="#17541f"/>
</group>
</vector>

View File

@@ -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/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome 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>

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

View File

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

View File

@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.paperless_mobile">
package="de.astubenbord.paperless_mobile">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -1,5 +0,0 @@
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/logos/paperless_logo_green.png"
min_sdk_android: 21 # android min sdk min:16, default 21