界面修改(大小和缩放)

This commit is contained in:
CXT-maker 2025-08-16 21:08:02 +08:00
parent 63790e4c51
commit dcfc19aafa
5 changed files with 67 additions and 59 deletions

View File

@ -53,7 +53,7 @@ public class SceneManager {
* Switch main view.
*/
public static void switchMainView() {
SceneManager.loadView("/fxml/main-view.fxml", "淮阴区数字化档案检查验收系统 - 主界面", 1000, 1000);
SceneManager.loadView("/fxml/main-view.fxml", "淮阴区数字化档案检查验收系统 - 主界面", 1200, 900);
}
/**

View File

@ -47,7 +47,7 @@
-fx-font-size: 16px;
-fx-alignment: CENTER;
-fx-padding: 0 10 0 10;
-fx-max-width: 180px;
-fx-max-width: 100px;
-fx-translate-x: 6px;
-fx-text-overrun: ellipsis;
}
@ -67,9 +67,17 @@
}
/* Tab重叠调整 */
/* 文字少的标签页样式 */
.tab-pane > .tab-header-area > .headers-region > .tab {
-fx-background-insets: 0 -15 0 0;
-fx-min-width: 200px;
-fx-min-width: 80px;
-fx-pref-width: 180px;
-fx-max-height: 300px;
}
/* 文字多的标签页样式 */
.tab-pane > .tab-header-area > .headers-region > .tab.long-text-tab {
-fx-background-insets: 0 -15 0 0;
-fx-pref-width: 300px;
-fx-max-height: 300px;
}

View File

@ -19,10 +19,10 @@
<ColumnConstraints />
</columnConstraints>
<rowConstraints>
<RowConstraints maxHeight="173.0" minHeight="10.0" prefHeight="71.00000127156576" vgrow="SOMETIMES" />
<RowConstraints maxHeight="173.0" minHeight="10.0" prefHeight="77.66666539510092" vgrow="SOMETIMES" />
<RowConstraints maxHeight="173.0" minHeight="10.0" prefHeight="49.33331298828125" vgrow="SOMETIMES" />
<RowConstraints maxHeight="592.6666666666666" minHeight="10.0" prefHeight="581.3333536783855" vgrow="SOMETIMES" />
<RowConstraints fillHeight="false" maxHeight="173.0" prefHeight="71.00000127156576" vgrow="NEVER" />
<RowConstraints fillHeight="false" maxHeight="173.0" minHeight="-Infinity" prefHeight="77.66666539510092" vgrow="NEVER" />
<RowConstraints fillHeight="false" maxHeight="173.0" prefHeight="49.33331298828125" vgrow="NEVER" />
<RowConstraints maxHeight="592.6666666666666" prefHeight="581.3333536783855" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<TextArea fx:id="result1B" editable="false" GridPane.columnSpan="3" GridPane.rowIndex="3">

View File

@ -20,11 +20,11 @@
<ColumnConstraints hgrow="SOMETIMES" maxWidth="965.0" minWidth="10.0" prefWidth="867.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints maxHeight="224.0" minHeight="0.0" prefHeight="49.333343505859375" vgrow="SOMETIMES" />
<RowConstraints maxHeight="289.0" minHeight="10.0" prefHeight="68.66666920979819" vgrow="SOMETIMES" />
<RowConstraints maxHeight="373.0" minHeight="10.0" prefHeight="76.66666412353516" vgrow="SOMETIMES" />
<RowConstraints maxHeight="224.0" minHeight="0.0" prefHeight="31.333333333333343" vgrow="SOMETIMES" />
<RowConstraints maxHeight="573.3333180745443" minHeight="10.0" prefHeight="553.999989827474" vgrow="SOMETIMES" />
<RowConstraints maxHeight="224.0" prefHeight="49.333343505859375" vgrow="SOMETIMES" />
<RowConstraints maxHeight="289.0" prefHeight="68.66666920979819" vgrow="SOMETIMES" />
<RowConstraints maxHeight="373.0" minHeight="-Infinity" prefHeight="76.66666412353516" vgrow="SOMETIMES" />
<RowConstraints maxHeight="224.0" prefHeight="31.333333333333343" vgrow="SOMETIMES" />
<RowConstraints maxHeight="573.3333180745443" prefHeight="553.999989827474" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label text="载入目录:">
@ -43,7 +43,7 @@
<Insets left="10.0" />
</GridPane.margin>
</Label>
<Label text="反馈结果" GridPane.rowIndex="3">
<Label text="结果反馈:" GridPane.rowIndex="3">
<padding>
<Insets bottom="2.0" left="2.0" right="2.0" top="2.0" />
</padding>

View File

@ -18,10 +18,10 @@
<ColumnConstraints hgrow="SOMETIMES" maxWidth="500.0" minWidth="10.0" percentWidth="25.0" prefWidth="400.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints maxHeight="151.33334350585938" minHeight="0.0" percentHeight="7.0" prefHeight="55.00001017252603" vgrow="SOMETIMES" />
<RowConstraints maxHeight="407.0" minHeight="0.0" percentHeight="7.0" prefHeight="73.33333841959634" vgrow="SOMETIMES" />
<RowConstraints maxHeight="508.33333333333326" minHeight="0.0" percentHeight="7.0" prefHeight="73.99999491373697" vgrow="SOMETIMES" />
<RowConstraints maxHeight="591.6666666666667" minHeight="10.0" percentHeight="7.0" prefHeight="43.33332316080731" vgrow="SOMETIMES" />
<RowConstraints maxHeight="151.33334350585938" percentHeight="7.0" prefHeight="55.00001017252603" vgrow="SOMETIMES" />
<RowConstraints maxHeight="407.0" percentHeight="7.0" prefHeight="73.33333841959634" vgrow="SOMETIMES" />
<RowConstraints maxHeight="508.33333333333326" percentHeight="7.0" prefHeight="73.99999491373697" vgrow="SOMETIMES" />
<RowConstraints maxHeight="591.6666666666667" percentHeight="7.0" prefHeight="43.33332316080731" vgrow="SOMETIMES" />
<RowConstraints maxHeight="602.0000152587891" minHeight="10.0" prefHeight="534.6666615804037" vgrow="SOMETIMES" />
</rowConstraints>
<children>
@ -125,7 +125,7 @@
<Font size="14.0" />
</font>
</Button>
<TextArea editable="false" prefWidth="400.0" text="①对照《存储载体检查登记表》附件7检查并记录存储载体的类型/数量/内容/可读性情况。&#10;②将数字化成果(包括单页、多页文件及目录)打包生成&quot;数字化验收检测包.rar&quot;(含目录、哈希值列表、检测文件)&#10;③计算并验证压缩包的MD5或哈希值" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="4">
<TextArea editable="false" prefWidth="400.0" text="①对照《存储载体检查登记表》附件7检查并记录存储载体的类型/数量/内容/可读性情况。&#10;②将档案目录、哈希值列表文件和检测过程文件打包制成打包制成“数字化验收检测包.rar”压缩包&#10;③计算并验证压缩包的MD5或哈希值" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="4">
<GridPane.margin>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</GridPane.margin>