mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-12 17:37:53 +03:00
Base: Rename Pebbleton to reflect actual height
And update programs loading it from file.
This commit is contained in:
parent
f025204dfe
commit
5558b2cf9f
Notes:
sideshowbarker
2024-07-19 03:32:45 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/5558b2cf9f4 Pull-request: https://github.com/SerenityOS/serenity/pull/3176
@ -170,7 +170,7 @@ int main(int argc, char** argv)
|
||||
//
|
||||
|
||||
auto& header = background.add<GUI::Label>();
|
||||
header.set_font(Gfx::Font::load_from_file("/res/fonts/PebbletonBold11.font"));
|
||||
header.set_font(Gfx::Font::load_from_file("/res/fonts/PebbletonBold14.font"));
|
||||
header.set_text("Welcome to SerenityOS!");
|
||||
header.set_text_alignment(Gfx::TextAlignment::CenterLeft);
|
||||
header.set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
|
@ -165,7 +165,7 @@ void Canvas::draw()
|
||||
painter.draw_text({ 520, 450, 240, 20 }, "Normal text (fixed width)", Gfx::Font::default_fixed_width_font(), Gfx::TextAlignment::CenterLeft, Color::Blue);
|
||||
painter.draw_text({ 520, 465, 240, 20 }, "Bold text (fixed width)", Gfx::Font::default_bold_fixed_width_font(), Gfx::TextAlignment::CenterLeft, Color::Yellow);
|
||||
|
||||
auto font = Gfx::Font::load_from_file("/res/fonts/PebbletonBold11.font");
|
||||
auto font = Gfx::Font::load_from_file("/res/fonts/PebbletonBold14.font");
|
||||
painter.draw_rect({ 520, 510, 240, 30 }, Color::DarkGray);
|
||||
painter.draw_text({ 520, 510, 240, 30 }, "Hello friends! :^)", *font, Gfx::TextAlignment::Center, Color::White);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user