IJPL-180229 Editor gutter: indent between annotations and line numbers is 5px instead of 4px
(cherry picked from commit f410b366a072c5b3078b5d28255ed454ed5763de) IJ-CR-156896 GitOrigin-RevId: 924ad0971d704fc253c9ba5b2d2e5ffce2fe0136
|
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 470 B |
|
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 351 B |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 353 B |
|
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 210 B |
|
Before Width: | Height: | Size: 457 B After Width: | Height: | Size: 456 B |
|
Before Width: | Height: | Size: 409 B After Width: | Height: | Size: 408 B |
|
Before Width: | Height: | Size: 417 B After Width: | Height: | Size: 416 B |
|
Before Width: | Height: | Size: 409 B After Width: | Height: | Size: 408 B |
|
Before Width: | Height: | Size: 417 B After Width: | Height: | Size: 416 B |
|
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 283 B |
|
Before Width: | Height: | Size: 308 B After Width: | Height: | Size: 308 B |
|
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 391 B |
|
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 417 B After Width: | Height: | Size: 417 B |
|
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 271 B |
|
Before Width: | Height: | Size: 569 B After Width: | Height: | Size: 568 B |
|
Before Width: | Height: | Size: 569 B After Width: | Height: | Size: 568 B |
|
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 563 B |
|
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 563 B |
|
Before Width: | Height: | Size: 695 B After Width: | Height: | Size: 694 B |
|
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 190 B |
@@ -200,7 +200,7 @@ public final class EditorGutterLayout {
|
||||
);
|
||||
|
||||
List<GutterArea> lineNumbersAreas = List.of(
|
||||
areaGap()
|
||||
areaGap(gapBeforeLineMarkersWidth())
|
||||
.as(EditorMouseEventArea.LINE_NUMBERS_AREA)
|
||||
.showIf(this::isLineNumbersShown),
|
||||
area(LINE_NUMBERS_AREA, () -> myEditorGutter.myLineNumberAreaWidth)
|
||||
@@ -269,6 +269,10 @@ public final class EditorGutterLayout {
|
||||
return layout;
|
||||
}
|
||||
|
||||
private static int gapBeforeLineMarkersWidth() {
|
||||
return JBUI.CurrentTheme.Editor.Gutter.gapAfterVcsMarkersWidth();
|
||||
}
|
||||
|
||||
private static @NotNull GutterArea areaGap() {
|
||||
return area(GAP_BETWEEN_AREAS, EditorGutterComponentImpl::getGapBetweenAreas);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 248 B After Width: | Height: | Size: 258 B |
|
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 168 B |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 351 B |
|
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 333 B |
|
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 333 B |
|
Before Width: | Height: | Size: 151 B After Width: | Height: | Size: 158 B |
|
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 471 B |