diff --git a/.vscode/lemmur.code-snippets b/.vscode/lemmur.code-snippets index 6f05ad0..be4b841 100644 --- a/.vscode/lemmur.code-snippets +++ b/.vscode/lemmur.code-snippets @@ -5,28 +5,34 @@ "body": ["\"$1\": \"$2\",", "\"@$1\": {}$0"] }, "Assert not null": { + "scope": "dart", "prefix": "assnotnull", "body": ["assert($1 != null)$0"] }, "sizedbox": { + "scope": "dart", "prefix": "sizedbox", "body": ["const SizedBox($1)$0"] }, "theme": { + "scope": "dart", "prefix": "theme", "body": ["final theme = Theme.of(context);"] }, "sleep": { + "scope": "dart", "prefix": "sleep", "body": [ "await Future.delayed(const Duration(milliseconds: ${1:1000}));$0" ] }, "repeat widget": { + "scope": "dart", "prefix": "repeat", "body": ["for(int i = 0; i < $1; i++)$0"] }, "L10n string": { + "scope": "dart", "prefix": "l10n", "body": ["L10n.of(context)!.$0"] }, diff --git a/.vscode/settings.json b/.vscode/settings.json index 8b81ad9..471f8c4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,5 +2,6 @@ "files.associations": { "*.arb": "json" }, - "dart.showTodos": false + "dart.showTodos": false, + "xml.format.preserveAttributeLineBreaks": true } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b34b9f..2c468a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Added - Logging: local logs about some actions/errors. Can be accessed from **settings > about lemmur > logs** +- Android theme-aware splash screen (thanks to [@mimi89999](https://github.com/mimi89999)) ## v0.6.0 - 2021-09-06 diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index c5516c9..50fe246 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,51 +1,38 @@ - - - - - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/res/drawable-hdpi/splash.png b/android/app/src/main/res/drawable-hdpi/splash.png new file mode 100644 index 0000000..41f2a5b Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-mdpi/splash.png b/android/app/src/main/res/drawable-mdpi/splash.png new file mode 100644 index 0000000..b7e289c Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/splash.png b/android/app/src/main/res/drawable-xhdpi/splash.png new file mode 100644 index 0000000..62ef141 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/splash.png b/android/app/src/main/res/drawable-xxhdpi/splash.png new file mode 100644 index 0000000..e2edba1 Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/splash.png b/android/app/src/main/res/drawable-xxxhdpi/splash.png new file mode 100644 index 0000000..975ad6c Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml deleted file mode 100644 index fcce68e..0000000 --- a/android/app/src/main/res/drawable/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/android/app/src/main/res/drawable/splash_screen.xml b/android/app/src/main/res/drawable/splash_screen.xml new file mode 100644 index 0000000..ab2baa3 --- /dev/null +++ b/android/app/src/main/res/drawable/splash_screen.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/android/app/src/main/res/values-night/colors.xml b/android/app/src/main/res/values-night/colors.xml index b9754ca..4723c8e 100644 --- a/android/app/src/main/res/values-night/colors.xml +++ b/android/app/src/main/res/values-night/colors.xml @@ -1,4 +1,4 @@ - #303030 + #303030 diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml deleted file mode 100644 index 449a9f9..0000000 --- a/android/app/src/main/res/values-night/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml index 245a0d9..df71af1 100644 --- a/android/app/src/main/res/values/colors.xml +++ b/android/app/src/main/res/values/colors.xml @@ -1,5 +1,5 @@ #ffffff - #fafafa + #fafafa diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index 1f83a33..517cbd6 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -1,18 +1,10 @@ - - +