Add more colors and custom color item

This commit is contained in:
Yuriy Puchkov
2020-09-07 17:44:18 +03:00
parent eaa28b1da2
commit 3f708f3160
26 changed files with 638 additions and 433 deletions

View File

@@ -79,15 +79,23 @@ void ConfigHandler::setButtons(const QVector<CaptureButton::ButtonType> &buttons
QVector<QColor> ConfigHandler::getUserColors() {
QVector<QColor> colors;
const QVector<QColor> &defaultColors = {
Qt::darkRed,
Qt::white,
Qt::red,
Qt::yellow,
Qt::green,
Qt::darkGreen,
Qt::cyan,
Qt::blue,
Qt::black,
Qt::darkRed,
Qt::darkGreen,
Qt::darkBlue,
Qt::darkGray,
Qt::cyan,
Qt::magenta,
Qt::darkMagenta
Qt::yellow,
Qt::lightGray,
Qt::darkCyan,
Qt::darkMagenta,
Qt::darkYellow,
QColor()
};
if (m_settings.contains(QStringLiteral("userColors"))) {

View File

@@ -82,7 +82,6 @@ public:
bool copyPathAfterSaveEnabled();
void setCopyPathAfterSaveEnabled(const bool);
void setDefaults();
void setAllTheButtons();

View File

@@ -2,7 +2,6 @@
#include "src/utils/confighandler.h"
#include <QDir>
#include <QFile>
#include <QDebug>
#include <QStringList>