<table><tr><td style="">rjvbb created this revision.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5111" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is a continuation/transfer of <a href="https://git.reviewboard.kde.org/r/128109/" class="remarkup-link" target="_blank" rel="noreferrer">https://git.reviewboard.kde.org/r/128109/</a> (which still has a few screenshots)</p>
<p>There currently is no "official" cheap way to preview how checked menu items are rendered as a function of installed widget style, nor an easy/cheap way to compare the look of a given widget style under different colour schemes. I have been annoyed by the fact one has to (re)launch often heavy applications to assess the impact of changes to these look-and-feel aspects.</p>
<p>This patch explores a straightforward way of adding that missing functionality via the most exhaustive look-and-feel preview utility I am aware of that is cheap in resource requirements: Oxygen's demo app.</p>
<p>This demo already has menus in the MDI preview. The patch makes the layout items checkable and puts them in a QActionGroup so their mutually exclusive nature is taken into account. It also adds a "right to left" non-exclusive checkable item which is linked to the "Left to Right" checkbox in the demo frame.</p>
<p>For colour scheme exploration I adapted a thin wrapper around KColorSchemeManager written originally by Alexander Zhigalin for KDevelop; it is used to add a button with drop-down menu to the page widget's button box which makes it available in all views.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>The menu additions have been checked on Linux and Mac OS X with Qt 5.6.0 - 5.8.0 and frameworks 5.22.0 - 5.32.0; the colour scheme addition with Qt 5.8.0 and frameworks 5.32.0 .</p>
<p>I looked for an appropriate way to uncheck the Tile/Cascade/Tabbed menu items (= when the user moves or resizes one of the MDI windows) but it seems those events are not available through signals and would thus require subclassing MdiSubWindow .</p>
<p>It would make sense IMHO to separate this demo from Oxygen. It has nothing Oxygen-specific and could be provided as a standalone theme explorer or bundled with another package that doesn't have too strong connotations of being "Plasma-exclusive" (Qt has widget style and palette support on most if not all platforms it runs on).</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R113 Oxygen Theme</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5111" rel="noreferrer">https://phabricator.kde.org/D5111</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kstyle/demo/CMakeLists.txt<br />
kstyle/demo/oxygendemodialog.cpp<br />
kstyle/demo/oxygendemodialog.h<br />
kstyle/demo/oxygenmdidemowidget.cpp<br />
kstyle/demo/oxygenmdidemowidget.h<br />
kstyle/demo/oxygenschemechooser.cpp<br />
kstyle/demo/oxygenschemechooser.h</div></div></div><br /><div><strong>To: </strong>rjvbb, hpereiradacosta, jriddell, anthonyfieroni, zhigalin<br /><strong>Cc: </strong>kde-mac, plasma-devel, Frameworks, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>