!136 feature: #I85EOB:增加设置页面选项
Merge pull request !136 from Luke/Issue-I85EOB
This commit is contained in:
commit
9e239a9756
@ -1,6 +1,10 @@
|
|||||||
package org.jcnc.jnotepad.ui.setstage;
|
package org.jcnc.jnotepad.ui.setstage;
|
||||||
|
|
||||||
|
import atlantafx.base.controls.CustomTextField;
|
||||||
|
import atlantafx.base.theme.Dracula;
|
||||||
|
import atlantafx.base.theme.PrimerDark;
|
||||||
import atlantafx.base.theme.Styles;
|
import atlantafx.base.theme.Styles;
|
||||||
|
import javafx.application.Application;
|
||||||
import javafx.geometry.Insets;
|
import javafx.geometry.Insets;
|
||||||
import javafx.geometry.Pos;
|
import javafx.geometry.Pos;
|
||||||
import javafx.scene.Node;
|
import javafx.scene.Node;
|
||||||
@ -11,6 +15,8 @@ import javafx.scene.layout.HBox;
|
|||||||
import javafx.scene.layout.StackPane;
|
import javafx.scene.layout.StackPane;
|
||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
import javafx.scene.paint.Color;
|
import javafx.scene.paint.Color;
|
||||||
|
import javafx.scene.text.Font;
|
||||||
|
import javafx.scene.text.Text;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
import org.jcnc.jnotepad.common.util.UiUtil;
|
import org.jcnc.jnotepad.common.util.UiUtil;
|
||||||
import org.jcnc.jnotepad.plugin.PluginManagerInterface;
|
import org.jcnc.jnotepad.plugin.PluginManagerInterface;
|
||||||
@ -213,8 +219,28 @@ public class SetStage extends Stage {
|
|||||||
* @return 常规设置项1的布局节点
|
* @return 常规设置项1的布局节点
|
||||||
*/
|
*/
|
||||||
private Node createGeneralSettingsLayout1() {
|
private Node createGeneralSettingsLayout1() {
|
||||||
VBox generalLayout = new VBox();
|
VBox generalLayout = new VBox(10);
|
||||||
generalLayout.getChildren().add(new Label("常规设置项1的布局"));
|
generalLayout.setPadding(new Insets(25));
|
||||||
|
|
||||||
|
var hBox=new HBox(5);
|
||||||
|
|
||||||
|
var fileChooseText =new Text("路径选择: ");
|
||||||
|
fileChooseText.setFont(new Font(18));
|
||||||
|
|
||||||
|
var fileChoose =new CustomTextField("");
|
||||||
|
fileChoose.getStyleClass().add(Styles.SMALL);
|
||||||
|
fileChoose.setPrefWidth(420);
|
||||||
|
|
||||||
|
var fileChooseBtn =new Button();
|
||||||
|
fileChooseBtn.setText("选择文件夹");
|
||||||
|
fileChooseBtn.getStyleClass().addAll(Styles.SMALL);
|
||||||
|
fileChooseBtn.setOnAction(event -> {
|
||||||
|
// TODO: 2023/10/4 选择文件
|
||||||
|
|
||||||
|
});
|
||||||
|
hBox.getChildren().addAll(fileChooseText,fileChoose,fileChooseBtn);
|
||||||
|
|
||||||
|
generalLayout.getChildren().addAll(hBox);
|
||||||
|
|
||||||
return generalLayout;
|
return generalLayout;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,6 +37,9 @@ public class SidebarToolBar extends javafx.scene.control.ToolBar {
|
|||||||
private SidebarToolBar() {
|
private SidebarToolBar() {
|
||||||
// 垂直排列
|
// 垂直排列
|
||||||
this.setOrientation(Orientation.VERTICAL);
|
this.setOrientation(Orientation.VERTICAL);
|
||||||
|
this.setOnMouseClicked(event -> {
|
||||||
|
// SidebarToolBar 点击事件
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
jpackage \
|
|
||||||
--name JNotepad \
|
|
||||||
--type app-image \
|
|
||||||
-m org.jcnc.jnotepad/org.jcnc.jnotepad.LunchApp \
|
|
||||||
--runtime-image ./target/JNotepad/ \
|
|
||||||
--icon src/main/resources/img/icon.ico \
|
|
||||||
--app-version 1.1.13 \
|
|
||||||
--vendor "JCNC"
|
|
||||||
@ -6,12 +6,3 @@ jpackage `
|
|||||||
--icon src/main/resources/img/icon.ico `
|
--icon src/main/resources/img/icon.ico `
|
||||||
--app-version 1.1.13 `
|
--app-version 1.1.13 `
|
||||||
--vendor "JCNC"
|
--vendor "JCNC"
|
||||||
|
|
||||||
|
|
||||||
jpackage `
|
|
||||||
--name demo `
|
|
||||||
--type app-image `
|
|
||||||
-m com.example.demo/com.example.demo.Demo `
|
|
||||||
--runtime-image .\target\app\ `
|
|
||||||
--app-version 1.0.0 `
|
|
||||||
--vendor "JCNC"
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user