<table><tr><td style="">pereira.alex updated this revision to Diff 78238.<br />pereira.alex added a comment.
</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/D28057">View Revision</a></tr></table><br /><div><div><p>Fixing bug on changing icon size between list/grid view</p>
<p>So with this commit, I fixed the bug that was happening explained in previous commit.<br />
Actually, this was what was happening that cause the opening of the bug report.</p>
<p>Now, one can change between list and grid view mode, change size on list mode, change size on grid mode<br />
and everything will work as should be ( no need to restart plasmashell ).</p>
<p>So it seems the code is using iconSize property for icons, with the exception of FolderView.qml<br />
that uses the makeIconSize function. Instead of creating functions/if's to test which mode is being used,<br />
I created two config variables: listViewIconSize and gridViewIconSize. The config qml (ConfigIcons.qml) will use those<br />
two variables and update the iconSize config variable, which will then be used by the plasmoid as the icon size.</p>
<p>So to summarize, instead of "detecting" if list view or grid view mode, <br />
config will update iconSize with the proper size from listViewIconSize or gridViewIconSize.</p>
<p>If this logic of code is fine, in the next work I will merge the patch I did previously to only use<br />
one slider, and then remove the makeIconSize function.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D28057?vs=77808&id=78238">https://phabricator.kde.org/D28057?vs=77808&id=78238</a></div></div><br /><div><strong>BRANCH</strong><div><div>fix-folderview-popup-icon-list-size (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28057">https://phabricator.kde.org/D28057</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>containments/desktop/package/contents/config/main.xml<br />
containments/desktop/package/contents/ui/ConfigIcons.qml<br />
containments/desktop/package/contents/ui/FolderView.qml</div></div></div><br /><div><strong>To: </strong>pereira.alex, Plasma, VDG, ngraham<br /><strong>Cc: </strong>ngraham, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>