D22893: introduce the Defaults group for panel values

Marco Martin noreply at phabricator.kde.org
Fri Aug 2 15:10:33 BST 2019


mart created this revision.
mart added a reviewer: Plasma.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
mart requested review of this revision.

REVISION SUMMARY
  when plasma is starting up, there are no panel views yet
  this means that if a thickness (or other values)
  are written to the config file and then the resolution changes before
  the panel view gets created, we'll have a view that will default
  to 30 pixels regardless what the layout js file specified.
  
  This makes the scripting only write to a [Default] group for resolution
  dependent properties when panels are not actually present
  when they are already there, interact directly with the view which is
  the safest option.
  
  the view will use whatever is in the defaults group as default if the
  resolution dependent is there, and when a new value is set for a
  resolution dependent one, also update the default, which will
  be used when screen resolution changes, as new default value

TEST PLAN
  - With virtualbox, change resolution continuously when plasma is starting up
  
  with an empty setup, panel is the expected size now, as opposed to 30
  
  - Stop Plasma. Change Screen resoluton with plasma *not* running, to a resoluton
  
  still "unknown" to plasmashellrc, then start plasma again. Now the thickness saved 
  in [Default] is picked, instead of the arbitrary 30

REPOSITORY
  R120 Plasma Workspace

BRANCH
  phab/saneDefaults

REVISION DETAIL
  https://phabricator.kde.org/D22893

AFFECTED FILES
  shell/panelview.cpp
  shell/panelview.h
  shell/scripting/panel.cpp
  shell/scripting/panel.h

To: mart, #plasma
Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190802/42cc95e0/attachment.html>


More information about the Plasma-devel mailing list