flamendless / Slab

An immediate mode GUI for the Love2D framework.
MIT License
294 stars 25 forks source link

`BeginMenu` and `ContextMenuWindow` missing top rounded corners #63

Closed Avril112113 closed 3 years ago

Avril112113 commented 3 years ago

Just a note; I am still figuring out Slab, if I am missing something, my bad...

image image

The tops of the context menu's are missing rounded corners. For the MainMenuBar it makes sense to not have rounded corners.

It does make sense to have no rounded corners in this case though image

Code (First Image)

if Slab.BeginContextMenuWindow() then
    Slab.MenuItem("BLANK")

    if Slab.BeginMenu("Create") then
        if Slab.MenuItem("Lamp") then
            print("Create Lamp")
        end

        if Slab.MenuItem("Button") then
            print("Create Lamp")
        end

        Slab.EndMenu()
    end

    Slab.EndContextMenu()
end
coding-jackalope commented 3 years ago

Hi @Dude112113, thanks for reporting this issue. The fix should be fairly trivial and will be included in the next update.