mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 14:50:18 +00:00
LibGUI: Implement content margins for Frame
This commit is contained in:
parent
54605794f9
commit
6964c2a2db
Notes:
sideshowbarker
2024-07-18 01:31:25 +09:00
Author: https://github.com/frhun
Commit: 6964c2a2db
Pull-request: https://github.com/SerenityOS/serenity/pull/10246
Issue: https://github.com/SerenityOS/serenity/issues/5887
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,8 @@ public:
|
|||
int frame_thickness() const { return m_thickness; }
|
||||
void set_frame_thickness(int thickness);
|
||||
|
||||
virtual Margins content_margins() const override { return { frame_thickness() }; }
|
||||
|
||||
Gfx::FrameShadow frame_shadow() const { return m_shadow; }
|
||||
void set_frame_shadow(Gfx::FrameShadow shadow) { m_shadow = shadow; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue