Browse Source

文件-切换工作目录-其他

persist/11.0-arabic
obo 4 months ago
parent
commit
0daf4bd418
  1. 3
      designer-base/src/main/java/com/fr/design/gui/itree/UITreeUI.java
  2. 4
      designer-base/src/main/java/com/fr/env/LocalEnvPane.java
  3. 2
      designer-base/src/main/java/com/fr/env/RemoteEnvPane.java
  4. 3
      designer-base/src/main/resources/com/fr/design/standard/fileicon/left.svg

3
designer-base/src/main/java/com/fr/design/gui/itree/UITreeUI.java

@ -1,6 +1,7 @@
package com.fr.design.gui.itree; package com.fr.design.gui.itree;
import com.fr.base.BaseUtils; import com.fr.base.BaseUtils;
import com.fr.base.i18n.BidiUtils;
import com.fr.base.svg.IconUtils; import com.fr.base.svg.IconUtils;
import com.fr.design.utils.ThemeUtils; import com.fr.design.utils.ThemeUtils;
@ -29,7 +30,7 @@ public class UITreeUI extends MetalTreeUI {
protected void installDefaults() { protected void installDefaults() {
super.installDefaults(); super.installDefaults();
setExpandedIcon(IconUtils.readIcon("/com/fr/design/standard/fileicon/minus.svg")); setExpandedIcon(IconUtils.readIcon("/com/fr/design/standard/fileicon/minus.svg"));
setCollapsedIcon(IconUtils.readIcon("/com/fr/design/standard/fileicon/plus.svg")); setCollapsedIcon(BidiUtils.rtl() ? IconUtils.readIcon("/com/fr/design/standard/fileicon/left.svg") : IconUtils.readIcon("/com/fr/design/standard/fileicon/plus.svg"));
if (tree.getCellRenderer() instanceof DefaultTreeCellRenderer) { if (tree.getCellRenderer() instanceof DefaultTreeCellRenderer) {
DefaultTreeCellRenderer r = (DefaultTreeCellRenderer) tree.getCellRenderer(); DefaultTreeCellRenderer r = (DefaultTreeCellRenderer) tree.getCellRenderer();
r.setBackgroundNonSelectionColor(ThemeUtils.TEXT_BG_COLOR); r.setBackgroundNonSelectionColor(ThemeUtils.TEXT_BG_COLOR);

4
designer-base/src/main/java/com/fr/env/LocalEnvPane.java vendored

@ -1,5 +1,6 @@
package com.fr.env; package com.fr.env;
import com.fr.base.i18n.BidiUtils;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.design.env.LocalDesignerWorkspaceInfo; import com.fr.design.env.LocalDesignerWorkspaceInfo;
import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilable.UILabel;
@ -33,7 +34,7 @@ public class LocalEnvPane extends BasicBeanPane<LocalDesignerWorkspaceInfo> {
JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
this.add(northPane, BorderLayout.NORTH); this.add(northPane, BorderLayout.NORTH);
northPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Basic_Location") + ":"), BorderLayout.WEST); northPane.add(new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Location"), ":")), BidiUtils.rtl() ? BorderLayout.EAST : BorderLayout.WEST);
pathTextField = new UITextField(); pathTextField = new UITextField();
northPane.add(pathTextField, BorderLayout.CENTER); northPane.add(pathTextField, BorderLayout.CENTER);
@ -67,6 +68,7 @@ public class LocalEnvPane extends BasicBeanPane<LocalDesignerWorkspaceInfo> {
centerPane.add(description, BorderLayout.SOUTH); centerPane.add(description, BorderLayout.SOUTH);
description.setText(Toolkit.i18nText("Fine-Design_Basic_Env_Des1")); description.setText(Toolkit.i18nText("Fine-Design_Basic_Env_Des1"));
description.setEditable(false); description.setEditable(false);
BidiUtils.applyOrientationByLocale(this);
} }
@Override @Override

2
designer-base/src/main/java/com/fr/env/RemoteEnvPane.java vendored

@ -1,5 +1,6 @@
package com.fr.env; package com.fr.env;
import com.fr.base.i18n.BidiUtils;
import com.fr.design.DesignerEnvManager; import com.fr.design.DesignerEnvManager;
import com.fr.design.ExtraDesignClassManager; import com.fr.design.ExtraDesignClassManager;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
@ -317,6 +318,7 @@ public class RemoteEnvPane extends BasicBeanPane<RemoteDesignerWorkspaceInfo> {
UIScrollPane scrollPane = new UIScrollPane(panel); UIScrollPane scrollPane = new UIScrollPane(panel);
this.setLayout(new BorderLayout()); this.setLayout(new BorderLayout());
this.add(scrollPane); this.add(scrollPane);
BidiUtils.applyOrientationByLocale(this);
} }
@Override @Override

3
designer-base/src/main/resources/com/fr/design/standard/fileicon/left.svg

@ -0,0 +1,3 @@
<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 0.482843C6 0.304662 5.78457 0.215428 5.65858 0.341421L2 4L5.65858 7.65858C5.78457 7.78457 6 7.69534 6 7.51716V0.482843Z" fill="#AEAEAE"/>
</svg>

After

Width:  |  Height:  |  Size: 293 B

Loading…
Cancel
Save