Skip to content

Commit 066ac07

Browse files
mvm-sapvogella
authored andcommitted
Reducing the thickness of the highlight in selected tabs
1 parent e30a52d commit 066ac07

File tree

1 file changed

+4
-2
lines changed
  • bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt

1 file changed

+4
-2
lines changed

bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/CTabRendering.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,10 +621,12 @@ void drawSelectedTab(int itemIndex, GC gc, Rectangle bounds) {
621621
if (onBottom) {
622622
highlightOnTop = !highlightOnTop;
623623
}
624-
int verticalOffset = highlightOnTop ? 0 : bounds.height - 2;
624+
int highlightHeight = 2;
625+
int verticalOffset = highlightOnTop ? 0 : bounds.height - (highlightHeight - 1);
625626
int horizontalOffset = itemIndex == 0 || cornerSize == SQUARE_CORNER ? 0 : 1;
626627
int widthAdjustment = cornerSize == SQUARE_CORNER ? 0 : 1;
627-
gc.fillRectangle(bounds.x + horizontalOffset, bounds.y + verticalOffset, bounds.width - widthAdjustment, 3);
628+
gc.fillRectangle(bounds.x + horizontalOffset, bounds.y + verticalOffset, bounds.width - widthAdjustment,
629+
highlightHeight);
628630
}
629631

630632
if (backgroundPattern != null) {

0 commit comments

Comments
 (0)