fix: icons for setup and uninstall

This commit is contained in:
Prateek Sunal 2024-03-28 21:24:10 +05:30
parent c7de109494
commit d4ca574f1f
10 changed files with 2153 additions and 2150 deletions

View file

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -1,6 +1,6 @@
flutter_icons:
android: "launcher_icon"
image_path: "assets/icon-light.png"
adaptive_icon_foreground: "assets/icon-light-adaptive-fg.png"
image_path: "assets/generation-icons/icon-light.png"
adaptive_icon_foreground: "assets/generation-icons/icon-light-adaptive-fg.png"
adaptive_icon_background: "#ffffff"

View file

@ -37,8 +37,9 @@ import 'package:window_manager/window_manager.dart';
final _logger = Logger("main");
Future<void> initSystemTray() async {
String path =
Platform.isWindows ? 'assets/icon-light.ico' : 'assets/icon-light.png';
String path = Platform.isWindows
? 'assets/icon/auth-icon.ico'
: 'assets/icon/auth-icon.png';
final AppWindow appWindow = AppWindow();
final SystemTray systemTray = SystemTray();
@ -52,7 +53,7 @@ Future<void> initSystemTray() async {
// create context menu
final show = MenuItem(label: 'Show', onClicked: () => appWindow.show());
final hide = MenuItem(label: 'Hide', onClicked: () => appWindow.hide());
final exit = MenuItem(label: 'Exit', onClicked: () => appWindow.close());
final exit = MenuItem(label: 'Exit', onClicked: () => windowManager.close());
// set context menu
await systemTray.setContextMenu([show, hide, exit]);

View file

@ -122,6 +122,7 @@ flutter:
# https://docs:flutter:dev/development/ui/assets-and-images:
assets:
- assets/
- assets/icon/
- assets/simple-icons/icons/
- assets/simple-icons/_data/
- assets/custom-icons/icons/
@ -141,10 +142,10 @@ flutter:
flutter_icons:
android: "launcher_icon"
adaptive_icon_foreground: "assets/icon-light-adaptive-fg.png"
adaptive_icon_foreground: "assets/generation-icons/icon-light-adaptive-fg.png"
adaptive_icon_background: "#ffffff"
ios: true
image_path: "assets/icon-light.png"
image_path: "assets/generation-icons/icon-light.png"
remove_alpha_ios: true
flutter_native_splash:

View file

@ -4,6 +4,7 @@ publisher_url: https://github.com/ente-io/ente
display_name: ente Auth
create_desktop_icon: false
install_dir_name: "{pf}\\Ente Auth"
setup_icon_file: ../../assets/icon/auth-icon.ico
script_template: inno_setup.iss
locales:
- en