From 4c9933bfb701c43a2f9aeadf8d06398fd6327749 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Sat, 29 Apr 2023 10:42:04 -0400 Subject: LibGUI: Remove Label icons and replace instances with ImageWidget These icons are a relic of GLabel and were never implemented to accomodate both image and text. This convenience can always be added in the future, but no current instance assumes or needs it, so let's replace them all with ImageWidget to show clearer intent. --- Userland/Libraries/LibGUI/PasswordInputDialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibGUI/PasswordInputDialog.cpp') diff --git a/Userland/Libraries/LibGUI/PasswordInputDialog.cpp b/Userland/Libraries/LibGUI/PasswordInputDialog.cpp index ee046d9546..106aa39d97 100644 --- a/Userland/Libraries/LibGUI/PasswordInputDialog.cpp +++ b/Userland/Libraries/LibGUI/PasswordInputDialog.cpp @@ -6,6 +6,7 @@ */ #include +#include #include #include #include @@ -25,9 +26,9 @@ PasswordInputDialog::PasswordInputDialog(Window* parent_window, DeprecatedString auto widget = set_main_widget().release_value_but_fixme_should_propagate_errors(); widget->load_from_gml(password_input_dialog_gml).release_value_but_fixme_should_propagate_errors(); - auto& key_icon_label = *widget->find_descendant_of_type_named("key_icon_label"); + auto& key_icon = *widget->find_descendant_of_type_named("key_icon"); - key_icon_label.set_icon(Gfx::Bitmap::load_from_file("/res/icons/32x32/key.png"sv).release_value_but_fixme_should_propagate_errors()); + key_icon.set_bitmap(Gfx::Bitmap::load_from_file("/res/icons/32x32/key.png"sv).release_value_but_fixme_should_propagate_errors()); auto& server_label = *widget->find_descendant_of_type_named("server_label"); server_label.set_text(String::from_deprecated_string(server).release_value_but_fixme_should_propagate_errors()); -- cgit v1.2.3