When the Theme in the settings menu is changed to Fusion, the Stylesheet of the QApplication is reset correctly. The UI bugs were caused by the qt-material function apply_stylesheet changing the applications stylesheet and those changes persisting once the theme was changed back to Fusion.
Acceptance Criteria
Repeat the changes in the linked issue and check that the themes look as expected:
Start Mantid Imaging
Select File > Settings
Select an alternative theme to Fusion
Restart mantid Imaging
Select File > Settings
Select "Use OS Default"
Also change any and all combinations of settings in the Appearance Settings tab to check they are behaving correctly. MI should also correctly store and apply the last given settings upon startup.
Example screenshots are given here:
My default OS settings (I use dark mode!)
changing to a qt-material theme:
restarting MI and clicking the Use OS defaults checkbox:
coverage: 72.721% (-0.01%) from 72.735%
when pulling 992c49212d3443934fb10e8aa8658ad9abc2609b on 2209_qt_material_theme_bug_fixes
into 4d2ef3e3620992889e30eec29d520001605500aa on main.
Issue
Closes #2209.
Description
When the Theme in the settings menu is changed to
Fusion
, the Stylesheet of theQApplication
is reset correctly. The UI bugs were caused by theqt-material
functionapply_stylesheet
changing the applications stylesheet and those changes persisting once the theme was changed back toFusion
.Acceptance Criteria
Repeat the changes in the linked issue and check that the themes look as expected:
Also change any and all combinations of settings in the Appearance Settings tab to check they are behaving correctly. MI should also correctly store and apply the last given settings upon startup.
Example screenshots are given here:
My default OS settings (I use dark mode!)
changing to a qt-material theme:
restarting MI and clicking the
Use OS defaults
checkbox:Documentation
Release Note