fix #159, change the brush size color dynamically at B&W theme

This commit is contained in:
tibbi 2019-11-27 22:53:25 +01:00
parent d8e1b45451
commit a0cf18b0b6

View file

@ -460,6 +460,10 @@ class MainActivity : SimpleActivity(), CanvasListener {
undo.applyColorFilter(contrastColor) undo.applyColorFilter(contrastColor)
eraser.applyColorFilter(contrastColor) eraser.applyColorFilter(contrastColor)
redo.applyColorFilter(contrastColor) redo.applyColorFilter(contrastColor)
if (isBlackAndWhiteTheme()) {
stroke_width_bar.setColors(0, contrastColor, 0)
}
my_canvas.updateBackgroundColor(pickedColor) my_canvas.updateBackgroundColor(pickedColor)
defaultExtension = PNG defaultExtension = PNG
getBrushPreviewView().setStroke(getBrushStrokeSize(), contrastColor) getBrushPreviewView().setStroke(getBrushStrokeSize(), contrastColor)