Chnaged things
This commit is contained in:
parent
51172a9d8b
commit
2115c220e4
@ -13,7 +13,7 @@ import javafx.stage.StageStyle;
|
|||||||
public class Main extends Application {
|
public class Main extends Application {
|
||||||
|
|
||||||
private double xOffset = 0, yOffset = 0; // Offsets for dragging
|
private double xOffset = 0, yOffset = 0; // Offsets for dragging
|
||||||
private Button exit, min; // Define buttons
|
private Button exit, min, Home_btn, Modpack_btn; // Define buttons
|
||||||
private Rectangle dragBar; // Draggable top bar
|
private Rectangle dragBar; // Draggable top bar
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -30,7 +30,8 @@ public class Main extends Application {
|
|||||||
exit = (Button) root.lookup("#exit");
|
exit = (Button) root.lookup("#exit");
|
||||||
min = (Button) root.lookup("#min");
|
min = (Button) root.lookup("#min");
|
||||||
dragBar = (Rectangle) root.lookup("#rectangle");
|
dragBar = (Rectangle) root.lookup("#rectangle");
|
||||||
|
Home_btn = (Button) root.lookup("#Home-btn");
|
||||||
|
Modpack_btn = (Button) root.lookup("#Modpacks-btn");
|
||||||
|
|
||||||
|
|
||||||
// Infrastructural navigation
|
// Infrastructural navigation
|
||||||
|
@ -16,5 +16,16 @@
|
|||||||
<Font name="Centaur" size="24.0" />
|
<Font name="Centaur" size="24.0" />
|
||||||
</font>
|
</font>
|
||||||
</Label>
|
</Label>
|
||||||
|
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#141414" height="451.0" layoutY="50.0" stroke="TRANSPARENT" strokeType="INSIDE" width="150.0" />
|
||||||
|
<Button id="Home-btn" layoutX="23.0" layoutY="66.0" mnemonicParsing="false" text="Home" textFill="WHITE" textOverrun="CLIP">
|
||||||
|
<font>
|
||||||
|
<Font name="Centaur" size="16.0" />
|
||||||
|
</font>
|
||||||
|
</Button>
|
||||||
|
<Button id="Modpacks-btn" layoutX="23.0" layoutY="114.0" mnemonicParsing="false" text="Modpack" textFill="WHITE" textOverrun="CLIP">
|
||||||
|
<font>
|
||||||
|
<Font name="Centaur" size="16.0" />
|
||||||
|
</font>
|
||||||
|
</Button>
|
||||||
</children>
|
</children>
|
||||||
</Pane>
|
</Pane>
|
||||||
|
@ -17,4 +17,10 @@
|
|||||||
#exit:hover{
|
#exit:hover{
|
||||||
-fx-border-radius: 30px;
|
-fx-border-radius: 30px;
|
||||||
-fx-background-color: #bf0000;
|
-fx-background-color: #bf0000;
|
||||||
|
}
|
||||||
|
#Home-btn, #Modpacks-btn {
|
||||||
|
-fx-background-color: rgba(0, 0, 0, 1)
|
||||||
|
}
|
||||||
|
#Home-btn:hover, #Modpacks-btn:hover {
|
||||||
|
-fx-background-color: rgba(100, 100, 100, 1)
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user