Browse Source

补充提交

newui
vito 7 months ago
parent
commit
2936dc76b5
  1. 9
      designer-base/src/main/java/com/fine/theme/icon/IconManager.java
  2. 2
      designer-base/src/main/java/com/fine/theme/light/ui/laf/FineDarkLaf.java
  3. 2
      designer-base/src/main/java/com/fine/theme/light/ui/laf/FineLightLaf.java

9
designer-base/src/main/java/com/fine/theme/icon/IconManager.java

@ -19,15 +19,6 @@ import java.util.HashMap;
* 2. 提供图标缓存
* 3. 查找图标
* 4. 配合 {@link LazyIcon} 实现图标懒加载
* 5.
* <p>
* IconSource - 表示实际 Icon 的源的接口
* 目前有两种实现可用 ImageIconSource SvgIconSource .
* <p>
* IconSet - 表示不同可用图标集实现的接口
* 目前有两种实现可用 XmlIconSet RuntimeIconSet .
* <p>
* IconManager 可用于在运行时添加/删除 IconSet 并检索实际 Icon
*
* @author vito
* @since 11.0

2
designer-base/src/main/java/com/fine/theme/light/ui/laf/FineDarkLaf.java

@ -25,7 +25,7 @@ public class FineDarkLaf extends FineLaf {
* @return 是否安装成功
*/
public static boolean setup() {
IconManager.addSet(new FineLightIconSet("fine-dark"));
IconManager.addSet(new FineLightIconSet());
Layouts.setScaleFactor(UIScale.getUserScaleFactor());
UIScale.addPropertyChangeListener(evt -> {
if (StringUtils.equals(evt.getPropertyName(), USER_SCALE_FACTOR)) {

2
designer-base/src/main/java/com/fine/theme/light/ui/laf/FineLightLaf.java

@ -25,7 +25,7 @@ public class FineLightLaf extends FineLaf {
* @return 是否安装成功
*/
public static boolean setup() {
IconManager.addSet(new FineLightIconSet("fine-light"));
IconManager.addSet(new FineLightIconSet());
Layouts.setScaleFactor(UIScale.getUserScaleFactor());
UIScale.addPropertyChangeListener(evt -> {
if (StringUtils.equals(evt.getPropertyName(), USER_SCALE_FACTOR)) {

Loading…
Cancel
Save