mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-26 04:02:27 +00:00
Applications: Use placeholders in TextBoxes where applicable
This commit is contained in:
parent
fa96e57c15
commit
7907df7617
Notes:
sideshowbarker
2024-07-19 02:17:57 +09:00
Author: https://github.com/petelliott
Commit: 7907df7617
Pull-request: https://github.com/SerenityOS/serenity/pull/3569
4 changed files with 4 additions and 15 deletions
|
@ -221,7 +221,7 @@ int main(int argc, char** argv)
|
|||
textbox_vert2_container.layout()->set_margins({ 1, 12, 1, 4 });
|
||||
|
||||
auto& textbox1 = textbox_vert1_container.add<GUI::TextBox>();
|
||||
textbox1.set_text("Editable");
|
||||
textbox1.set_placeholder("Editable");
|
||||
auto& textbox2 = textbox_vert1_container.add<GUI::TextBox>();
|
||||
textbox2.set_text("Disabled");
|
||||
textbox2.set_enabled(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue