I’m working on creating a custom app based on Slicer. The functional aspects are completed, and I’m currently in the process of updating the UI/UX for user convenience.
While exploring the options for updating the UI design, I found that styling changes can be made using the Slicer sandbox’s QSS sheets. However, it seems there are limitations to achieving the level of design I have in mind.
I’m currently thinking of a design change similar to the NousNav project. Additionally, I’d like to apply elements designed in Figma to Slicer if possible.
What can I do to achieve this? Also, is it possible to obtain an example code, similar to NousNav? I appreciate any advice you can provide.
@Sam_Horvath has done a lot of work on this and as I understand it there are some places where getting the Qt infrastructure to behave consistently can be a challenge, often due to older code that may have had workaround for older Qt or to to achieve a particular effect. In general it should be possible to fix or replace any component. Maybe if you have a specific example you are trying to achieve then people would have suggestions.
So, the NousNav work was done heavily with style sheets (style sheet), removing ui elements with slicer.util functions, and adding some custom elements (most notably the tab bar at the top)
Custom icons were included in the module resources and used from there. You can also register icons with the Qt resource system to be able to address them from QSS.
Code snippet of setting up tool/tab bars and such from the NousNav setup code