LibGfx+LibGUI: Add FrameShape::Window

This shape is for use by the main widget of a frameless window
that still wishes to have proper borders but no title.

Raised Containers were used previously for this pattern but did not
always represent perspective and shadow correctly depending on thread
highlighting and the immediate background color. Containers are
really meant to be used inside other widgets where the background
color can be controlled.
This commit is contained in:
thankyouverycool 2022-02-25 11:39:17 -05:00 committed by Andreas Kling
commit bb4963a697
Notes: sideshowbarker 2024-07-17 18:17:20 +09:00
3 changed files with 8 additions and 1 deletions

View file

@ -28,7 +28,8 @@ Frame::Frame()
{ Gfx::FrameShape::NoFrame, "NoFrame" },
{ Gfx::FrameShape::Box, "Box" },
{ Gfx::FrameShape::Container, "Container" },
{ Gfx::FrameShape::Panel, "Panel" });
{ Gfx::FrameShape::Panel, "Panel" },
{ Gfx::FrameShape::Window, "Window" });
}
Frame::~Frame()