mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:17:35 +00:00
Base: Rename Pebbleton to reflect actual height
And update programs loading it from file.
This commit is contained in:
parent
f025204dfe
commit
5558b2cf9f
4 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue