Skip to content

Commit f332d79

Browse files
vogellaclaude
andcommitted
Remove 2px chamfer from simple CTabFolder tab corners to produce fully square tabs
Relates to #3150 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 83b9fee commit f332d79

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,21 @@ public class CTabFolderRenderer {
7070
static final int[] BOTTOM_LEFT_CORNER = new int[] {0,-6, 1,-5, 1,-4, 4,-1, 5,-1, 6,0};
7171
static final int[] BOTTOM_RIGHT_CORNER = new int[] {-6,0, -5,-1, -4,-1, -1,-4, -1,-5, 0,-6};
7272

73-
static final int[] SIMPLE_TOP_LEFT_CORNER = new int[] {0,2, 1,1, 2,0};
74-
static final int[] SIMPLE_TOP_RIGHT_CORNER = new int[] {-2,0, -1,1, 0,2};
75-
static final int[] SIMPLE_BOTTOM_LEFT_CORNER = new int[] {0,-2, 1,-1, 2,0};
76-
static final int[] SIMPLE_BOTTOM_RIGHT_CORNER = new int[] {-2,0, -1,-1, 0,-2};
73+
static final int[] SIMPLE_TOP_LEFT_CORNER = new int[] {0,0};
74+
static final int[] SIMPLE_TOP_RIGHT_CORNER = new int[] {0,0};
75+
static final int[] SIMPLE_BOTTOM_LEFT_CORNER = new int[] {0,0};
76+
static final int[] SIMPLE_BOTTOM_RIGHT_CORNER = new int[] {0,0};
7777
static final int[] SIMPLE_UNSELECTED_INNER_CORNER = new int[] {0,0};
7878

7979
static final int[] TOP_LEFT_CORNER_BORDERLESS = new int[] {0,6, 1,5, 1,4, 4,1, 5,1, 6,0};
8080
static final int[] TOP_RIGHT_CORNER_BORDERLESS = new int[] {-7,0, -6,1, -5,1, -2,4, -2,5, -1,6};
8181
static final int[] BOTTOM_LEFT_CORNER_BORDERLESS = new int[] {0,-6, 1,-6, 1,-5, 2,-4, 4,-2, 5,-1, 6,-1, 6,0};
8282
static final int[] BOTTOM_RIGHT_CORNER_BORDERLESS = new int[] {-7,0, -7,-1, -6,-1, -5,-2, -3,-4, -2,-5, -2,-6, -1,-6};
8383

84-
static final int[] SIMPLE_TOP_LEFT_CORNER_BORDERLESS = new int[] {0,2, 1,1, 2,0};
85-
static final int[] SIMPLE_TOP_RIGHT_CORNER_BORDERLESS= new int[] {-3,0, -2,1, -1,2};
86-
static final int[] SIMPLE_BOTTOM_LEFT_CORNER_BORDERLESS = new int[] {0,-3, 1,-2, 2,-1, 3,0};
87-
static final int[] SIMPLE_BOTTOM_RIGHT_CORNER_BORDERLESS = new int[] {-4,0, -3,-1, -2,-2, -1,-3};
84+
static final int[] SIMPLE_TOP_LEFT_CORNER_BORDERLESS = new int[] {0,0};
85+
static final int[] SIMPLE_TOP_RIGHT_CORNER_BORDERLESS= new int[] {0,0};
86+
static final int[] SIMPLE_BOTTOM_LEFT_CORNER_BORDERLESS = new int[] {0,0};
87+
static final int[] SIMPLE_BOTTOM_RIGHT_CORNER_BORDERLESS = new int[] {0,0};
8888

8989
static final RGB CLOSE_FILL = new RGB(240, 64, 64);
9090

0 commit comments

Comments
 (0)