Skip to content

Commit

Permalink
UX: Set fill/stroke view based on item
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Sep 1, 2024
1 parent 42d7c5a commit f2ee53d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/app/GUI/fillstrokesettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,14 @@ void FillStrokeSettingsWidget::setCurrentSettings(PaintSettingsAnimator *fillPai
{
setFillValuesFromFillSettings(fillPaintSettings);
setStrokeValuesFromStrokeSettings(strokePaintSettings);
if (mTarget == PaintSetting::FILL) { setFillTarget(); }
else { setStrokeTarget(); }

const bool hasFill = fillPaintSettings ? fillPaintSettings->getPaintType() != PaintType::NOPAINT : false;
const bool hasStroke = strokePaintSettings ? strokePaintSettings->getPaintType() != PaintType::NOPAINT : false;
if (hasStroke && !hasFill) { setStrokeTarget(); }
else { setFillTarget(); }

//if (mTarget == PaintSetting::FILL) { setFillTarget(); }
//else { setStrokeTarget(); }
}

void FillStrokeSettingsWidget::clearAll()
Expand Down

0 comments on commit f2ee53d

Please sign in to comment.