mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Update user scale factor after font defaults are patched
To let JBUI.USER_SCALE_FACTOR_PROPERTY listeners to have UIUtil.getLabelFont() (and the stuff like that) return properly scaled font.
This commit is contained in:
@@ -746,8 +746,8 @@ public final class LafManagerImpl extends LafManager implements ApplicationCompo
|
||||
UISettings uiSettings = UISettings.getInstance();
|
||||
if (uiSettings.getOverrideLafFonts()) {
|
||||
storeOriginalFontDefaults(uiDefaults);
|
||||
JBUI.setUserScaleFactor(uiSettings.getFontSize() / UIUtil.DEF_SYSTEM_FONT_SIZE);
|
||||
initFontDefaults(uiDefaults, uiSettings.getFontSize(), new FontUIResource(uiSettings.getFontFace(), Font.PLAIN, uiSettings.getFontSize()));
|
||||
JBUI.setUserScaleFactor(uiSettings.getFontSize() / UIUtil.DEF_SYSTEM_FONT_SIZE);
|
||||
}
|
||||
else {
|
||||
restoreOriginalFontDefaults(uiDefaults);
|
||||
|
||||
Reference in New Issue
Block a user