Skip to content

Commit

Permalink
Update CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
isHarryh committed Feb 11, 2024
1 parent b8091f8 commit 12742d9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
22 changes: 9 additions & 13 deletions assets/UI/Main.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,14 @@
/* Drop shadow for Nodes */
.shadowed {
/* Note: dropshadow(type, color, radius, spread, x, y) */
-fx-effect: dropshadow(gaussian, derive(black, 80%), 10, 0.1, 0, 0.5);
}

/* Fluorescent strokes for Shapes */
.fluorescent {
-fx-stroke: #80DFFF;
-fx-stroke-type: outside;
-fx-stroke-width: 0.382px;
-fx-effect: dropshadow(gaussian, derive(black, 90%), 10, 0.1, 0, 0.5);
}

.root {
-text-normal: #242424;
-theme-color: #2A528C;
-theme-color-dim: #8492A5;
-theme-color-light: #82A6D8;
-theme-color-light: #86ABDE;
}

/*******************************************************************************
Expand Down Expand Up @@ -145,13 +138,16 @@ JFXSlider {
-fx-fill: -theme-color;
-fx-font-size: 24px;
-fx-font-weight: bold;
-fx-stroke: #80DFFF;
-fx-stroke-type: outside;
-fx-stroke-width: 0.5px;
}

.menu-btn {
/* Regular */
-fx-padding: 0 0 0 20px;
-fx-font-size: 18px;
-fx-font-weight: bold;
-fx-font-weight: normal;
-fx-fill: -theme-color;
-fx-text-fill: -theme-color;
-fx-text-alignment: left;
Expand All @@ -170,11 +166,11 @@ JFXSlider {
-fx-background-color: -theme-color;
}

#Start-btn {
#Launch-btn {
/* Regular */
-fx-padding: 0 0 0 20px;
-fx-font-size: 18px;
-fx-font-weight: bold;
-fx-font-weight: normal;
-fx-fill: white;
-fx-text-fill: white;
-fx-text-alignment: left;
Expand Down Expand Up @@ -351,7 +347,7 @@ JFXSlider {
-fx-text-fill: white;
-fx-background-radius: 0;
-fx-max-height: 14px;
-fx-effect: dropshadow(gaussian, derive(black, 80%), 2.5, 0.25, 0.5, 1);
-fx-effect: dropshadow(gaussian, derive(black, 90%), 2.5, 0.25, 0.5, 1);
}

.info-tag-badge {
Expand Down
21 changes: 11 additions & 10 deletions assets/UI/RootModule.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
At GPL-3.0 License
-->

<!-- ***** Root Node of ArkPets GUI Scene ***** -->
<?import com.jfoenix.controls.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.effect.DropShadow?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.effect.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.paint.Color?>
<?import javafx.scene.paint.*?>
<?import javafx.scene.shape.*?>
<?import javafx.scene.text.Text?>
<?import javafx.scene.text.*?>

<!-- ***** Root Node of ArkPets GUI Scene ***** -->
<StackPane fx:id="root" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity"
prefHeight="400.0" prefWidth="600.0" styleClass="root" stylesheets="@Main.css"
xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1"
Expand All @@ -27,8 +27,9 @@
<Pane id="Sidebar" fx:id="sidebar" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity"
minWidth="-Infinity" prefHeight="376.0" prefWidth="140.0" styleClass="shadowed"
AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0" StackPane.alignment="TOP_LEFT">
<Text id="Title" layoutX="12.0" layoutY="55.0" styleClass="fluorescent" text="ArkPets"
textAlignment="CENTER" wrappingWidth="117.0"/>
<Text id="Title" layoutX="12.0" layoutY="55.0" text="ArkPets" textAlignment="CENTER"
wrappingWidth="117.0">
</Text>
<Line endX="128.0" layoutY="66.0" startX="12.0" stroke="#0000009e"/>
<GridPane alignment="CENTER" layoutY="88.0" prefHeight="180.0" prefWidth="140.0" styleClass="menu">
<columnConstraints>
Expand Down Expand Up @@ -79,7 +80,7 @@
</graphic>
</JFXButton>
</GridPane>
<JFXButton id="Start-btn" fx:id="launchBtn" layoutX="25.0" layoutY="310.0" mnemonicParsing="false"
<JFXButton id="Launch-btn" fx:id="launchBtn" layoutX="25.0" layoutY="310.0" mnemonicParsing="false"
prefHeight="36.0" prefWidth="90.0" text="启动" textAlignment="CENTER">
<graphic>
<AnchorPane minHeight="-Infinity" minWidth="-Infinity" prefHeight="24.0" prefWidth="2.0"
Expand Down Expand Up @@ -140,7 +141,7 @@
<HBox.margin>
<Insets bottom="3.0" left="3.0" right="3.0" top="3.0"/>
</HBox.margin>
<Image url="@/icons/icon.png" requestedHeight="512.0" requestedWidth="512.0"/>
<Image requestedHeight="512.0" requestedWidth="512.0" url="@/icons/icon.png"/>
</ImageView>
<Text fx:id="titleText" strokeType="OUTSIDE" strokeWidth="0.0" text="ArkPets Launcher">
<HBox.margin>
Expand Down

0 comments on commit 12742d9

Please sign in to comment.