Skip to content

Commit 9abc505

Browse files
committed
Fix alignment of onboarding area command labels
The command labels in a perspective's onboarding area are placed in a right-aligned layout but the labels themselves are not right-aligned, such that they are not perfectly right aligned as they can be up to 1 point off (which can sum up to multiple pixels with monitor zoom values). This change adapts the labels to be right aligned such that they properly fit.
1 parent 200996c commit 9abc505

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ private void initializeOnboardingInformationInEditorStack(CTabFolder editorStack
313313

314314
String[] commandAndText = commands[i].split("\\$\\$\\$"); //$NON-NLS-1$
315315

316-
WidgetFactory.label(SWT.NONE).text(commandAndText[0]).foreground(color)
316+
WidgetFactory.label(SWT.NONE).text(commandAndText[0]).foreground(color).align(SWT.RIGHT)
317317
.supplyLayoutData(labelGridDataFactory::create).create(onboardingComposite);
318318
WidgetFactory.label(SWT.NONE).text(commandAndText[1]).foreground(color)
319319
.supplyLayoutData(commandGridDataFactory::create).create(onboardingComposite);

0 commit comments

Comments
 (0)