#pragma once #include "Document/HueSaturation.h" #include #include // Swift's plain sampling buttons: a glyph, tinted when chosen. class SampleButton : public QToolButton { Q_OBJECT public: SampleButton(std::function glyph, QWidget *parent); protected: void paintEvent(QPaintEvent *event) override; private: const std::function m_glyph; }; // Swift's eyedropper, badged plus or minus for Add and Remove. void sampleEyedropper(QPainter &painter, HueSampleMode mode, const QColor &ink);