Skip to content

Commit f0b960b

Browse files
Design Tweaks
* Change color of flow text copy to gray100 * Fixed space between icon and copy * Remove underline from diagonal arrow on "Learn more" button * Added "Mod" to Essential logo banner
1 parent 9572973 commit f0b960b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/main/java/gg/essential/ad/modal/AdModal.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,17 @@ public void draw(Draw draw) {
8585

8686
Minecraft mc = Minecraft.getMinecraft();
8787

88-
// Icon Block (94px wide, 19px high)
88+
// Icon Block (98px wide, 19px high)
8989
// shadow
90-
draw.rect(centreX - 47 + 1, startY + 20 + 1, centreX + 47 + 1, startY + 20 + 19 + 1, 0xFF000000);
90+
draw.rect(centreX - 49 + 1, startY + 20 + 1, centreX + 49 + 1, startY + 20 + 19 + 1, 0xFF000000);
9191
// background
92-
draw.rect(centreX - 47, startY + 20, centreX + 47, startY + 20 + 19, 0xFF1b3151);
92+
draw.rect(centreX - 49, startY + 20, centreX + 49, startY + 20 + 19, 0xFF1b3151);
9393
// icon texture
94-
draw.texturedRect(ESSENTIAL_LOGO, centreX - 29, startY + 20 + 7, 58, 6, 0, 0, 58, 6);
94+
draw.texturedRect(ESSENTIAL_LOGO, centreX - 40, startY + 20 + 7, 80, 6, 0, 0, 80, 6);
9595

9696
// Tagline
9797
draw.multilineCentredString(modalData.getSubtitle("en_us"),
98-
centreX, startY + 49, 10, 0xFF999999, 0xFF000000
98+
centreX, startY + 49, 10, 0xFFBFBFBF, 0xFF000000
9999
);
100100

101101
// Features
@@ -105,7 +105,7 @@ public void draw(Draw draw) {
105105
maxWidth = Math.max(Font.getStringWidth(feature.getDisplayedText()), maxWidth);
106106
}
107107

108-
int featureX = centreX - (maxWidth + 14) / 2;
108+
int featureX = centreX - (maxWidth + 15) / 2;
109109

110110
int featureY = startY + featuresOffset;
111111

@@ -114,7 +114,7 @@ public void draw(Draw draw) {
114114
draw.texturedRect(location, featureX + 1, featureY + 1, 10, 10, 0, 0, 10, 10, 0xFF000000);
115115
draw.texturedRect(location, featureX, featureY, 10, 10, 0, 0, 10, 10, 0xFF0a82fd);
116116

117-
int textX = featureX + 14;
117+
int textX = featureX + 15;
118118
int textY = featureY + 1;
119119

120120
String text = feature.text;

src/main/java/gg/essential/ad/modal/LinkButton.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void draw(Draw draw) {
2323
draw.texturedRect(ICON, x + textWidth + 5, y + 2, 5, 5, 0, 0, 5, 5, 0xFF000000);
2424
draw.texturedRect(ICON, x + textWidth + 4, y + 1, 5, 5, 0, 0, 5, 5, color);
2525

26-
draw.rect(x, y + 8, x + width, y + 9, color);
27-
draw.rect(x + 1, y + 9, x + width + 1, y + 10, 0xFF000000);
26+
draw.rect(x, y + 8, x + textWidth, y + 9, color);
27+
draw.rect(x + 1, y + 9, x + textWidth + 1, y + 10, 0xFF000000);
2828
}
2929
}
11 Bytes
Loading

0 commit comments

Comments
 (0)