mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:47:35 +00:00
Userland: Set Button text using the new String class
This commit is contained in:
parent
b5cb9a9ebb
commit
e39adc4772
49 changed files with 134 additions and 127 deletions
|
@ -203,7 +203,7 @@ GUI::Widget* GradientTool::get_properties_widget()
|
|||
auto& button_container_layout = button_container.set_layout<GUI::HorizontalBoxLayout>();
|
||||
button_container_layout.add_spacer();
|
||||
|
||||
auto& apply_button = button_container.add<GUI::DialogButton>("Apply");
|
||||
auto& apply_button = button_container.add<GUI::DialogButton>(String::from_utf8_short_string("Apply"sv));
|
||||
apply_button.on_click = [this](auto) {
|
||||
rasterize_gradient();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue