mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibGUI: Register Label "text_alignment" property
This commit is contained in:
parent
750a608441
commit
d161007e9e
Notes:
sideshowbarker
2024-07-19 00:26:54 +09:00
Author: https://github.com/linusg
Commit: d161007e9e
Pull-request: https://github.com/SerenityOS/serenity/pull/4626
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/devsh0
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ namespace GUI {
|
|||
Label::Label(String text)
|
||||
: m_text(move(text))
|
||||
{
|
||||
REGISTER_TEXT_ALIGNMENT_PROPERTY("text_alignment", text_alignment, set_text_alignment);
|
||||
|
||||
set_frame_thickness(0);
|
||||
set_frame_shadow(Gfx::FrameShadow::Plain);
|
||||
set_frame_shape(Gfx::FrameShape::NoFrame);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue