|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.fr.design.mainframe.theme; |
|
|
|
package com.fr.design.mainframe.theme; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
import com.fr.base.theme.TemplateTheme; |
|
|
|
import com.fr.base.theme.TemplateTheme; |
|
|
|
import com.fr.base.theme.TemplateThemeConfig; |
|
|
|
import com.fr.base.theme.TemplateThemeConfig; |
|
|
|
import com.fr.base.theme.settings.ThemeThumbnail; |
|
|
|
import com.fr.base.theme.settings.ThemeThumbnail; |
|
|
@ -74,7 +75,7 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends |
|
|
|
setLayout(new BorderLayout(5, 0)); |
|
|
|
setLayout(new BorderLayout(5, 0)); |
|
|
|
setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 6)); |
|
|
|
setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 6)); |
|
|
|
add(createLeftPane(), BorderLayout.CENTER); |
|
|
|
add(createLeftPane(), BorderLayout.CENTER); |
|
|
|
add(createRightPane(), BorderLayout.EAST); |
|
|
|
add(createRightPane(), BidiUtils.rtl() ? BorderLayout.WEST : BorderLayout.EAST); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -94,7 +95,7 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends |
|
|
|
themePreviewPane.setPreferredSize(new Dimension(PREVIEW_PANE_WIDTH, PREVIEW_PANE_HEIGHT)); |
|
|
|
themePreviewPane.setPreferredSize(new Dimension(PREVIEW_PANE_WIDTH, PREVIEW_PANE_HEIGHT)); |
|
|
|
previewContainer.add(themePreviewPane, BorderLayout.CENTER); |
|
|
|
previewContainer.add(themePreviewPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
|
|
return titleContainer; |
|
|
|
return BidiUtils.applyOrientationByLocale(titleContainer); |
|
|
|
} |
|
|
|
} |
|
|
|
private JPanel createRightPane() { |
|
|
|
private JPanel createRightPane() { |
|
|
|
themeEditorPane = createThemeEditorPane(); |
|
|
|
themeEditorPane = createThemeEditorPane(); |
|
|
@ -383,8 +384,8 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends |
|
|
|
leftTitlePromptLabel = new UILabel(Toolkit.i18nText("Fine-Design_Theme_Control_PC_Prompt")); |
|
|
|
leftTitlePromptLabel = new UILabel(Toolkit.i18nText("Fine-Design_Theme_Control_PC_Prompt")); |
|
|
|
leftTitleLabel.setForeground(WidgetThemeDisplayConstants.THEME_PREVIEW_TITLE_COLOR); |
|
|
|
leftTitleLabel.setForeground(WidgetThemeDisplayConstants.THEME_PREVIEW_TITLE_COLOR); |
|
|
|
leftTitlePromptLabel.setForeground(WidgetThemeDisplayConstants.COMPATIBLE_STYLE_FONT_COLOR); |
|
|
|
leftTitlePromptLabel.setForeground(WidgetThemeDisplayConstants.COMPATIBLE_STYLE_FONT_COLOR); |
|
|
|
titlePane.add(leftTitleLabel, BorderLayout.WEST); |
|
|
|
titlePane.add(leftTitleLabel, BidiUtils.rtl() ? BorderLayout.EAST : BorderLayout.WEST); |
|
|
|
titlePane.add(leftTitlePromptLabel, BorderLayout.EAST); |
|
|
|
titlePane.add(leftTitlePromptLabel, BidiUtils.rtl() ? BorderLayout.WEST : BorderLayout.EAST); |
|
|
|
return titlePane; |
|
|
|
return titlePane; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |