added css
parent
72d96c4d78
commit
5386acfd1b
|
@ -98,9 +98,9 @@ public class MainFX extends Application {
|
||||||
*/
|
*/
|
||||||
private Scene createScene(Pane mainPane) {
|
private Scene createScene(Pane mainPane) {
|
||||||
Scene scene = new Scene(mainPane);
|
Scene scene = new Scene(mainPane);
|
||||||
// scene.getStylesheets().setAll(
|
scene.getStylesheets().setAll(
|
||||||
// getClass().getResource("/views/vista.css").toExternalForm()
|
getClass().getResource("/views/vista.css").toExternalForm()
|
||||||
// );
|
);
|
||||||
return scene;
|
return scene;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,19 +4,15 @@
|
||||||
<?import javafx.scene.control.Label?>
|
<?import javafx.scene.control.Label?>
|
||||||
<?import javafx.scene.layout.StackPane?>
|
<?import javafx.scene.layout.StackPane?>
|
||||||
<?import javafx.scene.layout.VBox?>
|
<?import javafx.scene.layout.VBox?>
|
||||||
<?import javafx.scene.text.Font?>
|
|
||||||
<?scenebuilder-stylesheet vista.css?>
|
<?scenebuilder-stylesheet vista.css?>
|
||||||
|
|
||||||
<VBox prefHeight="709.0" prefWidth="1259.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="meerkat.voting.gui.ui.controllersFX.MainController">
|
<VBox prefHeight="709.0" prefWidth="1259.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="meerkat.voting.gui.ui.controllersFX.MainController">
|
||||||
<children>
|
<children>
|
||||||
<Label fx:id="headerLabel" maxWidth="1.7976931348623157E308" prefHeight="70.0" prefWidth="1162.0" text="Header of Election" textFill="#939090" VBox.vgrow="NEVER">
|
<Label fx:id="headerLabel" maxWidth="1.7976931348623157E308" prefHeight="70.0" prefWidth="1162.0" text="Header of Election" textFill="#939090" VBox.vgrow="NEVER">
|
||||||
<font>
|
|
||||||
<Font size="25.0" />
|
|
||||||
</font>
|
|
||||||
<VBox.margin>
|
<VBox.margin>
|
||||||
<Insets left="100.0" />
|
<Insets left="100.0" />
|
||||||
</VBox.margin></Label>
|
</VBox.margin></Label>
|
||||||
<StackPane fx:id="vistaHolder" prefHeight="553.0" prefWidth="1259.0" style="-fx-background-color: #eeeeee;" VBox.vgrow="ALWAYS">
|
<StackPane fx:id="vistaHolder" prefHeight="553.0" prefWidth="1259.0" VBox.vgrow="ALWAYS">
|
||||||
<VBox.margin>
|
<VBox.margin>
|
||||||
<Insets bottom="70.0" />
|
<Insets bottom="70.0" />
|
||||||
</VBox.margin></StackPane>
|
</VBox.margin></StackPane>
|
||||||
|
|
|
@ -5,24 +5,22 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#headerLabel {
|
#headerLabel {
|
||||||
-fx-background-color: steelblue;
|
-fx-font-family: arial;
|
||||||
-fx-text-fill: white;
|
-fx-text-fill: #aaaaaa;
|
||||||
|
-fx-font-size: 18px;
|
||||||
|
-fx-font-weight: bold;
|
||||||
-fx-padding: 5px;
|
-fx-padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#vistaHolder {
|
#vistaHolder {
|
||||||
-fx-background-color: lightgrey;
|
-fx-background-color: white;
|
||||||
}
|
|
||||||
|
|
||||||
#vista1 {
|
|
||||||
-fx-background-color: aliceblue;
|
|
||||||
}
|
|
||||||
|
|
||||||
#vista2 {
|
|
||||||
-fx-background-color: coral;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
-fx-base: lightblue;
|
-fx-background-color: #aaaaaa;
|
||||||
-fx-font-size: 20px;
|
-fx-background-insets: 0,1,2,3;
|
||||||
}
|
-fx-background-radius: 3,2,2,2;
|
||||||
|
-fx-padding: 12 30 12 30;
|
||||||
|
-fx-text-fill: black;
|
||||||
|
-fx-font-size: 18px;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue