Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Modernize the UI of Your Eclipse Application

Modernize the UI of Your Eclipse Application

As today's displays have a high resolution (Retina / 4K / 5K) Eclipse applications also have to provide high resolution graphics. Otherwise the existing (low resolution) graphics are scaled up by SWT and look blurry. Let’s see where Eclipse application use graphics and how we can provide high resolution versions of them.

Matthias Becker

October 19, 2020
Tweet

Other Decks in Programming

Transcript

  1. • Encoded as list of pixels • Fast to read

    but not very flexible • Get blurry when scaled up Raster Images
  2. • Encoded as drawing operations • Slow to read by

    very flexible • Stay crisp when scaled up Vector Images
  3. • SWT does not support SVG • (Re-) Draw icons

    as SVG • Generate PNGs in multiple resolutions <command commandId=”…" icon="icons/full/elcl16/new.png" label="%Views.NewPropertySheet" style="push"/> Icons https://bugs.eclipse.org/bugs/show_bug.cgi?id=468945
  4. <img src="../select_pers.png" width="350"> Documentation II • Don’t use screenshots! •

    Make high resolution screenshots • Scale down in HTML code https://bugs.eclipse.org/bugs/show_bug.cgi?id=559498 https://bugs.eclipse.org/bugs/show_bug.cgi?id=566988
  5. <extensionContent id="…" > <group label="Java Development"> <link id="hello-world" > <text>…</text>

    </link> </group> a#hello-world img {background-image:url("../javaapp48.svg");} Welcome Page • Use SVGs directly https://bugs.eclipse.org/bugs/show_bug.cgi?id=560465
  6. Icons – Pixel Alignment • Align at exact pixel borders

    • Enable page grid • Use “snap” function