Add more colors and custom color item
This commit is contained in:
@@ -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"))) {
|
||||
|
||||
@@ -82,7 +82,6 @@ public:
|
||||
bool copyPathAfterSaveEnabled();
|
||||
void setCopyPathAfterSaveEnabled(const bool);
|
||||
|
||||
|
||||
void setDefaults();
|
||||
void setAllTheButtons();
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#include "src/utils/confighandler.h"
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QDebug>
|
||||
#include <QStringList>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user