ui: integrate previously merged icons

This commit is contained in:
itsmattkc
2022-09-01 13:02:29 -07:00
parent 5e6f4b9879
commit 8b350bad46
3 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -26,6 +26,7 @@
#include "config/config.h"
#include "core.h"
#include "ui/icons/icons.h"
namespace olive {
@@ -51,7 +52,9 @@ ColorValuesWidget::ColorValuesWidget(ColorManager *manager, QWidget *parent) :
preview_->setFixedHeight(fontMetrics().height() * 3 / 2);
preview_layout->addWidget(preview_);
color_picker_btn_ = new QPushButton(tr("Pick"));
color_picker_btn_ = new QPushButton();
color_picker_btn_->setIcon(icon::ColorPicker);
color_picker_btn_->setFixedWidth(color_picker_btn_->sizeHint().height());
color_picker_btn_->setCheckable(true);
connect(color_picker_btn_, &QPushButton::toggled, this, &ColorValuesWidget::ColorPickedBtnToggled);
connect(Core::instance(), &Core::ColorPickerColorEmitted, this, &ColorValuesWidget::SetReferenceColor);