get rid of clear search button to make more space for search field, as it is not very big on Mac LnF

This commit is contained in:
Zlatin Balevsky
2020-09-14 15:35:49 +01:00
parent 31e0962b73
commit 9a4e6b868b
2 changed files with 1 additions and 9 deletions

View File

@ -61,13 +61,6 @@ class MainFrameController {
private volatile Core core
@ControllerAction
void clearSearch() {
def searchField = builder.getVariable("search-field")
searchField.setSelectedItem(null)
searchField.requestFocus()
}
@ControllerAction
void search(ActionEvent evt) {
if (evt?.getActionCommand() == null)

View File

@ -173,7 +173,7 @@ class MainFrameView {
borderLayout()
panel(constraints: BorderLayout.CENTER) {
borderLayout()
label(" Enter search here:", constraints: BorderLayout.WEST) // TODO: fix this
label(" Enter search ", constraints: BorderLayout.WEST) // TODO: fix this
def searchFieldModel = new SearchFieldModel(settings, new File(application.context.get("muwire-home")))
JComboBox myComboBox = new SearchField(searchFieldModel)
@ -183,7 +183,6 @@ class MainFrameView {
}
panel( constraints: BorderLayout.EAST) {
button(text: "Search", searchAction)
button(text : "", icon : imageIcon("/close_tab.png"), clearSearchAction)
}
}
}