]> gerrit.simantics Code Review - simantics/platform.git/commit
Small but effective HiDPI fixes for platform G2D 94/2194/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 16 Sep 2018 12:25:59 +0000 (15:25 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 16 Sep 2018 12:25:59 +0000 (15:25 +0300)
commitdf4c45d1132f66008d2889738048363e79f94ebe
tree98c3d3e0a5e18b939016470be2accb52e89bb4c6
parent74083d12acc3169cbeb36f39b3f4837ffdc34233
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: I1ed83913c66b1ea5f330c714fb828f2e5e12b09a
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]