Select › Color Range: sampled colours, Fuzziness, Invert, a live preview and the panel (13.3b)
This commit is contained in:
1 parent
462fe805b1
commit
0b7eb6cb6f
29 files changed
+1535
-71
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include "ContentView.h"
|
||||
#include "UI/ColorRangeSheet.h"
|
||||
#include "UI/LassoControls.h"
|
||||
#include "UI/EffectsSheet.h"
|
||||
#include "UI/FilterSheet.h"
|
||||
@@ -41,6 +42,16 @@ void ContentView::synchronizePanels()
|
||||
m_selectionAmountPanel.close();
|
||||
}
|
||||
}
|
||||
// Swift's onChange of colorRange == nil.
|
||||
if (m_colorRangeShown != m_session.colorRange().has_value()) {
|
||||
m_colorRangeShown = m_session.colorRange().has_value();
|
||||
if (m_colorRangeShown) {
|
||||
m_colorRangePanel.onClose = [this] { m_session.cancelColorRange(); };
|
||||
m_colorRangePanel.show(QStringLiteral("Color Range"), new ColorRangeSheet(m_session));
|
||||
} else {
|
||||
m_colorRangePanel.close();
|
||||
}
|
||||
}
|
||||
if (m_filterShown != m_session.filterEdit().has_value()) {
|
||||
m_filterShown = m_session.filterEdit().has_value();
|
||||
if (m_filterShown) {
|
||||
|
||||
Reference in new issue
Block a user