Skip to content

Commit

Permalink
Show the "Tools" label only when expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
torakiki committed Nov 17, 2023
1 parent 08cd572 commit 3180ed8
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -64,6 +64,7 @@ public VerticalSidebar(HomeContentItem homeItem, LogButton logButton, NewsButton
addButton(homeItem, expandButton);
var toolsLabel = new Label(i18n().tr("Tools").toUpperCase());
toolsLabel.getStyleClass().add("sidebar-title");
toolsLabel.visibleProperty().bind(expandButton.selectedProperty());
buttons.getChildren().addAll(new Separator(Orientation.HORIZONTAL), toolsLabel);
tools.getChildren().forEach(b -> {
if (b instanceof SidebarButton button) {
Expand Down

0 comments on commit 3180ed8

Please sign in to comment.