mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make 'No matches' bold
This commit is contained in:
@@ -208,7 +208,8 @@ public class EditorSearchComponent extends EditorHeaderComponent implements Data
|
||||
}
|
||||
else {
|
||||
setNotFoundBackground();
|
||||
myMatchInfoLabel.setText("No matches");
|
||||
myMatchInfoLabel.setText("No matches ");
|
||||
boldMatchInfo();
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -898,7 +899,10 @@ public class EditorSearchComponent extends EditorHeaderComponent implements Data
|
||||
}
|
||||
|
||||
private void boldMatchInfo() {
|
||||
myMatchInfoLabel.setFont(myMatchInfoLabel.getFont().deriveFont(Font.BOLD));
|
||||
Font font = myMatchInfoLabel.getFont();
|
||||
if (!font.isBold()) {
|
||||
myMatchInfoLabel.setFont(font.deriveFont(Font.BOLD));
|
||||
}
|
||||
}
|
||||
|
||||
private void setRegularBackground() {
|
||||
|
||||
Reference in New Issue
Block a user