Skip to content

Commit 11d9e22

Browse files
committed
fix: improper rendering of colour picker
1 parent 1906a23 commit 11d9e22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/dev/isxander/yacl3/gui/controllers/ColorPickerWidget.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void render(GuiGraphics graphics, int mouseX, int mouseY, float delta) {
104104
graphics,
105105
saturationLightDim.x(), saturationLightDim.y(),
106106
saturationLightDim.xLimit(), saturationLightDim.yLimit(),
107-
GuiUtils.putAlpha(0xFF, 0xFFFFFF), GuiUtils.putAlpha(0xFF, (int) getRgbFromHueX())
107+
0xFFFFFFFF, GuiUtils.putAlpha((int) getRgbFromHueX(), 0xFF)
108108
).submit(graphics);
109109
//Transparent to black, top to bottom
110110
graphics.fillGradient(saturationLightDim.x(), saturationLightDim.y(), saturationLightDim.xLimit(), saturationLightDim.yLimit(), 0x00000000, 0xFF000000);
@@ -134,7 +134,7 @@ public void render(GuiGraphics graphics, int mouseX, int mouseY, float delta) {
134134
graphics,
135135
alphaGradientDim.x(), alphaGradientDim.y(),
136136
alphaGradientDim.xLimit(), alphaGradientDim.yLimit(),
137-
getRgbWithoutAlpha(), 0x00000000
137+
GuiUtils.putAlpha(getRgbWithoutAlpha(), 0xFF), 0x00000000
138138
).submit(graphics);
139139
//Alpha slider thumb shadow
140140
graphics.fill(alphaThumbX - thumbWidth / 2 - 1, alphaGradientDim.y() - outline - 1, alphaThumbX + thumbWidth / 2 + 1, alphaGradientDim.yLimit() + outline + 1, 0xFF404040);

0 commit comments

Comments
 (0)