Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
Add css to remove focus styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Rauks committed Nov 29, 2013
1 parent ccba802 commit 951b602
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions BigBrother-Gui/src/bigbrother/gui/BigBrotherGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
11 changes: 11 additions & 0 deletions BigBrother-Gui/src/bigbrother/gui/style.css
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 951b602

Please sign in to comment.