Files
TaskBoard/src/tools.h
2023-02-16 21:53:07 +01:00

27 lines
519 B
C++

#ifndef TOOLS_H
#define TOOLS_H
#include <QColor>
#include <QJsonDocument>
#include "models/status.h"
class Tools
{
public:
Tools();
static const QColor getRandomColor();
static const QColor getForegroundColor(QColor background);
static bool isSaveFileExist();
static bool writeSaveToFile(QJsonDocument doc);
static bool readSaveFile(QJsonDocument &doc);
static const QString getStatusLabelStylesheet(Status);
private:
static const QString getSaveFilePath();
};
#endif // TOOLS_H