added css
parent
72d96c4d78
commit
5386acfd1b
|
@ -98,9 +98,9 @@ public class MainFX extends Application {
|
|||
*/
|
||||
private Scene createScene(Pane mainPane) {
|
||||
Scene scene = new Scene(mainPane);
|
||||
// scene.getStylesheets().setAll(
|
||||
// getClass().getResource("/views/vista.css").toExternalForm()
|
||||
// );
|
||||
scene.getStylesheets().setAll(
|
||||
getClass().getResource("/views/vista.css").toExternalForm()
|
||||
);
|
||||
return scene;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,19 +4,15 @@
|
|||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.layout.StackPane?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
<?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">
|
||||
<children>
|
||||
<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>
|
||||
<Insets left="100.0" />
|
||||
</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>
|
||||
<Insets bottom="70.0" />
|
||||
</VBox.margin></StackPane>
|
||||
|
|
|
@ -5,24 +5,22 @@
|
|||
*/
|
||||
|
||||
#headerLabel {
|
||||
-fx-background-color: steelblue;
|
||||
-fx-text-fill: white;
|
||||
-fx-font-family: arial;
|
||||
-fx-text-fill: #aaaaaa;
|
||||
-fx-font-size: 18px;
|
||||
-fx-font-weight: bold;
|
||||
-fx-padding: 5px;
|
||||
}
|
||||
|
||||
#vistaHolder {
|
||||
-fx-background-color: lightgrey;
|
||||
}
|
||||
|
||||
#vista1 {
|
||||
-fx-background-color: aliceblue;
|
||||
}
|
||||
|
||||
#vista2 {
|
||||
-fx-background-color: coral;
|
||||
-fx-background-color: white;
|
||||
}
|
||||
|
||||
.button {
|
||||
-fx-base: lightblue;
|
||||
-fx-font-size: 20px;
|
||||
}
|
||||
-fx-background-color: #aaaaaa;
|
||||
-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