first commit
This commit is contained in:
37
project/fm_viewer/ui/fm_layer.h
Normal file
37
project/fm_viewer/ui/fm_layer.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef FM_LAYER_H
|
||||
#define FM_LAYER_H
|
||||
#include <QWidget>
|
||||
#include <QLabel>
|
||||
#include <QSlider>
|
||||
|
||||
|
||||
|
||||
#define FM_COLOR_SET_NORMAL 0
|
||||
#define FM_COLOR_SET_PRESSED 1
|
||||
#define FM_COLOR_SET_HOVER 2
|
||||
#define FM_COLOR_SET_DISABLED 3
|
||||
#define FM_COLOR_SET_CHECKED 4
|
||||
#define FM_COLOR_SET_COUNT 5
|
||||
typedef int FM_COLOR_SET;
|
||||
//{
|
||||
// int normal;
|
||||
// int pressed;
|
||||
// int hover;
|
||||
// int disabled;
|
||||
// int checked;
|
||||
//} FM_COLOR_SET;
|
||||
|
||||
inline QString FMColor(int c) {
|
||||
return QString().sprintf("%06X",c);
|
||||
}
|
||||
|
||||
void FMWidgetBorder(QWidget* w,const char* name, int c);
|
||||
void FMLabel(QLabel* lb,const char* name, const char* font,int c, int size = 12, bool bold = false);
|
||||
void FMLabelBackground(QLabel* lb,const char* name, const char* font,int c, int size, bool bold, int bg);
|
||||
void FMWidgetBackground(QWidget* w,const char* name, int c);
|
||||
void FMWidgetBorderBackground(QWidget* w,const char* name, int clBack, int clBorder);
|
||||
void FMWidgetBottomBorderBackground(QWidget* w,const char* name, int clBack, int clBorder);
|
||||
|
||||
void FMSlider(QSlider* sl,const char* name,int cp, int cb, bool small = false);
|
||||
|
||||
#endif // FM_LAYER_H
|
||||
Reference in New Issue
Block a user