mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
LibGUI: Use GUI::Window::set_main_widget<WidgetType>() in clients
This commit is contained in:
parent
4697195645
commit
0f3e57a6fb
Notes:
sideshowbarker
2024-07-19 08:54:48 +09:00
Author: https://github.com/awesomekling
Commit: 0f3e57a6fb
37 changed files with 203 additions and 246 deletions
|
@ -122,13 +122,12 @@ private:
|
|||
TooltipWindow()
|
||||
{
|
||||
set_window_type(WindowType::Tooltip);
|
||||
m_label = Label::construct();
|
||||
m_label = set_main_widget<Label>();
|
||||
m_label->set_background_color(Color::from_rgb(0xdac7b5));
|
||||
m_label->set_fill_with_background_color(true);
|
||||
m_label->set_frame_thickness(1);
|
||||
m_label->set_frame_shape(Gfx::FrameShape::Container);
|
||||
m_label->set_frame_shadow(Gfx::FrameShadow::Plain);
|
||||
set_main_widget(m_label);
|
||||
}
|
||||
|
||||
RefPtr<Label> m_label;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue