Readded layer menu and fixed color picker button

This commit is contained in:
Yousef Khadadeh 2026-04-07 16:57:11 +03:00
parent 267a66dd32
commit 516f48993e
7 changed files with 586 additions and 522 deletions

View file

@ -12,6 +12,7 @@ template <typename T> void ColorPickerButton<T>::layout(const Clay_ElementId& id
GUIStuff::ElementHelpers::color_button(gui, "Color Picker Button", val, {
.isSelected = isOpen,
.hasAlpha = data.hasAlpha,
.onClick = [&]{
isOpen = !isOpen;
gui.set_to_layout();