mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17:35 +00:00
Welcome: Load banner font in a fallible manner
And simplify painting logic by using the banner widget's relative rect and tray_text() ColorRole.
This commit is contained in:
parent
08456be9dc
commit
883abffa25
2 changed files with 13 additions and 5 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/Widget.h>
|
||||
#include <LibGfx/Font/BitmapFont.h>
|
||||
#include <LibWebView/OutOfProcessWebView.h>
|
||||
|
||||
class WelcomeWidget final : public GUI::Widget {
|
||||
|
@ -25,6 +26,9 @@ private:
|
|||
void set_random_tip();
|
||||
ErrorOr<void> open_and_parse_tips_file();
|
||||
|
||||
RefPtr<Gfx::BitmapFont> m_banner_font;
|
||||
RefPtr<GUI::Widget> m_banner_widget;
|
||||
|
||||
RefPtr<GUI::Button> m_close_button;
|
||||
RefPtr<GUI::Button> m_next_button;
|
||||
RefPtr<GUI::Button> m_help_button;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue