mirror of
https://github.com/octopusYan/alist-gui.git
synced 2025-12-12 11:01:57 +08:00
feat: 主界面调整、日志打印
This commit is contained in:
@ -8,42 +8,52 @@
|
||||
|
||||
#statusLabel {
|
||||
-fx-padding: 2 5 2 5;
|
||||
-fx-text-fill: white;
|
||||
-fx-font-size: 15;
|
||||
-fx-background-color: -color-success-3;
|
||||
-fx-background-radius: 10;
|
||||
-fx-text-alignment: CENTER;
|
||||
-fx-border-radius: 10;
|
||||
-color-button-bg: -color-success-3;
|
||||
-color-button-border: -color-button-bg;
|
||||
-color-button-border-hover: -color-button-bg;
|
||||
-color-button-bg-hover: -color-button-bg;
|
||||
}
|
||||
|
||||
.control-menu {
|
||||
.control-menu, #startButton, #passwordButton, #restartButton, #moreButton {
|
||||
-fx-font-size: 15;
|
||||
-fx-background-radius: 15;
|
||||
-fx-padding: 10 40 10 40;
|
||||
-fx-border-radius: 15;
|
||||
-fx-border-width: 2;
|
||||
-fx-opacity: 1;
|
||||
|
||||
&:hover {
|
||||
-fx-opacity: 0.9;
|
||||
}
|
||||
}
|
||||
|
||||
#startButton {
|
||||
-fx-background-color: -color-danger-emphasis;
|
||||
-fx-border-color: -color-danger-emphasis;
|
||||
-fx-text-fill: white;
|
||||
-color-button-bg: -color-danger-4;
|
||||
-color-button-bg-hover: -color-button-bg;
|
||||
-color-button-bg-focused: -color-button-bg;
|
||||
-color-button-bg-pressed: -color-button-bg;
|
||||
-color-button-border: -color-button-bg;
|
||||
-color-button-border-hover: -color-button-bg;
|
||||
-fx-border-color: -color-button-bg;
|
||||
}
|
||||
|
||||
#passwordButton {
|
||||
-fx-background-color: -color-success-3;
|
||||
-fx-border-color: -color-success-3;
|
||||
-color-button-bg: -color-success-3;
|
||||
-color-button-bg-hover: -color-button-bg;
|
||||
-color-button-bg-focused: -color-button-bg;
|
||||
-color-button-bg-pressed: -color-button-bg;
|
||||
-color-button-border: -color-button-bg;
|
||||
-color-button-border-hover: -color-button-bg;
|
||||
-fx-border-color: -color-button-bg;
|
||||
}
|
||||
|
||||
#restartButton {
|
||||
-fx-background-color: linear-gradient(to bottom right, -color-accent-3, -color-chart-6);
|
||||
-fx-border-color: linear-gradient(to bottom right, -color-accent-3, -color-chart-6);
|
||||
-fx-text-fill: white;
|
||||
-color-button-bg: linear-gradient(to bottom right, -color-accent-3, -color-chart-6);
|
||||
-color-button-bg-hover: -color-button-bg;
|
||||
-color-button-bg-focused: -color-button-bg;
|
||||
-color-button-bg-pressed: -color-button-bg;
|
||||
-color-button-border: -color-button-bg;
|
||||
-color-button-border-hover: -color-button-bg;
|
||||
-fx-border-color: -color-button-bg;
|
||||
}
|
||||
|
||||
#moreButton {
|
||||
@ -52,17 +62,11 @@
|
||||
-fx-border-color: -color-chart-6;
|
||||
}
|
||||
|
||||
#logArea {
|
||||
.logArea {
|
||||
-fx-font-family: "Lucida Console";
|
||||
-fx-font-size: 20;
|
||||
-fx-font-size: 15;
|
||||
-fx-background-radius: 15;
|
||||
-fx-border-radius: 15;
|
||||
-fx-background-insets: 0;
|
||||
|
||||
.content {
|
||||
-fx-padding: 0 15 0 15;
|
||||
-fx-background-radius: 15;
|
||||
-fx-border-radius: 15;
|
||||
}
|
||||
|
||||
-fx-padding: 5 15 5 15;
|
||||
-fx-background-color: -color-neutral-muted;
|
||||
}
|
||||
@ -3,19 +3,19 @@
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
<VBox fx:id="mainView" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml"
|
||||
stylesheets="@../css/main-view.css" prefWidth="720" prefHeight="700"
|
||||
<VBox fx:id="mainView" prefHeight="700" prefWidth="720" stylesheets="@../css/main-view.css"
|
||||
xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1"
|
||||
fx:controller="cn.octopusyan.alistgui.controller.MainController">
|
||||
<padding>
|
||||
<Insets left="10.0" right="10.0" top="10.0"/>
|
||||
</padding>
|
||||
<HBox alignment="TOP_CENTER" prefWidth="Infinity">
|
||||
<Label fx:id="homeLabel" alignment="CENTER" text="AList GUI"/>
|
||||
<Label fx:id="statusLabel" alignment="TOP_CENTER" text="%main.status.label-running">
|
||||
<Button fx:id="statusLabel" styleClass="success" alignment="TOP_CENTER" text="%main.status.label-running">
|
||||
<HBox.margin>
|
||||
<Insets left="-10.0" top="-5"/>
|
||||
</HBox.margin>
|
||||
</Label>
|
||||
</Button>
|
||||
</HBox>
|
||||
<HBox alignment="TOP_CENTER" prefWidth="Infinity" spacing="25.0">
|
||||
<padding>
|
||||
@ -24,16 +24,18 @@
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" top="10.0"/>
|
||||
</VBox.margin>
|
||||
<Button fx:id="startButton" styleClass="control-menu" text="%main.control.start"/>
|
||||
<Button fx:id="passwordButton" styleClass="control-menu" text="%main.control.password"/>
|
||||
<Button fx:id="restartButton" styleClass="control-menu" text="%main.control.restart"/>
|
||||
<Button fx:id="startButton" styleClass="control-menu, danger" text="%main.control.start"/>
|
||||
<Button fx:id="passwordButton" styleClass="control-menu, success" text="%main.control.password"/>
|
||||
<Button fx:id="restartButton" styleClass="control-menu, success" text="%main.control.restart"/>
|
||||
<Button fx:id="moreButton" styleClass="control-menu" text="%main.control.more"/>
|
||||
</HBox>
|
||||
<TextArea fx:id="logArea" editable="false" prefWidth="Infinity"
|
||||
text="123d1a32s1d3as21d3a2s1d3a2s1d3a2s1d3a2s1d3a2s1d3a2s1d32aasda3s21da32s1d32a1sd"
|
||||
wrapText="true" VBox.vgrow="ALWAYS">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" top="10.0"/>
|
||||
</VBox.margin>
|
||||
</TextArea>
|
||||
<ScrollPane fx:id="logAreaSp" fitToWidth="true" prefHeight="499.0" prefWidth="Infinity"
|
||||
styleClass="logArea" VBox.vgrow="ALWAYS">
|
||||
|
||||
<VBox fx:id="logArea" spacing="10">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" top="10.0"/>
|
||||
</VBox.margin>
|
||||
</VBox>
|
||||
</ScrollPane>
|
||||
</VBox>
|
||||
|
||||
Reference in New Issue
Block a user