diff --git a/libs/ui/include/psemek/ui/style.hpp b/libs/ui/include/psemek/ui/style.hpp index f86edecb..94b2331d 100644 --- a/libs/ui/include/psemek/ui/style.hpp +++ b/libs/ui/include/psemek/ui/style.hpp @@ -8,6 +8,12 @@ namespace psemek::ui { + enum class bevel_type + { + up, + down, + }; + struct style { std::optional bg_color; @@ -20,6 +26,11 @@ namespace psemek::ui std::optional border_color; std::optional border_width; + std::optional bevel_light_color; + std::optional bevel_dark_color; + std::optional bevel_type; + std::optional bevel_width; + std::optional axis_color; std::optional ref_height; diff --git a/libs/ui/source/style.cpp b/libs/ui/source/style.cpp index 9a80efe9..f47b05cb 100644 --- a/libs/ui/source/style.cpp +++ b/libs/ui/source/style.cpp @@ -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;