mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-134480 Make one-row IntelliJ tabs shorter if there is no space in tabs container
Iteration 1, tuning
This commit is contained in:
@@ -78,9 +78,9 @@ public class EditorWindow {
|
||||
GraphicsConfig config = GraphicsUtil.setupAAPainting(g);
|
||||
Font oldFont = g.getFont();
|
||||
try {
|
||||
g.setFont(new Font("Monospaced", Font.BOLD, 12));
|
||||
g.setFont(UIUtil.getLabelFont());
|
||||
g.setColor(JBColor.foreground());
|
||||
g.drawString("*", 0, 8);
|
||||
g.drawString("*", 0, 10);
|
||||
} finally {
|
||||
config.restore();
|
||||
g.setFont(oldFont);
|
||||
@@ -89,12 +89,12 @@ public class EditorWindow {
|
||||
|
||||
@Override
|
||||
public int getIconWidth() {
|
||||
return 8;
|
||||
return 9;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconHeight() {
|
||||
return 8;
|
||||
return 9;
|
||||
}
|
||||
} : AllIcons.General.Modified;
|
||||
private static final Icon GAP_ICON = new EmptyIcon(MODIFIED_ICON.getIconWidth(), MODIFIED_ICON.getIconHeight());
|
||||
|
||||
Reference in New Issue
Block a user