1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:17:44 +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:
thankyouverycool 2023-01-29 09:03:12 -05:00 committed by Linus Groh
parent 08456be9dc
commit 883abffa25
2 changed files with 13 additions and 5 deletions

View file

@ -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;