修改一些细节

This commit is contained in:
liwen
2020-12-09 10:19:07 +08:00
parent 57c9bcc56d
commit cc5ab247c1
9 changed files with 178 additions and 121 deletions

View File

@@ -273,7 +273,7 @@ public class HomeController {
.skinType(Tile.SkinType.WORLDMAP).foregroundBaseColor(FOREGROUND_LIGHT).backgroundColor(BACKGROUND_LIGHT).borderRadius(14).borderColor(BORDERCOLOR_LIGHT).borderWidth(0.8d)
.title("WorldMap Tile")
.text("Whatever text")
.textVisible(false)
.textVisible(false).shadowsEnabled(true)
.build();
@@ -282,7 +282,7 @@ public class HomeController {
.title("RadialChart")
.text("Some text")
.textVisible(false)
.chartData(chartData1, chartData2, chartData3, chartData4)
.chartData(chartData1, chartData2, chartData3, chartData4).shadowsEnabled(true)
.build();
donutChartTile = TileBuilder.create()
@@ -437,6 +437,7 @@ public class HomeController {
((Tile) node).setBackgroundColor(BACKGROUND_DARK);
((Tile) node).setBorderColor(BORDERCOLOR_DARK);
((Tile) node).setForegroundBaseColor(FOREGROUND_DARK);
((Tile) node).setShadowsEnabled(true);
((Tile) node).getChartData().forEach(chartData -> {
chartData.setTextColor(FOREGROUND_DARK);
});
@@ -445,7 +446,7 @@ public class HomeController {
((Tile) node).setBackgroundColor(BACKGROUND_LIGHT);
((Tile) node).setBorderColor(BORDERCOLOR_LIGHT);
((Tile) node).setForegroundBaseColor(FOREGROUND_LIGHT);
((Tile) node).setShadowsEnabled(true);
((Tile) node).getChartData().forEach(chartData -> {
chartData.setTextColor(FOREGROUND_LIGHT);
});

View File

@@ -139,7 +139,7 @@ public class MainController {
userButton.textProperty().bind(ApplicatonStore.nameProperty());
try {
homeButton.setGraphic(SVGGlyphLoader.getIcoMoonGlyph(ApplicatonStore.ICON_FONT_KEY + ".home-outline"));
refreshButton.setGraphic(SVGGlyphLoader.getIcoMoonGlyph(ApplicatonStore.ICON_FONT_KEY + ".shuaxin"));
refreshButton.setGraphic(SVGGlyphLoader.getIcoMoonGlyph(ApplicatonStore.ICON_FONT_KEY + ".shuaxin1"));
rolesBut.setGraphic(SVGGlyphLoader.getIcoMoonGlyph(ApplicatonStore.ICON_FONT_KEY + ".admin"));
userButton.setGraphic(SVGGlyphLoader.getIcoMoonGlyph(ApplicatonStore.ICON_FONT_KEY + ".ChevronDownCircle"));
} catch (Exception e) {

View File

@@ -31,6 +31,10 @@
-fx-background-color: -fx-card-base;
}
.tool-pane{
-fx-border-color: -fx-border-base;
-fx-border-width: 0 0 0.45 0;
}
.jfx-svg-glyph {
-fx-background-color: -fx-text-color;
}
@@ -43,9 +47,11 @@
-fx-background-color: -fx-card-base;
-fx-padding: 10;
-fx-background-radius: 14px;
-fx-border-color: #313D4F;
-fx-border-color: transparent;
-fx-border-width: 1px;
-fx-border-radius: 14px;
-fx-effect: dropshadow(gaussian, rgba(0,0,0,0.56), 12, 0, 0, 0);
}
@@ -104,6 +110,7 @@
-fx-background-color: -fx-accent-color;
-fx-text-fill: -fx-text-color;
-jfx-button-type: RAISED;
}
.jfx-button > MaterialDesignIconView, .toggle-button > MaterialDesignIconView {
@@ -949,6 +956,8 @@
-PINK : rgb(233, 14, 139);
-foreground-color: -FOREGROUND;
-fx-effect: dropshadow(gaussian, rgba(0,0,0,0.56), 12, 0, 0, 0);
}
.tile .chart-vertical-grid-lines {
-fx-stroke : #797979;

View File

@@ -25,7 +25,7 @@
-fx-light-text-color: #404040;
-fx-text-color: ladder(-fx-main-base, -fx-dark-text-color 29%, -fx-light-text-color 30%);
-fx-icon-svg-color: rgb(3,115,248)
-fx-icon-svg-color: rgb(3, 115, 248)
}
@@ -33,6 +33,11 @@
-fx-background-color: -fx-card-base;
}
.tool-pane{
-fx-border-color: -fx-border-base;
-fx-border-width: 0 0 0.45 0;
}
.jfx-svg-glyph {
-fx-background-color: -fx-text-color;
}
@@ -45,17 +50,19 @@
-fx-background-color: -fx-card-base;
-fx-padding: 10;
-fx-background-radius: 14px;
-fx-border-color: -fx-border-base;
-fx-border-color: transparent;
-fx-border-width: 1px;
-fx-border-radius: 14px;
-fx-effect: dropshadow(gaussian, #8f959c, 12, 0.2, 0, 0);
}
/*******************************************************************************
* *
* text和label *
* *
*******************************************************************************/
.
/*******************************************************************************
* *
* text和label *
* *
*******************************************************************************/
.label {
-fx-text-fill: -fx-text-color;
-fx-font-family: "Microsoft YaHei";
@@ -106,6 +113,7 @@
-fx-background-color: -fx-accent-color;
-fx-text-fill: -fx-text-color;
-jfx-button-type: RAISED;
}
.jfx-button > MaterialDesignIconView, .toggle-button > MaterialDesignIconView {
@@ -114,7 +122,8 @@
-fx-prompt-text-fill: -fx-text-color;
-jfx-size: 16px;
}
.jfx-toggle-button{
.jfx-toggle-button {
-fx-text-fill: -fx-text-color;
}
@@ -492,7 +501,7 @@
-jfx-rippler-fill: derive(-fx-accent-color, -20%);
}
#navigation-menu{
#navigation-menu {
-fx-background-color: #F9F9F9;
}
@@ -935,35 +944,39 @@
* *
*******************************************************************************/
.tile {
-BACKGROUND : rgb(255, 255, 255);
-FOREGROUND : rgb(52, 52, 52);
-GRAY : rgb(139,144,146);
-RED : rgb(229, 80, 76);
-LIGHT_RED : rgb(255, 84, 56);
-GREEN : rgb(143, 198, 94);
-LIGHT_GREEN : rgb(132, 228, 50);
-BLUE : rgb(55, 179, 252);
-DARK_BLUE : rgb(55, 94, 252);
-ORANGE : rgb(237, 162, 57);
-YELLOW_ORANGE : rgb(229, 198, 76);
-YELLOW : rgb(229, 229, 76);
-MAGENTA : rgb(198, 75, 232);
-PINK : rgb(233, 14, 139);
-BACKGROUND: rgb(255, 255, 255);
-FOREGROUND: rgb(52, 52, 52);
-GRAY: rgb(139, 144, 146);
-RED: rgb(229, 80, 76);
-LIGHT_RED: rgb(255, 84, 56);
-GREEN: rgb(143, 198, 94);
-LIGHT_GREEN: rgb(132, 228, 50);
-BLUE: rgb(55, 179, 252);
-DARK_BLUE: rgb(55, 94, 252);
-ORANGE: rgb(237, 162, 57);
-YELLOW_ORANGE: rgb(229, 198, 76);
-YELLOW: rgb(229, 229, 76);
-MAGENTA: rgb(198, 75, 232);
-PINK: rgb(233, 14, 139);
-foreground-color: -FOREGROUND;
-fx-effect: dropshadow(gaussian, #8f959c, 12, 0, 0, 0);
}
.tile .chart-vertical-grid-lines {
-fx-stroke : #9d9d9d;
-fx-stroke: #9d9d9d;
-fx-stroke-dash-array: null;
}
.tile .chart-horizontal-grid-lines {
-fx-stroke : #9d9d9d;
-fx-stroke: #9d9d9d;
-fx-stroke-dash-array: null;
}
.tile .axis {
AXIS_COLOR : #454545;
AXIS_COLOR: #454545;
-fx-tick-label-fill: #454545;
}

View File

@@ -20,6 +20,12 @@ Created by iconfont
/>
<missing-glyph />
<glyph glyph-name="chakan-copy" unicode="&#58884;" d="M512.852 119.731c-55.321 0-112.681 11.325-170.487 33.663-45.814 17.703-92.023 42.333-137.344 73.207-76.95 52.421-124.384 104.293-126.366 106.476l-12.49 13.757 12.49 13.758c1.982 2.183 49.416 54.055 126.365 106.476 45.321 30.874 91.53 55.505 137.343 73.208 57.807 22.338 115.167 33.663 170.488 33.663 55.322 0 112.681-11.326 170.487-33.663 45.814-17.703 92.023-42.333 137.344-73.208 76.949-52.421 124.384-104.293 126.365-106.476l12.49-13.757-12.49-13.757c-1.982-2.183-49.416-54.055-126.365-106.476-45.321-30.874-91.53-55.504-137.344-73.207-57.805-22.339-115.165-33.664-170.486-33.664zM122.429 346.836c18.801-18.469 56.324-52.908 106.476-86.975 66.62-45.254 169.961-99.197 283.947-99.197 114.335 0 217.976 54.255 284.786 99.767 49.879 33.979 86.998 68.061 105.646 86.396-18.802 18.471-56.328 52.914-106.485 86.984-66.621 45.254-169.962 99.197-283.947 99.197-113.986 0-217.327-53.944-283.947-99.197-50.149-34.064-87.671-68.503-106.476-86.975zM512.852 198.312c-81.724 0-148.212 66.626-148.212 148.524s66.487 148.524 148.212 148.524c81.724 0 148.212-66.627 148.212-148.524s-66.487-148.524-148.212-148.524zM512.852 454.427c-59.154 0-107.279-48.265-107.279-107.591s48.125-107.591 107.279-107.591 107.279 48.265 107.279 107.591c0 59.326-48.126 107.591-107.279 107.591z" horiz-adv-x="1024" />
<glyph glyph-name="shuaxin1" unicode="&#58887;" d="M512 52.48a322.987 322.987 0 0 0-269.653 146.347h-85.334A395.947 395.947 0 0 1 512-21.333a400.213 400.213 0 0 1 395.52 368.64h73.813l-108.373 147.2-108.373-147.2h70.4A327.253 327.253 0 0 0 512 52.48z m0 736.853a399.36 399.36 0 0 1-390.4-331.52H42.667L151.04 310.187l108.373 147.626h-64.426a326.827 326.827 0 0 0 317.013 256A322.133 322.133 0 0 0 756.907 600.32l14.08 3.413h73.386A393.813 393.813 0 0 1 512 789.333z" horiz-adv-x="1024" />
<glyph glyph-name="user-name" unicode="&#58882;" d="M652.3 333.29999999999995C741.6 382.70000000000005 802 477.8 802 587c0 160.2-129.8 290-290 290-160.2 0-290-129.8-290-290 0-109.2 60.4-204.3 149.7-253.7C184 273.79999999999995 48 98.29999999999995 48-109l58 0c0 224.2 181.8 406 406 406 224.2 0 406-181.8 406-406l58 0C976 98.29999999999995 840 273.79999999999995 652.3 333.29999999999995zM280 587c0 128.1 103.9 232 232 232 128.1 0 232-103.9 232-232 0-128.1-103.9-232-232-232C383.9 355 280 458.9 280 587z" horiz-adv-x="1024" />

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -42,15 +42,15 @@
</HBox>
<SplitPane dividerPositions="0.29797979797979796" VBox.vgrow="ALWAYS">
<items>
<VBox maxHeight="1.7976931348623157E308" maxWidth="-Infinity" minWidth="250.0" prefWidth="250.0" spacing="7.0" styleClass="card-pane">
<VBox maxHeight="1.7976931348623157E308" maxWidth="-Infinity" minWidth="250.0" prefWidth="250.0" scaleX="0.95" scaleY="0.95" spacing="7.0" styleClass="card-pane">
<children>
<JFXTextField fx:id="treeSearchTextField" promptText="输入关键字过滤" />
<JFXTreeView fx:id="treeView" VBox.vgrow="ALWAYS" />
</children>
</VBox>
<StackPane styleClass="card-pane">
<StackPane scaleX="0.95" scaleY="0.95" styleClass="card-pane">
<children>
<VBox fx:id="contentPane" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="367.0" prefWidth="380.0" styleClass="card-pane" StackPane.alignment="CENTER">
<VBox fx:id="contentPane" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="367.0" prefWidth="380.0" StackPane.alignment="CENTER">
<children>
<GridPane alignment="CENTER" nodeOrientation="LEFT_TO_RIGHT" vgap="15.0" VBox.vgrow="ALWAYS">
<columnConstraints>
@@ -101,9 +101,6 @@
</children>
</StackPane>
</items>
<VBox.margin>
<Insets />
</VBox.margin>
</SplitPane>
</children>
</VBox>

View File

@@ -22,108 +22,124 @@
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?>
<StackPane fx:id="rootPane" prefHeight="547.0" prefWidth="771.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1">
<StackPane fx:id="rootPane" prefHeight="547.0" prefWidth="771.0" xmlns="http://javafx.com/javafx/8.0.171"
xmlns:fx="http://javafx.com/fxml/1">
<children>
<SplitPane dividerPositions="0.3" prefHeight="559.0" prefWidth="868.0">
<items>
<VBox maxWidth="280.0" prefWidth="240.0" spacing="7.0" styleClass="card-pane">
<VBox maxWidth="280.0" prefWidth="240.0" scaleX="0.95" scaleY="0.95" spacing="7.0"
styleClass="card-pane">
<children>
<HBox alignment="CENTER" prefHeight="29.0" prefWidth="205.0">
<children>
<ToggleButton fx:id="addButton" styleClass="left-pill" text="添加" />
<ToggleButton fx:id="editButton" styleClass="center-pill" text="编辑" />
<ToggleButton fx:id="deleteButton" styleClass="right-pill" text="删除" />
<ToggleButton fx:id="addButton" styleClass="left-pill" text="添加"/>
<ToggleButton fx:id="editButton" styleClass="center-pill" text="编辑"/>
<ToggleButton fx:id="deleteButton" styleClass="right-pill" text="删除"/>
</children>
<padding>
<Insets bottom="7.0" top="7.0" />
</padding>
<padding>
<Insets bottom="7.0" top="7.0"/>
</padding>
</HBox>
<StackPane VBox.vgrow="ALWAYS">
<children>
<VBox fx:id="treePane" spacing="7.0">
<children>
<JFXTextField fx:id="treeSearchTextField" promptText="输入关键字进行过滤" />
<TreeView fx:id="treeView" VBox.vgrow="ALWAYS" />
<JFXTextField fx:id="treeSearchTextField" promptText="输入关键字进行过滤"/>
<TreeView fx:id="treeView" VBox.vgrow="ALWAYS"/>
</children>
</VBox>
<JFXSpinner fx:id="treeViewSpinner" radius="18.0" startingAngle="90.0" styleClass="blue-spinner" visible="false" />
<JFXSpinner fx:id="treeViewSpinner" radius="18.0" startingAngle="90.0"
styleClass="blue-spinner" visible="false"/>
</children>
</StackPane>
</children>
</VBox>
<VBox styleClass="card-pane">
<VBox scaleX="0.95" scaleY="0.95" styleClass="card-pane">
<children>
<VBox fx:id="infoPane" prefHeight="295.0" prefWidth="534.0" spacing="7.0">
<children>
<Label maxHeight="30.0" prefHeight="30.0" styleClass="title-label" text="菜单信息" />
<GridPane fx:id="gridPane" alignment="CENTER" hgap="30.0" prefHeight="181.0" prefWidth="351.0" vgap="20.0" VBox.vgrow="ALWAYS">
<Label maxHeight="30.0" prefHeight="30.0" styleClass="title-label" text="菜单信息"/>
<GridPane fx:id="gridPane" alignment="CENTER" hgap="30.0" prefHeight="181.0"
prefWidth="351.0" vgap="20.0" VBox.vgrow="ALWAYS">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0"/>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0"/>
</columnConstraints>
<rowConstraints>
<RowConstraints />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints/>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
</rowConstraints>
<children>
<JFXTextField fx:id="codeTextField" labelFloat="true" promptText="路径编码" GridPane.rowIndex="1" />
<JFXTextField fx:id="orderNumTextField" labelFloat="true" promptText="排序" GridPane.rowIndex="4" />
<JFXTextField fx:id="titleTextField" labelFloat="true" promptText="标题" GridPane.rowIndex="2" />
<JFXTextField fx:id="parentIdTextField" labelFloat="true" promptText="父级节点" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<JFXTextField fx:id="iconTextField" labelFloat="true" promptText="图标" GridPane.rowIndex="3" />
<JFXTextArea fx:id="descriptionTextAre" labelFloat="true" promptText="描述" GridPane.columnIndex="1" GridPane.rowIndex="2" GridPane.rowSpan="3">
<JFXTextField fx:id="codeTextField" labelFloat="true" promptText="路径编码"
GridPane.rowIndex="1"/>
<JFXTextField fx:id="orderNumTextField" labelFloat="true" promptText="排序"
GridPane.rowIndex="4"/>
<JFXTextField fx:id="titleTextField" labelFloat="true" promptText="标题"
GridPane.rowIndex="2"/>
<JFXTextField fx:id="parentIdTextField" labelFloat="true" promptText="父级节点"
GridPane.columnIndex="1" GridPane.rowIndex="1"/>
<JFXTextField fx:id="iconTextField" labelFloat="true" promptText="图标"
GridPane.rowIndex="3"/>
<JFXTextArea fx:id="descriptionTextAre" labelFloat="true" promptText="描述"
GridPane.columnIndex="1" GridPane.rowIndex="2"
GridPane.rowSpan="3">
<GridPane.margin>
<Insets top="10.0" />
<Insets top="10.0"/>
</GridPane.margin>
</JFXTextArea>
<JFXTextField fx:id="hrefTextFeild" labelFloat="true" promptText="资源路径" GridPane.columnSpan="2" GridPane.rowIndex="5" />
<JFXTextField fx:id="hrefTextFeild" labelFloat="true" promptText="资源路径"
GridPane.columnSpan="2" GridPane.rowIndex="5"/>
</children>
</GridPane>
<ButtonBar fx:id="buttonBar">
<buttons>
<JFXButton fx:id="updateButton" buttonType="RAISED" text="更新" />
<JFXButton fx:id="saveButton" buttonType="RAISED" text="保存" />
<JFXButton fx:id="cancelButton" buttonType="RAISED" text="取消" />
<JFXButton fx:id="updateButton" buttonType="RAISED" text="更新"/>
<JFXButton fx:id="saveButton" buttonType="RAISED" text="保存"/>
<JFXButton fx:id="cancelButton" buttonType="RAISED" text="取消"/>
</buttons>
<VBox.margin>
<Insets top="10.0" />
<Insets top="10.0"/>
</VBox.margin>
</ButtonBar>
</children>
</VBox>
<VBox fx:id="elementPane" prefHeight="200.0" prefWidth="100.0" spacing="7.0" VBox.vgrow="ALWAYS">
<VBox fx:id="elementPane" prefHeight="200.0" prefWidth="100.0" spacing="7.0"
VBox.vgrow="ALWAYS">
<children>
<VBox alignment="CENTER_LEFT" spacing="7.0">
<children>
<Label styleClass="title-label" text="按钮或资源" />
<HBox alignment="CENTER_RIGHT" spacing="10.0">
<children>
<JFXTextField fx:id="elementfilterField" prefHeight="27.0" prefWidth="216.0" promptText="请输入名称\类型\请求类型搜索" />
<JFXButton fx:id="addElement" buttonType="RAISED" text="添加" />
</children>
</HBox>
<Label styleClass="title-label" text="按钮或资源"/>
<HBox alignment="CENTER_RIGHT" spacing="10.0">
<children>
<JFXTextField fx:id="elementfilterField" prefHeight="27.0"
prefWidth="216.0" promptText="请输入名称\类型\请求类型搜索"/>
<JFXButton fx:id="addElement" buttonType="RAISED" text="添加"/>
</children>
</HBox>
</children>
</VBox>
<TableView fx:id="tableView" tableMenuButtonVisible="true" VBox.vgrow="ALWAYS">
<columns>
<TableColumn fx:id="serialNumberColumn" maxWidth="45.0" minWidth="45.0" prefWidth="45.0" text="序号" />
<TableColumn fx:id="codeColumn" prefWidth="90.0" text="资源编码" />
<TableColumn fx:id="typeColumn" prefWidth="75.0" text="资源类型" />
<TableColumn fx:id="nameColumn" prefWidth="75.0" text="资源名称" />
<TableColumn fx:id="addressColumn" prefWidth="75.0" text="资源地址" />
<TableColumn fx:id="requestTypeColumn" prefWidth="75.0" text="资源请求类型" />
<TableColumn fx:id="descriptionColumn" prefWidth="75.0" text="描述" />
<TableColumn fx:id="operateColumn" maxWidth="120.0" minWidth="120.0" prefWidth="120.0" text="操作" />
<TableColumn fx:id="serialNumberColumn" maxWidth="45.0" minWidth="45.0"
prefWidth="45.0" text="序号"/>
<TableColumn fx:id="codeColumn" prefWidth="90.0" text="资源编码"/>
<TableColumn fx:id="typeColumn" prefWidth="75.0" text="资源类型"/>
<TableColumn fx:id="nameColumn" prefWidth="75.0" text="资源名称"/>
<TableColumn fx:id="addressColumn" prefWidth="75.0" text="资源地址"/>
<TableColumn fx:id="requestTypeColumn" prefWidth="75.0" text="资源请求类型"/>
<TableColumn fx:id="descriptionColumn" prefWidth="75.0" text="描述"/>
<TableColumn fx:id="operateColumn" maxWidth="120.0" minWidth="120.0"
prefWidth="120.0" text="操作"/>
</columns>
<columnResizePolicy>
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/>
</columnResizePolicy>
</TableView>
</children>
@@ -138,19 +154,20 @@
<Label>JFoenix Dialog</Label>
</heading>
<body>
<fx:include source="components/menu_detailed.fxml" />
<fx:include source="components/menu_detailed.fxml"/>
</body>
<actions>
<JFXProgressBar fx:id="elementProgressBar" managed="false" maxWidth="1.7976931348623157E308" prefWidth="320" visible="false">
<JFXProgressBar fx:id="elementProgressBar" managed="false" maxWidth="1.7976931348623157E308"
prefWidth="320" visible="false">
</JFXProgressBar>
<JFXButton fx:id="updateElementButton" buttonType="RAISED" text="更新" />
<JFXButton fx:id="saveElementButton" buttonType="RAISED" text="保存" />
<JFXButton fx:id="cancelElementButton" buttonType="RAISED" text="取消" />
<JFXButton fx:id="updateElementButton" buttonType="RAISED" text="更新"/>
<JFXButton fx:id="saveElementButton" buttonType="RAISED" text="保存"/>
<JFXButton fx:id="cancelElementButton" buttonType="RAISED" text="取消"/>
</actions>
</JFXDialogLayout>
</JFXDialog>
</children>
<opaqueInsets>
<Insets />
<Insets/>
</opaqueInsets>
</StackPane>

View File

@@ -32,42 +32,42 @@
<VBox maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="400.0" prefWidth="600.0">
<children>
<HBox alignment="CENTER_LEFT" maxHeight="-Infinity" maxWidth="1.7976931348623157E308" minHeight="-Infinity" prefHeight="50.0" spacing="5.0" VBox.vgrow="ALWAYS">
<children>
<JFXHamburger fx:id="navigationButton" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="40.0" prefWidth="40.0">
<animation>
<HamburgerSlideCloseTransition />
</animation>
<padding>
<Insets left="5.0" />
</padding>
</JFXHamburger>
<JFXButton fx:id="homeButton" contentDisplay="GRAPHIC_ONLY" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="40.0" prefWidth="40.0" styleClass="tool-bar-button" />
<JFXButton fx:id="refreshButton" contentDisplay="GRAPHIC_ONLY" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="40.0" prefWidth="40.0" styleClass="tool-bar-button" />
<JFXDatePicker fx:id="datePicker" editable="false" maxWidth="150">
<HBox.margin>
<Insets />
</HBox.margin>
<padding>
<Insets bottom="7.0" />
</padding>
</JFXDatePicker>
<HBox alignment="CENTER_LEFT" maxHeight="-Infinity" maxWidth="1.7976931348623157E308" minHeight="-Infinity" prefHeight="50.0" spacing="5.0" styleClass="tool-pane" VBox.vgrow="ALWAYS">
<children>
<JFXHamburger fx:id="navigationButton" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="40.0" prefWidth="40.0">
<animation>
<HamburgerSlideCloseTransition />
</animation>
<padding>
<Insets left="5.0" />
</padding>
</JFXHamburger>
<JFXButton fx:id="homeButton" contentDisplay="GRAPHIC_ONLY" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="40.0" prefWidth="40.0" styleClass="tool-bar-button" />
<JFXButton fx:id="refreshButton" contentDisplay="GRAPHIC_ONLY" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="40.0" prefWidth="40.0" styleClass="tool-bar-button" />
<JFXDatePicker fx:id="datePicker" editable="false" maxWidth="150">
<HBox.margin>
<Insets />
</HBox.margin>
<padding>
<Insets bottom="7.0" />
</padding>
</JFXDatePicker>
<HBox alignment="CENTER_RIGHT" spacing="5.0" HBox.hgrow="ALWAYS">
<JFXToggleButton fx:id="styleBut" text="暗色" />
<JFXToggleButton fx:id="styleBut" text="暗色" />
<JFXButton fx:id="rolesBut" contentDisplay="GRAPHIC_ONLY" maxHeight="40.0" maxWidth="40.0" minHeight="40.0" minWidth="40.0" prefHeight="40.0" prefWidth="40.0" styleClass="tool-bar-button" text="user" textFill="WHITE" />
<VBox alignment="CENTER">
<Label fx:id="userLabel" maxWidth="1.7976931348623157E308" style="-fx-font-size: 16;-fx-font-weight: bold" text="李稳" VBox.vgrow="ALWAYS" />
<Label fx:id="roleLabel" maxWidth="1.7976931348623157E308" style="-fx-font-size: 10;" text="管理员" VBox.vgrow="ALWAYS" />
</VBox>
<JFXButton fx:id="userButton" contentDisplay="GRAPHIC_ONLY" maxHeight="20.0" maxWidth="20.0" minHeight="20.0" minWidth="20.0" prefHeight="20.0" prefWidth="20.0" styleClass="tool-bar-button" text="user" textFill="WHITE" />
<padding>
<Insets right="5.0" />
</padding>
<padding>
<Insets right="5.0" />
</padding>
</HBox>
</children>
</HBox>
</children>
</HBox>
<JFXDrawersStack fx:id="drawersStack" VBox.vgrow="ALWAYS" />
<JFXDrawer id="navigation-menu" fx:id="leftDrawer" defaultDrawerSize="240.0" overLayVisible="false" />

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="fxml.Power"
prefHeight="400.0" prefWidth="600.0">
</AnchorPane>