mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 00:59:35 -04:00
Fix[Controls]: Color selector allowing transparent button stroke
This commit is contained in:
parent
036e76315b
commit
b9fa6b8756
@ -160,6 +160,7 @@ public class ColorSelector implements HueSelectionListener, RectangleSelectionLi
|
||||
public void setAlphaEnabled(boolean alphaEnabled){
|
||||
mAlphaEnabled = alphaEnabled;
|
||||
mAlphaView.setVisibility(alphaEnabled ? View.VISIBLE : View.GONE);
|
||||
mAlphaView.setAlpha(255);
|
||||
}
|
||||
|
||||
private void notifyColorSelector(int color){
|
||||
|
@ -8,6 +8,7 @@ import static net.kdt.pojavlaunch.Tools.currentDisplayMetrics;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.util.Log;
|
||||
@ -168,8 +169,7 @@ public class EditControlPopup {
|
||||
}
|
||||
|
||||
mDisplayingColor = true;
|
||||
if(color != -1)
|
||||
mColorSelector.show(color);
|
||||
mColorSelector.show(color == -1 ? Color.WHITE : color);
|
||||
}
|
||||
|
||||
/** Slide out the layout */
|
||||
|
Loading…
x
Reference in New Issue
Block a user