first commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user