Skip to content

Commit

Permalink
Enable HiDPI icons for Windows (first step)
Browse files Browse the repository at this point in the history
This change enables HiDPI icons for Windows. Alas, there are issues
still missing: labels of pie charts too small, windows icons too small,
and possibly more. Alas, it is only a first step.

Issue: #411
  • Loading branch information
buchen committed Mar 6, 2016
1 parent e60be7a commit 9eaf3d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public enum Images
// But: for now it needs enabling via JFace debug option, which in turn
// are only set when using the non-e4 org.eclipse.ui bundle. Alas, we
// enable it directly.
// On Mac OS X it works, on Linux the wrong images got loaded, on
// Windows I could not tell a difference. Therefore I activated it only
// for Mac OS X.
if (Platform.OS_MACOSX.equals(Platform.getOS()))

// On Mac OS X and Windows it works for me, on Linux the wrong images
// got loaded. Therefore I do not activate it for Linux
if (!Platform.OS_LINUX.equals(Platform.getOS()))
org.eclipse.jface.internal.InternalPolicy.DEBUG_LOAD_URL_IMAGE_DESCRIPTOR_2x = true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private void createContainerWithViews(Composite parent)
container.setLayout(new FillLayout());

SashForm sash = new SashForm(container, SWT.HORIZONTAL | SWT.SMOOTH);
sash.setSashWidth(1);
sash.setSashWidth(3);

Composite navigationBar = new Composite(sash, SWT.NONE);
GridLayoutFactory.fillDefaults().numColumns(1).spacing(0, 0).margins(0, 0).applyTo(navigationBar);
Expand Down

0 comments on commit 9eaf3d4

Please sign in to comment.