D11533: [kstyle] create shadow tiles more explicitly

Hugo Pereira Da Costa noreply at phabricator.kde.org
Mon Apr 9 16:36:32 UTC 2018


hpereiradacosta added a comment.


  Hi Vlad,
  
  First sorry for the late answer !
  Second: I agree that the current code is bug prone, but your foreseen change is not satisfactory either. 
  The idea with the current code was to try create the shadows only "once" and if it fails for some reason, leave it failed for all widgets for which it is requested. 
  In your modified code however, if the creation of shadowtiles fails once, it keeps being called over and over again for each new widget. 
  I think this should be avoided. 
  One solution is possibly to call shadowTiles once and only once, in breezeStyle::loadConfiguration, and just test whether it is valid whenever used. 
  what do you think ?

REPOSITORY
  R31 Breeze

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

To: zzag, #breeze, hpereiradacosta
Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180409/f592e27b/attachment.html>


More information about the Plasma-devel mailing list