Merge pull request #121 from A-lex-Ra/main

icon small changes
This commit is contained in:
MihailRis 2024-01-19 18:15:37 +03:00 committed by GitHub
commit 90e2cf4c3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 237 B

View File

@ -74,7 +74,9 @@ void Image::draw(Batch2D* batch, Assets* assets) {
}
// ================================= Button ===================================
Button::Button(shared_ptr<UINode> content, glm::vec4 padding) : Panel(vec2(34,32), padding, 0) {
Button::Button(shared_ptr<UINode> content, glm::vec4 padding)
: Panel(content->size()+vec2(padding[0]+padding[2]+content->margin()[0]+content->margin()[2],
padding[1]+padding[3]+content->margin()[1]+content->margin()[3]), padding, 0) {
add(content);
scrollable(false);
}