34 lines
711 B
C++
34 lines
711 B
C++
#ifndef FCOLORSETTING_H
|
|
#define FCOLORSETTING_H
|
|
|
|
#include "qspinbox.h"
|
|
#include <QWidget>
|
|
#include <QComboBox>
|
|
|
|
namespace Ui {
|
|
class FColorSetting;
|
|
}
|
|
|
|
class FColorSetting : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FColorSetting(QWidget *parent = nullptr);
|
|
~FColorSetting();
|
|
QComboBox *cbBlockColor;
|
|
QComboBox *cbBorderColor;
|
|
QComboBox *cbBackgroundColor;
|
|
QSpinBox *sbBorderSize;
|
|
QSpinBox *sbPadding;
|
|
QSlider *hsBlockTransparant;
|
|
QString hexToColorName(const QString &hexColor);
|
|
private:
|
|
Ui::FColorSetting *ui;
|
|
|
|
void setupColorComboBox(QComboBox* comboBox);
|
|
void setDefaultColor(QComboBox* comboBox, const QString& colorName);
|
|
};
|
|
|
|
#endif // FCOLORSETTING_H
|