@@ -59,7 +59,7 @@ public ToolItemButtonRenderer(ToolBar bar, ToolItem item) {
59
59
this .item = item ;
60
60
}
61
61
62
- private LayoutType getContenType () {
62
+ private LayoutType getContentType () {
63
63
boolean hasImage = hasImage ();
64
64
boolean hasText = hasText ();
65
65
if (hasImage && hasText ) {
@@ -134,10 +134,10 @@ private Color getColor(ColorType type) {
134
134
}
135
135
136
136
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 );
138
138
int blue = Math .round (set .blue - (set .blue - TARGET_RGB .blue ) * type .ratio );
139
139
140
- return new Color (red , gree , blue );
140
+ return new Color (red , green , blue );
141
141
}
142
142
143
143
private void drawHighlight (GC gc , Rectangle bounds , Color borderColor , Color fillColor ) {
@@ -208,7 +208,7 @@ public Point getSize() {
208
208
}
209
209
210
210
private Blueprint getBlueprint (Point requestedSize ) {
211
- LayoutType type = getContenType ();
211
+ LayoutType type = getContentType ();
212
212
return switch (type ) {
213
213
case IMAGE_ONLY -> getImageOnlyBlueprint (requestedSize );
214
214
case TEXT_ONLY -> getTextOnlyBlueprint (requestedSize );
0 commit comments