Skip to content

Commit fb29be9

Browse files
Thomas Singertmssngr
Thomas Singer
authored andcommitted
ToolItemButtonRenderer: fix typos
1 parent d54a2e0 commit fb29be9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/toolbar/ToolItemButtonRenderer.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public ToolItemButtonRenderer(ToolBar bar, ToolItem item) {
5959
this.item = item;
6060
}
6161

62-
private LayoutType getContenType() {
62+
private LayoutType getContentType() {
6363
boolean hasImage = hasImage();
6464
boolean hasText = hasText();
6565
if (hasImage && hasText) {
@@ -134,10 +134,10 @@ private Color getColor(ColorType type) {
134134
}
135135

136136
int red = Math.round(set.red - (set.red - TARGET_RGB.red) * type.ratio);
137-
int gree = Math.round(set.green - (set.green - TARGET_RGB.green) * type.ratio);
137+
int green = Math.round(set.green - (set.green - TARGET_RGB.green) * type.ratio);
138138
int blue = Math.round(set.blue - (set.blue - TARGET_RGB.blue) * type.ratio);
139139

140-
return new Color(red, gree, blue);
140+
return new Color(red, green, blue);
141141
}
142142

143143
private void drawHighlight(GC gc, Rectangle bounds, Color borderColor, Color fillColor) {
@@ -208,7 +208,7 @@ public Point getSize() {
208208
}
209209

210210
private Blueprint getBlueprint(Point requestedSize) {
211-
LayoutType type = getContenType();
211+
LayoutType type = getContentType();
212212
return switch (type) {
213213
case IMAGE_ONLY -> getImageOnlyBlueprint(requestedSize);
214214
case TEXT_ONLY -> getTextOnlyBlueprint(requestedSize);

0 commit comments

Comments
 (0)