refactor: 修改 tag selector.

This commit is contained in:
lijiahangmax
2023-12-18 00:15:56 +08:00
parent 856c80c28c
commit 7be48c3774
16 changed files with 141 additions and 115 deletions

View File

@@ -24,8 +24,8 @@ public class TerminalPreferenceModel implements PreferenceModel {
@Schema(description = "暗色主题")
private String darkTheme;
@Schema(description = "终端主题")
private JSONObject themeSchema;
@Schema(description = "新建连接类型")
private String newConnectionType;
@Schema(description = "显示设置")
private JSONObject displaySetting;
@@ -33,6 +33,9 @@ public class TerminalPreferenceModel implements PreferenceModel {
@Schema(description = "背景设置")
private JSONObject backgroundSetting;
@Schema(description = "终端主题")
private JSONObject themeSchema;
@Data
@Builder
@NoArgsConstructor

View File

@@ -18,7 +18,7 @@ public class TerminalPreferenceStrategy implements IPreferenceStrategy<TerminalP
public TerminalPreferenceModel getDefault() {
return TerminalPreferenceModel.builder()
.darkTheme("dark")
.themeSchema(new JSONObject())
.newConnectionType("group")
.displaySetting(TerminalPreferenceModel.DisplaySettingModel.builder()
.fontFamily("_")
.fontSize(15)
@@ -31,6 +31,7 @@ public class TerminalPreferenceStrategy implements IPreferenceStrategy<TerminalP
.toJson()
)
.backgroundSetting(new JSONObject())
.themeSchema(new JSONObject())
.build();
}