Add bevel style properties
This commit is contained in:
parent
7499785c72
commit
89db5ec3ea
2 changed files with 20 additions and 0 deletions
|
|
@ -8,6 +8,12 @@
|
|||
namespace psemek::ui
|
||||
{
|
||||
|
||||
enum class bevel_type
|
||||
{
|
||||
up,
|
||||
down,
|
||||
};
|
||||
|
||||
struct style
|
||||
{
|
||||
std::optional<gfx::color_rgba> bg_color;
|
||||
|
|
@ -20,6 +26,11 @@ namespace psemek::ui
|
|||
std::optional<gfx::color_rgba> border_color;
|
||||
std::optional<int> border_width;
|
||||
|
||||
std::optional<gfx::color_rgba> bevel_light_color;
|
||||
std::optional<gfx::color_rgba> bevel_dark_color;
|
||||
std::optional<enum bevel_type> bevel_type;
|
||||
std::optional<int> bevel_width;
|
||||
|
||||
std::optional<gfx::color_rgba> axis_color;
|
||||
|
||||
std::optional<int> ref_height;
|
||||
|
|
|
|||
|
|
@ -43,6 +43,10 @@ namespace psemek::ui
|
|||
merge(dst.action_offset, src.action_offset);
|
||||
merge(dst.border_color, src.border_color);
|
||||
merge(dst.border_width, src.border_width);
|
||||
merge(dst.bevel_light_color, src.bevel_light_color);
|
||||
merge(dst.bevel_dark_color, src.bevel_dark_color);
|
||||
merge(dst.bevel_type, src.bevel_type);
|
||||
merge(dst.bevel_width, src.bevel_width);
|
||||
merge(dst.axis_color, src.axis_color);
|
||||
merge(dst.ref_height, src.ref_height);
|
||||
merge(dst.shadow_offset, src.shadow_offset);
|
||||
|
|
@ -82,6 +86,11 @@ namespace psemek::ui
|
|||
s.border_color = {255, 255, 255, 255};
|
||||
s.border_width = 3;
|
||||
|
||||
s.bevel_light_color = {159, 159, 159, 255};
|
||||
s.bevel_dark_color = {63, 63, 63, 63};
|
||||
s.bevel_type = bevel_type::up;
|
||||
s.bevel_width = 1;
|
||||
|
||||
s.axis_color = {255, 255, 255, 255};
|
||||
|
||||
s.ref_height = 22;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue