Fix HIDPI button size issues

This commit is contained in:
Reinhard Pointner 2018-03-05 19:33:26 +07:00
parent a459d40961
commit 2da49ef276
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ public class WinAppUtilities {
// improved UI defaults
UIManager.put("TitledBorder.border", createCompoundBorder(createLineBorder(new Color(0xD7D7D7), 1, true), createCompoundBorder(createMatteBorder(6, 5, 6, 5, new Color(0xE5E5E5)), createEmptyBorder(0, 2, 0, 2))));
// disable MigLayout auto-scaling (see https://github.com/mikaelgrev/miglayout/issues/53)
// disable MigLayout scaling to fix layout on high-resolution screens (see https://github.com/mikaelgrev/miglayout/issues/53)
PlatformDefaults.setLogicalPixelBase(PlatformDefaults.BASE_REAL_PIXEL);
}

View File

@ -76,8 +76,8 @@ public class SubtitlePanel extends AbstractSearchPanel<SubtitleProvider, Subtitl
add(createImageButton(setUserAction), "w pref!, h 2+pref!, gap rel, sgy button", 2);
// add at the top right corner
add(uploadDropTarget, "width 1.45cm!, height 1.2cm!, pos n 0% 100%-1.8cm n", 0);
add(downloadDropTarget, "width 1.45cm!, height 1.2cm!, pos n 0% 100%-0.15cm n", 0);
add(uploadDropTarget, "width 50px!, height 40px!, pos n 0% 100%-60px n", 0);
add(downloadDropTarget, "width 50px!, height 40px!, pos n 0% 100%-5px n", 0);
}
@Subscribe