Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/main/java/org/jabref/gui/groups/GroupDialogView.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,24 +231,30 @@ private void openIconPicker() {
ikonGridView.setPrefHeight(400);
ikonGridView.setHorizontalCellSpacing(4);
ikonGridView.setVerticalCellSpacing(4);
ikonGridView.setItems(filteredList);

VBox vBox = new VBox(10, searchBox, ikonGridView);
vBox.setPadding(new Insets(10));

// Necessary because of a bug in controlsfx GridView
// https://github.com/controlsfx/controlsfx/issues/1400
Platform.runLater(() -> {
ikonGridView.setItems(filteredList);
});

PopOver popOver = new PopOver(vBox);
popOver.setDetachable(false);
popOver.setArrowSize(0);
popOver.setCornerRadius(0);
popOver.setTitle("Icon picker");
popOver.show(iconPickerButton);

}

public class IkonliCell extends GridCell<Ikon> {
@Override
protected void updateItem(Ikon ikon, boolean empty) {
super.updateItem(ikon, empty);
if (empty || ikon == null) {
if (empty || (ikon == null)) {
setText(null);
setGraphic(null);
} else {
Expand Down