mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Too small distance between TW header Find, Messages and tab (#IDEA-190646)
(cherry picked from commit ac49680) https://upsource.jetbrains.com/IDEA/review/IDEA-CR-32397
This commit is contained in:
@@ -57,23 +57,12 @@ abstract class ContentLayout {
|
||||
|
||||
protected void updateIdLabel(BaseLabel label) {
|
||||
String title = myUi.myWindow.getStripeTitle();
|
||||
Border border = JBUI.Borders.empty(0, 2, 0, 8);
|
||||
if (myUi.myManager.getContentCount() != 1) {
|
||||
if (myUi.myManager.getContentCount() != 1 || myUi.myManager.canCloseContents()) {
|
||||
title += ":";
|
||||
}
|
||||
else {
|
||||
final String text = myUi.myManager.getContent(0).getDisplayName();
|
||||
if (text != null && text.trim().length() > 0) {
|
||||
if (myUi.myManager.canCloseContents()) {
|
||||
title += ":";
|
||||
}
|
||||
title += " ";
|
||||
border = JBUI.Borders.emptyLeft(2);
|
||||
}
|
||||
}
|
||||
label.setText(title);
|
||||
label.setBorder(border);
|
||||
|
||||
label.setBorder(JBUI.Borders.empty(0, 2, 0, 7));
|
||||
label.setVisible(shouldShowId());
|
||||
}
|
||||
|
||||
|
||||
+1
-10
@@ -205,19 +205,10 @@ class ContentTabLabel extends BaseLabel {
|
||||
}
|
||||
|
||||
public void update() {
|
||||
setHorizontalAlignment(SwingConstants.LEFT);
|
||||
if (!myLayout.isToDrawTabs()) {
|
||||
setHorizontalAlignment(SwingConstants.LEFT);
|
||||
setBorder(null);
|
||||
}
|
||||
else {
|
||||
if (additionalIcons.stream().anyMatch(icon -> icon.getAvailable())) {
|
||||
setHorizontalAlignment(SwingConstants.LEFT);
|
||||
}
|
||||
else {
|
||||
setHorizontalAlignment(SwingConstants.CENTER);
|
||||
setBorder(JBUI.Borders.empty(0, 12));
|
||||
}
|
||||
}
|
||||
|
||||
updateTextAndIcon(myContent, isSelected());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user