Can change canvas background color
This commit is contained in:
parent
0b1cc8d4c2
commit
6cec654d4c
12 changed files with 93 additions and 25 deletions
|
|
@ -185,7 +185,7 @@ void BrushTool::commit_stroke() {
|
|||
void BrushTool::draw(SkCanvas* canvas, const DrawData& drawData) {
|
||||
if(!drawData.main->toolbar.io->hoverObstructed) {
|
||||
SkPaint linePaint;
|
||||
linePaint.setColor4f(drawP.world.main.canvasTheme.toolFrontColor);
|
||||
linePaint.setColor4f(drawP.world.canvasTheme.toolFrontColor);
|
||||
linePaint.setStroke(true);
|
||||
linePaint.setStrokeWidth(0.0f);
|
||||
float width;
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ bool EraserTool::prevent_undo_or_redo() {
|
|||
|
||||
void EraserTool::draw(SkCanvas* canvas, const DrawData& drawData) {
|
||||
if(!drawData.main->toolbar.io->hoverObstructed) {
|
||||
SkColor4f c = drawP.world.main.canvasTheme.toolFrontColor;
|
||||
SkColor4f c = drawP.world.canvasTheme.toolFrontColor;
|
||||
c.fA = 0.5f;
|
||||
|
||||
SkPaint linePaint;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue