diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png index db77bb4..6cc1e9a 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png index 17987b7..92ddf91 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png index 09d4391..15a3300 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png index d5f1c8d..294f4bd 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png index 4d6372e..e9df307 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/linux/runner/my_application.cc b/linux/runner/my_application.cc index 88c0f06..02e839d 100644 --- a/linux/runner/my_application.cc +++ b/linux/runner/my_application.cc @@ -54,6 +54,29 @@ static void my_application_activate(GApplication* application) { gtk_window_set_default_size(window, 1280, 720); + // Set the window and application icon from the bundled assets. + GError* icon_error = nullptr; + g_autofree gchar* executable_path = + g_file_read_link("/proc/self/exe", &icon_error); + if (icon_error != nullptr) { + g_warning("Failed to read executable path: %s", icon_error->message); + g_clear_error(&icon_error); + } + + if (executable_path != nullptr) { + g_autofree gchar* executable_dir = g_path_get_dirname(executable_path); + g_autofree gchar* icon_path = g_build_filename( + executable_dir, "data", "flutter_assets", "assets", "app_icon.png", + nullptr); + gtk_window_set_icon_from_file(window, icon_path, &icon_error); + if (icon_error != nullptr) { + g_warning("Failed to load window icon: %s", icon_error->message); + g_clear_error(&icon_error); + } else { + gtk_window_set_default_icon_from_file(icon_path, nullptr); + } + } + g_autoptr(FlDartProject) project = fl_dart_project_new(); fl_dart_project_set_dart_entrypoint_arguments( project, self->dart_entrypoint_arguments); diff --git a/pubspec.yaml b/pubspec.yaml index a8447ed..ebb1f01 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.9.7 +version: 0.9.8 environment: sdk: ^3.10.1 diff --git a/release/eggtimer.apk b/release/eggtimer.apk index 84d2c8f..7d8fbd8 100644 Binary files a/release/eggtimer.apk and b/release/eggtimer.apk differ diff --git a/windows/runner/resources/app_icon.ico b/windows/runner/resources/app_icon.ico index c04e20c..68c63f0 100644 Binary files a/windows/runner/resources/app_icon.ico and b/windows/runner/resources/app_icon.ico differ