turn LV_OPA_.. defines to enum
This commit is contained in:
@@ -57,19 +57,21 @@ extern "C" {
|
||||
#define LV_COLOR_PURPLE LV_COLOR_MAKE(0x80,0x00,0x80)
|
||||
#define LV_COLOR_ORANGE LV_COLOR_MAKE(0xFF,0xA5,0x00)
|
||||
|
||||
#define LV_OPA_TRANSP 0
|
||||
#define LV_OPA_0 0
|
||||
#define LV_OPA_10 25
|
||||
#define LV_OPA_20 51
|
||||
#define LV_OPA_30 76
|
||||
#define LV_OPA_40 102
|
||||
#define LV_OPA_50 127
|
||||
#define LV_OPA_60 153
|
||||
#define LV_OPA_70 178
|
||||
#define LV_OPA_80 204
|
||||
#define LV_OPA_90 229
|
||||
#define LV_OPA_100 255
|
||||
#define LV_OPA_COVER 255
|
||||
enum {
|
||||
LV_OPA_TRANSP = 0,
|
||||
LV_OPA_0 = 0,
|
||||
LV_OPA_10 = 25,
|
||||
LV_OPA_20 = 51,
|
||||
LV_OPA_30 = 76,
|
||||
LV_OPA_40 = 102,
|
||||
LV_OPA_50 = 127,
|
||||
LV_OPA_60 = 153,
|
||||
LV_OPA_70 = 178,
|
||||
LV_OPA_80 = 204,
|
||||
LV_OPA_90 = 229,
|
||||
LV_OPA_100 = 255,
|
||||
LV_OPA_COVER = 255,
|
||||
};
|
||||
|
||||
#define LV_OPA_MIN 16 /*Opacities below this will be transparent*/
|
||||
#define LV_OPA_MAX 251 /*Opacities above this will fully cover*/
|
||||
|
||||
Reference in New Issue
Block a user