Skip to content

Commit

Permalink
feat(ChooseColumnsPane): bolden selected template
Browse files Browse the repository at this point in the history
  • Loading branch information
yarl committed May 6, 2017
1 parent 35630ad commit 161e686
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pattypan/panes/ChooseColumnsPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public class ChooseColumnsPane extends WikiPane {
VBox rightContainer = new VBox(4);
Hyperlink wikicodeLink;

Hyperlink prevLabel = null;

VBox wikicodePane = new VBox(10);
TextArea wikicodeText = new TextArea("");

Expand Down Expand Up @@ -108,6 +110,12 @@ private WikiPane setContent() {
Session.METHOD = "template";
Session.TEMPLATE = key;
showTemplateFieldsChoose(Session.TEMPLATE);
if (prevLabel != null) {
prevLabel.getStyleClass().remove("bold");
}
prevLabel = label;
prevLabel.getStyleClass().add("bold");

});
rightContainer.getChildren().add(label);
});
Expand Down

0 comments on commit 161e686

Please sign in to comment.