mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-06-05 21:59:17 +02:00
Changed Undo arrow color based on the selected background
This commit is contained in:
@ -19,6 +19,7 @@ import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.simplemobiletools.draw.Config;
|
||||
@ -98,6 +99,11 @@ public class MainActivity extends SimpleActivity implements MyCanvas.PathsChange
|
||||
|
||||
@Override
|
||||
public void onOk(AmbilWarnaDialog dialog, int pickedColor) {
|
||||
if (Utils.shouldUseWhite(pickedColor)) {
|
||||
((ImageView)mUndoBtn).setImageResource(R.mipmap.undo_white);
|
||||
} else {
|
||||
((ImageView)mUndoBtn).setImageResource(R.mipmap.undo_black);
|
||||
}
|
||||
mMyCanvas.setBackgroundColor(pickedColor);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user