Skip to content

Commit e8c4520

Browse files
committed
feat: update
1 parent eee1814 commit e8c4520

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

HMCL/src/main/java/org/jackhuang/hmcl/ui/FXUtils.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,16 +299,16 @@ public static void limitSize(ImageView imageView, double maxWidth, double maxHei
299299
});
300300
}
301301

302-
private static final double DEFAULT_WRAP_WIDTH = 30;
303-
private static final double DEFAULT_WRAP_HEIGHT = 20;
304-
private static final int DEFAULT_SVG_ICON_SIZE = 20;
302+
private static final double WRAP_WIDTH = 30;
303+
private static final double WRAP_HEIGHT = 20;
304+
private static final int SVG_ICON_SIZE = 20;
305305

306306
public static Node wrap(Node node) {
307-
return limitingSize(node, DEFAULT_WRAP_WIDTH, DEFAULT_WRAP_HEIGHT);
307+
return limitingSize(node, WRAP_WIDTH, WRAP_HEIGHT);
308308
}
309309

310310
public static Node wrap(SVG svg) {
311-
return wrap(svg.createIcon(DEFAULT_SVG_ICON_SIZE));
311+
return wrap(svg.createIcon(SVG_ICON_SIZE));
312312
}
313313

314314
private static class ListenerPair<T> {

0 commit comments

Comments
 (0)