I want to change color of text and bar in the RGB slice view.
Is it possible to change the part I circled by python script?
Thank you!
I want to change color of text and bar in the RGB slice view.
Is it possible to change the part I circled by python script?
Thank you!
Color of the slice view is stored in the slice view node and you can change it like this:
slicer.util.getFirstNodeByClassByName('vtkMRMLSliceNode', 'Red').SetLayoutColor(1,0,1)
Thank you! It works well
I have one more question.
Is it possible to approach the top bar of slicer by QT & Python script?
slicer.app.styleSheet="QWidget{color:#F0F6FC;background-color: #464646;}"
This command changed all the widget color except the top bar.
It might be possible that some parts of the application window are drawn by the operating system, but most likely you can customize everything. The issue in the code snippet above might be that you only set custom style for QWidget instances and not for the main window class.