mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
Show opacity when brush is an image (ignoring the ink type)
This commit is contained in:
parent
66ddc62a76
commit
6aeee0b8fa
@ -1091,14 +1091,19 @@ void ContextBar::updateForTool(tools::Tool* tool)
|
||||
(tool->getController(0)->isFreehand() ||
|
||||
tool->getController(1)->isFreehand());
|
||||
|
||||
bool showOpacity =
|
||||
(supportOpacity) &&
|
||||
((isPaint && (hasInkWithOpacity || hasImageBrush)) ||
|
||||
(isEffect));
|
||||
|
||||
// Show/Hide fields
|
||||
m_brushType->setVisible(supportOpacity && (!isFloodfill || (isFloodfill && hasImageBrush)));
|
||||
m_brushSize->setVisible(supportOpacity && !isFloodfill && !hasImageBrush);
|
||||
m_brushAngle->setVisible(supportOpacity && !isFloodfill && !hasImageBrush && hasBrushWithAngle);
|
||||
m_brushPatternField->setVisible(supportOpacity && hasImageBrush);
|
||||
m_inkType->setVisible(hasInk && !hasImageBrush);
|
||||
m_inkOpacityLabel->setVisible(hasInkWithOpacity && supportOpacity);
|
||||
m_inkOpacity->setVisible(hasInkWithOpacity && supportOpacity);
|
||||
m_inkOpacityLabel->setVisible(showOpacity);
|
||||
m_inkOpacity->setVisible(showOpacity);
|
||||
m_eyedropperField->setVisible(isEyedropper);
|
||||
m_autoSelectLayer->setVisible(isMove);
|
||||
m_freehandBox->setVisible(isFreehand && supportOpacity);
|
||||
|
Loading…
Reference in New Issue
Block a user