mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-171404 [followup] allow UI scale exceed 2x
This commit is contained in:
@@ -673,6 +673,17 @@ public class JBUI {
|
||||
* the context scale ({@link BaseScaleContext#usrScale}) or something else.
|
||||
*/
|
||||
protected abstract double currentScale();
|
||||
|
||||
/**
|
||||
* Synchronizes the state with the provided scaler.
|
||||
*
|
||||
* @return whether the state has been updated
|
||||
*/
|
||||
public boolean update(@NotNull Scaler scaler) {
|
||||
boolean updated = initialScale != scaler.initialScale;
|
||||
initialScale = scaler.initialScale;
|
||||
return updated;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1053,6 +1064,7 @@ public class JBUI {
|
||||
protected JBIcon(JBIcon icon) {
|
||||
this();
|
||||
updateScaleContext(icon.getScaleContext());
|
||||
myScaler.update(icon.myScaler);
|
||||
}
|
||||
|
||||
protected boolean isIconPreScaled() {
|
||||
|
||||
Reference in New Issue
Block a user