Adding new gui to Sketch3d

This commit is contained in:
IlyaShurupov 2024-03-18 14:37:39 +03:00 committed by Ilya Shurupov
parent 8eae09591d
commit e0f92b32dc
6 changed files with 134 additions and 10 deletions

View file

@ -8,6 +8,18 @@ namespace tp {
class ButtonWidget : public Widget<Events, Canvas> {
public:
ButtonWidget() {
this->mArea = { 0, 0, 100, 100 };
this->createConfig("Button");
this->addColor("Pressed", "Action");
this->addColor("Hovered", "Interaction");
this->addColor("Default", "Accent");
this->addValue("Rounding", "Rounding");
}
ButtonWidget(const String& label, const tp::RectF& aArea) {
this->mArea = aArea;
this->mLabel.mLabel = label;
this->createConfig("Button");
this->addColor("Pressed", "Action");
this->addColor("Hovered", "Interaction");