diff --git a/README.md b/README.md deleted file mode 100644 index 8a4459c..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# partner_project - diff --git a/src/fxml/css/1.jpg b/src/fxml/css/1.jpg new file mode 100644 index 0000000..2672684 Binary files /dev/null and b/src/fxml/css/1.jpg differ diff --git a/src/fxml/css/2.gif b/src/fxml/css/2.gif new file mode 100644 index 0000000..6383347 Binary files /dev/null and b/src/fxml/css/2.gif differ diff --git a/src/fxml/css/3.png b/src/fxml/css/3.png new file mode 100644 index 0000000..22c53bf Binary files /dev/null and b/src/fxml/css/3.png differ diff --git a/src/fxml/css/main.css b/src/fxml/css/main.css new file mode 100644 index 0000000..31935f0 --- /dev/null +++ b/src/fxml/css/main.css @@ -0,0 +1,170 @@ +/* 根容器样式 */ +.root { + -fx-font-family: "Microsoft YaHei", "Segoe UI", sans-serif; + -fx-background-image: url("1.jpg"); + -fx-background-repeat: no-repeat; + -fx-background-size: cover; +} + +/* 通用按钮样式 */ +.button { + -fx-background-color: #4CAF50; + -fx-text-fill: white; + -fx-font-size: 14px; + -fx-font-weight: bold; + -fx-padding: 10px 20px; + -fx-background-radius: 25px; + -fx-border-radius: 25px; + -fx-cursor: hand; + -fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.3), 5, 0, 0, 2); + -fx-transition: all 0.3s; +} + +.button:hover { + -fx-background-color: #45a049; + -fx-scale-x: 1.05; + -fx-scale-y: 1.05; + -fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.5), 8, 0, 0, 3); +} + +.button:pressed { + -fx-background-color: #3d8b40; + -fx-scale-x: 0.95; + -fx-scale-y: 0.95; +} + +/* 次要按钮样式 */ +.button-secondary { + -fx-background-color: #2196F3; +} + +.button-secondary:hover { + -fx-background-color: #1976D2; +} + +.button-secondary:pressed { + -fx-background-color: #0D47A1; +} + +/* 警告按钮样式 */ +.button-warning { + -fx-background-color: #ff9800; +} + +.button-warning:hover { + -fx-background-color: #f57c00; +} + +/* 危险按钮样式 */ +.button-danger { + -fx-background-color: #f44336; +} + +.button-danger:hover { + -fx-background-color: #d32f2f; +} + +/* 标签样式 */ +.label { + -fx-text-fill: #333333; + -fx-font-size: 14px; +} + +.label-title { + -fx-font-size: 24px; + -fx-font-weight: bold; + -fx-text-fill: #2c3e50; + -fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.1), 3, 0, 1, 1); +} + +.label-subtitle { + -fx-font-size: 18px; + -fx-font-weight: bold; + -fx-text-fill: #34495e; +} + +.label-info { + -fx-text-fill: #7f8c8d; + -fx-font-size: 12px; +} + +/* 输入框样式 */ +.text-field, .password-field { + -fx-background-color: white; + -fx-border-color: #bdc3c7; + -fx-border-radius: 15px; + -fx-background-radius: 15px; + -fx-padding: 10px 15px; + -fx-font-size: 14px; + -fx-effect: innershadow(three-pass-box, rgba(0,0,0,0.1), 5, 0, 0, 2); +} + +.text-field:focused, .password-field:focused { + -fx-border-color: #3498db; + -fx-effect: dropshadow(three-pass-box, rgba(52, 152, 219, 0.3), 10, 0, 0, 3); +} + +/* 下拉框样式 */ +.combo-box { + -fx-background-color: white; + -fx-border-color: #bdc3c7; + -fx-border-radius: 15px; + -fx-background-radius: 15px; + -fx-padding: 5px 15px; +} + +.combo-box .arrow-button { + -fx-background-color: transparent; +} + +.combo-box .list-cell { + -fx-background-color: white; + -fx-text-fill: #333333; +} + +.combo-box .list-view { + -fx-background-color: white; + -fx-border-color: #bdc3c7; + -fx-border-radius: 10px; + -fx-background-radius: 10px; +} + +/* 单选按钮样式 */ +.radio-button { + -fx-text-fill: #333333; + -fx-font-size: 14px; + -fx-padding: 5px; +} + +.radio-button .radio { + -fx-background-color: white; + -fx-border-color: #bdc3c7; + -fx-border-radius: 50%; + -fx-background-radius: 50%; +} + +.radio-button:selected .radio { + -fx-background-color: #3498db; + -fx-border-color: #2980b9; +} + +.radio-button .dot { + -fx-background-color: white; + -fx-background-radius: 50%; +} + +/* 容器样式 */ +.vbox { + -fx-background-color: rgba(255, 255, 255, 0.5); + -fx-background-radius: 16px; +} + + +.container { + -fx-background-color: white; + -fx-background-radius: 20px; + -fx-border-radius: 20px; + -fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.1), 15, 0, 0, 5); + -fx-padding: 30px; +} + diff --git a/src/fxml/difficulty-selection.fxml b/src/fxml/difficulty-selection.fxml new file mode 100644 index 0000000..2ad8916 --- /dev/null +++ b/src/fxml/difficulty-selection.fxml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + +