Skip to content

applets/mediacontroller: simplify compact representation

Fushan Wen requested to merge work/fuf/491946 into master

Reason for the change

  1. Use Loader as the root item to reduce the number of Loader
  2. Prefer Layout.fill{Width,Height} over manually assigning parent's width/height to Layout.preferred{Width,Height}
  3. Remove complex sizing in GridLayout, use its implicit size which is easier for maintainence.

Test plan

Add a few media widgets to the panel and the desktop, and change their sizes. Check the content doesn't break.

Screenshots or screen recordings

图片

Bugs fixed

Edited by Fushan Wen

Merge request reports

Loading