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:
@ -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)
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user