Skip to content

Commit ef13aa3

Browse files
Design Tweaks
* Make tooltip text gray50 * Add black shadow to tooltip text * Fix tooltip height calculations * Make "Install Now" text & icon shadow black
1 parent bf78fae commit ef13aa3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/main/java/gg/essential/partnermod/AdButton.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private void drawTooltip(Draw draw, Minecraft mc, TooltipPosition position) {
143143
}
144144

145145
int width = maxWidth + 8;
146-
int height = 9 * lines.length + 6;
146+
int height = 10 * lines.length + 4;
147147

148148
int buttonX = UButton.getX(this);
149149
int buttonY = UButton.getY(this);
@@ -209,7 +209,7 @@ private void drawTooltip(Draw draw, Minecraft mc, TooltipPosition position) {
209209
int textY = y;
210210
for (String line : lines) {
211211
int lineWidth = mc.fontRenderer.getStringWidth(line);
212-
draw.string(line, centerX - lineWidth / 2, textY + 3, -1);
212+
draw.string(line, centerX - lineWidth / 2, textY + 3, 0xFFE5E5E5, 0xFF000000);
213213
textY += 10;
214214
}
215215

src/main/java/gg/essential/partnermod/Tooltip.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static void drawTooltip(Draw draw, String text, Position position, int pa
2323
}
2424

2525
int width = maxWidth + 8;
26-
int height = 9 * lines.length + 6;
26+
int height = 10 * lines.length + 4;
2727

2828
int x;
2929
int y;
@@ -57,7 +57,7 @@ public static void drawTooltip(Draw draw, String text, Position position, int pa
5757
int textY = y;
5858
for (String line : lines) {
5959
int lineWidth = Font.getStringWidth(line);
60-
draw.string(line, centerX - lineWidth / 2, textY + 3, -1);
60+
draw.string(line, centerX - lineWidth / 2, textY + 3, 0xFFE5E5E5, 0xFF000000);
6161
textY += 10;
6262
}
6363

src/main/java/gg/essential/partnermod/modal/InstallButton.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public void draw(Draw draw) {
3232

3333
int centreX = x + width / 2;
3434
int startX = centreX - textWidth / 2;
35-
draw.texturedRect(ICON, startX + 1, y + 6, 10, 10, 0, 0, 10, 10, 0xFF132339);
35+
draw.texturedRect(ICON, startX + 1, y + 6, 10, 10, 0, 0, 10, 10, 0xFF000000);
3636
draw.texturedRect(ICON, startX, y + 5, 10, 10, 0, 0, 10, 10, 0xFFe5e5e5);
37-
draw.string(text, startX + 12, y + 6, 0xFFe5e5e5, 0xFF132339);
37+
draw.string(text, startX + 12, y + 6, 0xFFe5e5e5, 0xFF000000);
3838
}
3939
}

0 commit comments

Comments
 (0)