Fix up the system tray icon(s)

This commit is contained in:
2025-04-21 16:22:42 +02:00
parent 26abaafd28
commit 9b291ac68d
41 changed files with 46 additions and 25 deletions

2
.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
*.ico filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 129 B

BIN
assets/app_icon.ico (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/app_icon.png (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 406 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 704 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 406 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 862 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 862 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 762 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 127 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 127 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 127 B

View File

@@ -59,7 +59,7 @@ class MainPage extends StatefulWidget {
} }
class _MainPageState extends State<MainPage> with WindowListener { class _MainPageState extends State<MainPage> with WindowListener {
final AppWindow _appWindow = AppWindow(); // final AppWindow _appWindow = AppWindow(); // REMOVED - Not used
final SystemTray _systemTray = SystemTray(); final SystemTray _systemTray = SystemTray();
final AudioPlayer _audioPlayer = AudioPlayer(); final AudioPlayer _audioPlayer = AudioPlayer();
@@ -203,18 +203,30 @@ class _MainPageState extends State<MainPage> with WindowListener {
void _saveData() { void _saveData() {
// TODO: Implement logic to save the current entry and todo list // TODO: Implement logic to save the current entry and todo list
// Example: // This is called when the window is closed (hidden) or the save button is pressed.
// await saveEntryToDatabase(_currentEntryController.text); String currentEntry = _currentEntryController.text;
// await saveTodoListToFile(_todoController.text); String todoList = _todoController.text;
// You might want to move the '_currentEntryController.text' to become print(
// the '_previousEntryController.text' for the *next* session here or upon loading. "Saving data (placeholder)... Current Entry: [${currentEntry.length} chars], Todo: [${todoList.length} chars]",
debugPrint(
"Data saved (placeholder). Previous: [...], Current: [${_currentEntryController.text.length} chars], Todo: [${_todoController.text.length} chars]",
); );
// --- Your persistence logic goes here ---
// Example:
// await saveEntryToDatabase(currentEntry);
// await saveTodoListToFile(todoList);
// ---------------------------------------
// You might want to update the previous entry for the *next* session here,
// or handle this logic when loading data next time.
// Example (simplistic, assumes immediate update for next view):
// setState(() {
// _previousEntryController.text = currentEntry;
// _currentEntryController.clear(); // Clear current entry after saving
// });
// Potentially clear current entry after saving, or handle it on next load // Potentially clear current entry after saving, or handle it on next load
// _currentEntryController.clear(); // _currentEntryController.clear(); // Decide if you want to clear it immediately
} }
// --- UI Build --- // // --- UI Build --- //
@@ -315,18 +327,18 @@ class _MainPageState extends State<MainPage> with WindowListener {
} }
} }
// Helper class for AppWindow interactions (optional, but good practice) // REMOVED - Helper class for AppWindow interactions (optional, but good practice)
class AppWindow { // class AppWindow {
Future<void> init() async { // Future<void> init() async {
// Can add more window setup here if needed // // Can add more window setup here if needed
} // }
//
Future<void> show() async { // Future<void> show() async {
await windowManager.show(); // await windowManager.show();
await windowManager.focus(); // await windowManager.focus();
} // }
//
Future<void> hide() async { // Future<void> hide() async {
await windowManager.hide(); // await windowManager.hide();
} // }
} // }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 520 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 129 B

View File

@@ -62,6 +62,7 @@ flutter:
# To add assets to your application, add an assets section, like this: # To add assets to your application, add an assets section, like this:
assets: assets:
- assets/ # Include the main assets directory for the icon
- assets/sounds/ - assets/sounds/
# - images/a_dot_burr.jpeg # - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg # - images/a_dot_ham.jpeg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 917 B

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 130 B