Add ui color modification logic

This commit is contained in:
lupoDharkael
2017-05-19 23:57:53 +02:00
parent 2a55452922
commit 51c1a37b50
5 changed files with 56 additions and 7 deletions

View File

@@ -97,11 +97,13 @@ CaptureWidget::~CaptureWidget() {
// selection in the capture
void CaptureWidget::redefineButtons() {
QSettings settings;
QString buttonStyle = Button::getStyle();
auto buttonsInt = settings.value("buttons").value<QList<int> >();
QVector<Button*> vectorButtons;
for (auto i: buttonsInt) {
auto t = static_cast<Button::Type>(i);
Button *b = new Button(t, this);
b->setStyleSheet(buttonStyle);
if (t == Button::Type::selectionIndicator) {
m_sizeIndButton = b;
}