diff --git a/BigBrother-Gui/src/bigbrother/gui/BigBrotherGui.java b/BigBrother-Gui/src/bigbrother/gui/BigBrotherGui.java index 2603b5e..1c4b95e 100644 --- a/BigBrother-Gui/src/bigbrother/gui/BigBrotherGui.java +++ b/BigBrother-Gui/src/bigbrother/gui/BigBrotherGui.java @@ -24,6 +24,7 @@ public void start(Stage stage) throws Exception { Scene scene = new Scene(root); + scene.getStylesheets().add(BigBrotherGui.class.getResource("style.css").toURI().toString()); stage.setScene(scene); stage.setTitle("BigBrother"); stage.show(); diff --git a/BigBrother-Gui/src/bigbrother/gui/style.css b/BigBrother-Gui/src/bigbrother/gui/style.css new file mode 100644 index 0000000..32084fa --- /dev/null +++ b/BigBrother-Gui/src/bigbrother/gui/style.css @@ -0,0 +1,11 @@ +.tree-view:focused { + -fx-background-color: transparent, -fx-box-border, -fx-control-inner-background; +} + +.list-view:focused { + -fx-background-color: transparent, -fx-box-border, -fx-control-inner-background; +} + +.scroll-pane:focused { + -fx-background-color: transparent, -fx-box-border, -fx-background; +}