1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 22:28:12 +00:00

Applications: Use placeholders in TextBoxes where applicable

This commit is contained in:
Peter Elliott 2020-09-20 12:43:44 -07:00 committed by Andreas Kling
parent fa96e57c15
commit 7907df7617
4 changed files with 4 additions and 15 deletions

View file

@ -103,6 +103,7 @@ Tab::Tab(Type type)
m_location_box = toolbar.add<GUI::TextBox>();
m_location_box->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
m_location_box->set_preferred_size(0, 22);
m_location_box->set_placeholder("Address");
m_location_box->on_return_pressed = [this] {
auto url = url_from_user_input(m_location_box->text());