Closed MosGeo closed 2 years ago
i like it! would be happy to have such a PR
@tlambert03 Thanks! ok, I will make it more customizable and follow the guidelines in the repo to create a draft PR for review. Also, I added a screen recording to showcase how it looks inside a napari plugin.
thanks! couple minor suggestions:
▶
) ... over an up caret for the collapsed view.@tlambert03 To give an update on this one. I now have the basic code working as you wanted with the customizations including the rotation animation. Note that the rotation looks a bit weird in the gif for some reason. The caret is now an icon (as opposed to just symbol before) so I still have to deal with the icon color based on the theme i think. I am a beginner at QT so this is all new. I also have some design decisions that need to be made. Finally, I should add tests. I think I will clean the code a bit and create a pull request to discuss the code.
Wow! Looks fantastic!
Yeah, feel free to open a PR at any point and I'm happy to help hammer out the final details. Including the styling issues with the caret. (It's a good point)
Thanks!!
Issue was addressed by #37 pull request.
I was wondering if info about this could be included in the readme? :)
yes, I'm sorry, this repo needs a proper documentation site now that the scope has broadened significantly
Thank you!
Justification
A lot of scientific plugins require numerous parameters and settings. It is not user-friendly to show all the settings in the plugin window. I propose a collapsible section control that simplifies hiding unimportant/optional settings in a plugin.
Possible solutions
Note
There are possible solutions that are available online (e.g., https://github.com/By0ute/pyqt-collapsible-widget). I think having one in superqt would be better than relying on a separate package.
Prototype
Here is a simple prototype with nice animation too. it is based on a solution found in StackOverflow for C++ Qt.