diff --git a/src/main/java/fr/ill/ics/n3d/gui/HierarchyCell.java b/src/main/java/fr/ill/ics/n3d/gui/HierarchyCell.java index 7a2e21960995ec87c2bb20c7de3fd39896755582..32d58dcf508cc35a5e57e9da77acb2ff48f8bbd3 100644 --- a/src/main/java/fr/ill/ics/n3d/gui/HierarchyCell.java +++ b/src/main/java/fr/ill/ics/n3d/gui/HierarchyCell.java @@ -212,7 +212,11 @@ public class HierarchyCell extends CheckBoxTreeCell<Component> { setText(getTextValue(component)); setContextMenu(rigthClickMenu); + + // It is mandatory to reset the style before. + setStyle(null); + // Set the bold style if the component is added or renamed. if (component.isAdded() || component.isRenamed()) { setStyle("-fx-font-weight: bold;"); } diff --git a/src/main/resources/Style.css b/src/main/resources/Style.css index a084d39ddc779748348457bc4403a1c4cc207f26..3ff3b86301005bb30ff3c8ddbaed0eb90412c709 100644 --- a/src/main/resources/Style.css +++ b/src/main/resources/Style.css @@ -11,3 +11,8 @@ -fx-text-fill: #333333; -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 ); } + +.tree-cell { + -fx-background-color: #0a0a0a ; + -fx-text-fill: #ffffff ; +} \ No newline at end of file