From 161e686de2f91a526add1652116a12c24a464865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Marynowski?= Date: Sat, 6 May 2017 19:16:10 +0200 Subject: [PATCH] feat(ChooseColumnsPane): bolden selected template --- src/pattypan/panes/ChooseColumnsPane.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pattypan/panes/ChooseColumnsPane.java b/src/pattypan/panes/ChooseColumnsPane.java index 5a104e7..c3e47c4 100644 --- a/src/pattypan/panes/ChooseColumnsPane.java +++ b/src/pattypan/panes/ChooseColumnsPane.java @@ -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(""); @@ -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); });