-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix iced compatibility - replace fold with pick_list for choosing theme #26
Conversation
Tested this on my Mac system, very curious why it didn't work on Wayland - will have to check. There are issues around "text" feature when marking an image as incorrect, and the "end" functionality has been disabled for now - need to bring that in and also for each image in case anyone wants to exit first. Can fix that in separate PR though. cc: @eirnym - wondering if you'd be willing to help test this on your system as well? The definition for test for me over here is just ensuring that you can launch the binary, select a folder and scroll through images. |
Please cleanup unused imports. It's totally fine if you prefer use direct naming. |
I'll check it out as soon as I'll have an access to a computer |
…oose_theme for a condition
I've tested on macOS M2. before testing I've run I found following experience:
Later I'll try to run in on Windows when I have an access to. |
Naah, I'm pretty sure I did
^^ This is interesting, IIRC I had a check for invalid files (definition of invalid: anything that is not an image) to ensure that they aren't being loaded as images, and some different message will be shown to the users. Here is the relevant part of the code that just returns the error with a message: "Invalid file, please check ..." image-annotator-rust/src/render_image.rs Lines 641 to 659 in bfa8926
But thank you for flagging this here, I'll check on my system (Mac) to see what's going wrong there.
If you get time and a chance, that would be great, but if not - I can try testing this tomorrow on Windows as well. Thank you so much for your help btw ❤️ 🚀 @eirnym |
Just checked on my Mac system (M1) - seems to be working fine, however I'm wondering if it would make more sense to just not show these invalid files on the screen (/skip them) instead of showing this screen which is probably not useful to the user at all. Ideal discussion to have on a separate issue, will create one this week and start discussions! :) For now, deciding to push this PR to main and keep the |
pick_list
for choosing theme buttonsPlease note that all features haven't been tested, I'm right now on wayland and some issues around opening dialogs. Will land this PR once testing is successful (manual for now).
Part of the fix for #24, tests etc. will be added in another PR.