some working elements
This commit is contained in:
parent
e00bd1046a
commit
82bc7a4d0d
6 changed files with 249 additions and 191 deletions
37
def_style.h
Normal file
37
def_style.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#ifndef _UG_DEF_STYLE_H
|
||||
#define _UG_DEF_STYLE_H
|
||||
|
||||
#include "ugui.h"
|
||||
|
||||
#define SZ_INT(x) x.size.i
|
||||
|
||||
static const ug_style_t default_style = {
|
||||
.color = {
|
||||
.bg = RGB_FORMAT(0x131313),
|
||||
.fg = RGB_FORMAT(0xffffff),
|
||||
},
|
||||
.margin = SIZE_PX(3),
|
||||
.border = {
|
||||
.color = RGB_FORMAT(0xf50a00),
|
||||
.size = SIZE_PX(2),
|
||||
},
|
||||
.title = {
|
||||
.color = {
|
||||
.bg = RGB_FORMAT(0xbbbbbb),
|
||||
.fg = RGB_FORMAT(0xffff00),
|
||||
},
|
||||
.height = SIZE_PX(20),
|
||||
.font_size = SIZE_PX(14),
|
||||
},
|
||||
.btn = {
|
||||
.color = {
|
||||
.active = RGB_FORMAT(0x44ff44),
|
||||
.bg = RGB_FORMAT(0x00ff00),
|
||||
.fg = RGB_FORMAT(0xffff00),
|
||||
},
|
||||
.font_size = SIZE_PX(10),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue