<table><tr><td style="">mart created this revision.<br />mart added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />mart requested review of this revision.
</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/D22893">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>when plasma is starting up, there are no panel views yet<br />
this means that if a thickness (or other values)<br />
are written to the config file and then the resolution changes before<br />
the panel view gets created, we'll have a view that will default<br />
to 30 pixels regardless what the layout js file specified.</p>

<p>This makes the scripting only write to a [Default] group for resolution<br />
dependent properties when panels are not actually present<br />
when they are already there, interact directly with the view which is<br />
the safest option.</p>

<p>the view will use whatever is in the defaults group as default if the<br />
resolution dependent is there, and when a new value is set for a<br />
resolution dependent one, also update the default, which will<br />
be used when screen resolution changes, as new default value</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">With virtualbox, change resolution continuously when plasma is starting up</li>
</ul>

<p>with an empty setup, panel is the expected size now, as opposed to 30</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Stop Plasma. Change Screen resoluton with plasma *not* running, to a resoluton</li>
</ul>

<p>still "unknown" to plasmashellrc, then start plasma again. Now the thickness saved <br />
in [Default] is picked, instead of the arbitrary 30</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>phab/saneDefaults</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22893">https://phabricator.kde.org/D22893</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>shell/panelview.cpp<br />
shell/panelview.h<br />
shell/scripting/panel.cpp<br />
shell/scripting/panel.h</div></div></div><br /><div><strong>To: </strong>mart, Plasma<br /><strong>Cc: </strong>plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>