From 2da49ef276a3b20f5bd3063ac94702022e024bc1 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 5 Mar 2018 19:33:26 +0700 Subject: [PATCH] Fix HIDPI button size issues --- source/net/filebot/platform/windows/WinAppUtilities.java | 2 +- source/net/filebot/ui/subtitle/SubtitlePanel.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/filebot/platform/windows/WinAppUtilities.java b/source/net/filebot/platform/windows/WinAppUtilities.java index f6e073fe..c13d98ae 100644 --- a/source/net/filebot/platform/windows/WinAppUtilities.java +++ b/source/net/filebot/platform/windows/WinAppUtilities.java @@ -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); } diff --git a/source/net/filebot/ui/subtitle/SubtitlePanel.java b/source/net/filebot/ui/subtitle/SubtitlePanel.java index 423ed76e..14029eb5 100644 --- a/source/net/filebot/ui/subtitle/SubtitlePanel.java +++ b/source/net/filebot/ui/subtitle/SubtitlePanel.java @@ -76,8 +76,8 @@ public class SubtitlePanel extends AbstractSearchPanel