Add color sliders to sketch3d

This commit is contained in:
elushaX 2024-03-20 20:00:52 -07:00 committed by Ilya Shurupov
parent 689bee9afc
commit 6d8c64ac33
5 changed files with 127 additions and 5 deletions

View file

@ -7,7 +7,9 @@ namespace tp {
template <typename Events, typename Canvas>
class Widget {
public:
Widget() = default;
Widget() {
this->mArea = { 0, 0, 100, 100 };
}
[[nodiscard]] const RGBA& getColor(const String& name) const {
const auto& node = cfg->values.get(name);