Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fddcb482 authored by John Hoford's avatar John Hoford
Browse files

small ui fixes in draw

Change-Id: I3d960de02d053cf7a70eeacf773dbe51da69f492
parent 3404ab27
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ public class EditorDraw extends ParametricEditor implements FilterView {

            drawRep.getParam(FilterDrawRepresentation.PARAM_STYLE).setFilterView(this);
            drawRep.setPramMode(FilterDrawRepresentation.PARAM_COLOR);
            mParameterString = mContext.getString(R.string.draw_hue);
            mParameterString = mContext.getString(R.string.draw_color);
            control(drawRep.getCurrentParam(), mEditControl);
        }
    }
@@ -131,7 +131,7 @@ public class EditorDraw extends ParametricEditor implements FilterView {
    public void openUtilityPanel(final LinearLayout accessoryViewList) {
        Button view = (Button) accessoryViewList.findViewById(R.id.applyEffect);
        if (useCompact(mContext)) {
            view.setText(mContext.getString(R.string.draw_hue));
            view.setText(mContext.getString(R.string.draw_color));
            view.setOnClickListener(new OnClickListener() {

                @Override
@@ -192,6 +192,7 @@ public class EditorDraw extends ParametricEditor implements FilterView {
        }
        if (item.getItemId() != R.id.draw_menu_clear) {
            mParameterString = item.getTitle().toString();
            updateText();
        }
        if (mControl instanceof ColorChooser) {
            ColorChooser c = (ColorChooser) mControl;
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ public class FilterDrawRepresentation extends FilterRepresentation {
        switch (mParamMode) {
            case PARAM_COLOR:
                val = ((ParameterColor) mAllParam[mParamMode]).getValue();
                return ((val > 0) ? " +" : " ") + colorHexString(val);
                return "";
            case PARAM_SIZE:
                val = ((BasicParameterInt) mAllParam[mParamMode]).getValue();
                return ((val > 0) ? " +" : " ") + val;