Skip to content

Update scale when global scale to fit changes

Guido Günther requested to merge guidog/phoc:scale-to-fit-prop into master

With phosh-mobile-settings it will be easier to toggle this so this MR:

  • make PhocDesktop's `scale-to-fit a property
  • makes views listen for property changes
  • resets scale to 1 when scaling is not wanted

We could do more but this should fix the some bits of #141 . I reindented view_update_scale as I had to move a tiny bit of code around in that function so git log -w of the second last commit should help. Things are getting more consistent in that area too:

$ git grep '^ ' -- src/  | wc -l
11406
$ git grep '^<tab>' -- src/  | wc -l
2835

I refrained from making scale a property too (which we could then could animate) to avoid further churn atm.

Merge request reports