1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

LibGUI: Make GUI::Frame have the 2px sunken container look by default

The overwhelming majority of GUI::Frame users set the same appearance,
so let's just make it the default.
This commit is contained in:
Andreas Kling 2020-02-23 11:09:20 +01:00
parent 3d20da9ee4
commit bfd86c4631
Notes: sideshowbarker 2024-07-19 09:08:44 +09:00
27 changed files with 7 additions and 91 deletions

View file

@ -33,7 +33,7 @@
namespace GUI {
Label::Label(Widget* parent)
: Frame(parent)
: Label({}, parent)
{
}
@ -41,6 +41,9 @@ Label::Label(const StringView& text, Widget* parent)
: Frame(parent)
, m_text(text)
{
set_frame_thickness(0);
set_frame_shadow(Gfx::FrameShadow::Plain);
set_frame_shape(Gfx::FrameShape::NoFrame);
}
Label::~Label()