Skip to content

Commit

Permalink
Base: Rename Pebbleton to reflect actual height
Browse files Browse the repository at this point in the history
And update programs loading it from file.
  • Loading branch information
thankyouverycool authored and awesomekling committed Aug 16, 2020
1 parent f025204 commit 5558b2c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Applications/Welcome/main.cpp
Expand Up @@ -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);
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Demos/LibGfxDemo/main.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 5558b2c

Please sign in to comment.