Skip to content

Commit 25cadcb

Browse files
committed
Allow customization
1 parent 9456f09 commit 25cadcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/processing/app/EditorToolbar.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ private void buildTouchBar() {
187187
touchBarButtons[i].setImage(touchBarImages[i][ROLLOVER]);
188188
touchBarButtons[i].setAction(event -> handleSelectionPressed(selection));
189189

190-
touchBar.addItem(new TouchBarItem(title[i], touchBarButtons[i]));
190+
TouchBarItem touchBarItem = new TouchBarItem(title[i], touchBarButtons[i], true);
191+
touchBarItem.setCustomizationLabel(title[i]);
192+
193+
touchBar.addItem(touchBarItem);
191194
}
192195
}
193196

0 commit comments

Comments
 (0)