haganbmj / MagicSetEditor2

Magic Set Editor is a program for designing trading cards
Other
17 stars 7 forks source link

Per Stylesheet Zoom setting #25

Open haganbmj opened 2 years ago

haganbmj commented 2 years ago

Stylesheets have different display sizes, so using a fixed percentage zoom means you wind up with different window requirements. On top of that a set can have multiple stylesheets within it, so you can run into situations where one card is too big and the next too small.

It should be doable to set Zoom at the stylesheet level, but this requires adding Zoom controls at the toolbar level so that it can be accessed for the active card/style individually.

I think most of the access pattern for displaying Zoom makes a call as if it were a style-based preference already, so this might not be too tricky to do.

G-e-n-e-v-e-n-s-i-S commented 7 months ago

As I stated in #56, stylesheets already define a DPI property, which could be used to set an additional zoom factor. So for 375x523 (150 DPI) templates, this zoom factor would be 1, then for 750x1046 (300 DPI) templates it would be 0.5, etc... This would make it so all the cards would naturally be displayed at the same size.