]> gerrit.simantics Code Review - simantics/platform.git/commit
Small but effective HiDPI fixes for platform G2D
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 16 Sep 2018 12:25:59 +0000 (15:25 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 20 Sep 2018 08:18:43 +0000 (11:18 +0300)
commite2c1d3af2cacc95a22f57d701cabd9da12abe9f9
tree9d7a5b46bcd2a62d9792f4de4a688227b544a3b1
parent6ba5036f44266aa14b8e27f1362d33d1ef63e983
Small but effective HiDPI fixes for platform G2D

* GalleryViewer now scales accoring to swt.autoScale setting
* SWTPopupMenuParticipant now properly downscales pixel coordinates to
  SWT API coordinates
* Default symbol title font size is now 12 which is more readable by
  default now that the font size is scaled more correctly than before

gitlab #119

Change-Id: I9ced77879e367efd905138798b18c3fb908e5b21
(cherry picked from commit 181013801c831415efe3cfe346546b5ab62c3214)
bundles/org.simantics.diagram/src/org/simantics/diagram/ui/SWTPopupMenuParticipant.java
bundles/org.simantics.diagram/src/org/simantics/diagram/ui/e4/SWTPopupMenuParticipant.java
bundles/org.simantics.g2d/plugin.xml
bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/DiagramHints.java
bundles/org.simantics.g2d/src/org/simantics/g2d/gallery/GalleryViewer.java
bundles/org.simantics.g2d/src/org/simantics/g2d/utils/FontHelper.java
bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/SWTDPIUtil.java [new file with mode: 0644]