mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 07:05:40 -04:00
The controls menu is slightly simplified.
This commit is contained in:
parent
553ee654b1
commit
e3d5544e71
@ -56,6 +56,7 @@ public class EditControlButtonPopup {
|
|||||||
protected TextView textOpacity;
|
protected TextView textOpacity;
|
||||||
protected TextView textCornerRadius;
|
protected TextView textCornerRadius;
|
||||||
protected TextView textStrokeWidth;
|
protected TextView textStrokeWidth;
|
||||||
|
protected TextView textStrokeColor;
|
||||||
|
|
||||||
protected final ControlButton button;
|
protected final ControlButton button;
|
||||||
protected final ControlData properties;
|
protected final ControlData properties;
|
||||||
@ -125,6 +126,7 @@ public class EditControlButtonPopup {
|
|||||||
}
|
}
|
||||||
if(seekBar.equals(seekBarStrokeWidth)) {
|
if(seekBar.equals(seekBarStrokeWidth)) {
|
||||||
setPercentageText(textStrokeWidth, i);
|
setPercentageText(textStrokeWidth, i);
|
||||||
|
textStrokeColor.setVisibility(i == 0 ? View.GONE : View.VISIBLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,6 +147,7 @@ public class EditControlButtonPopup {
|
|||||||
textOpacity = v.findViewById(R.id.editButtonOpacity_textView_percent);
|
textOpacity = v.findViewById(R.id.editButtonOpacity_textView_percent);
|
||||||
textCornerRadius = v.findViewById(R.id.editCornerRadius_textView_percent);
|
textCornerRadius = v.findViewById(R.id.editCornerRadius_textView_percent);
|
||||||
textStrokeWidth = v.findViewById(R.id.editStrokeWidth_textView_percent);
|
textStrokeWidth = v.findViewById(R.id.editStrokeWidth_textView_percent);
|
||||||
|
textStrokeColor = v.findViewById(R.id.editStrokeColor_textView);
|
||||||
|
|
||||||
checkDynamicPosition = v.findViewById(R.id.checkboxDynamicPosition);
|
checkDynamicPosition = v.findViewById(R.id.checkboxDynamicPosition);
|
||||||
checkDynamicPosition.setOnCheckedChangeListener((btn, checked) -> {
|
checkDynamicPosition.setOnCheckedChangeListener((btn, checked) -> {
|
||||||
@ -200,6 +203,9 @@ public class EditControlButtonPopup {
|
|||||||
(v.findViewById(R.id.editDynamicPositionY_textView)).setVisibility(View.GONE);
|
(v.findViewById(R.id.editDynamicPositionY_textView)).setVisibility(View.GONE);
|
||||||
editDynamicX.setVisibility(View.GONE);
|
editDynamicX.setVisibility(View.GONE);
|
||||||
editDynamicY.setVisibility(View.GONE);
|
editDynamicY.setVisibility(View.GONE);
|
||||||
|
|
||||||
|
//Hide the color choice if the width is 0.
|
||||||
|
textStrokeColor.setVisibility(properties.strokeWidth == 0 ? View.GONE : View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void defineDynamicCheckChange(){
|
protected void defineDynamicCheckChange(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user