mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
MailSettings: Set icons from GML
This commit is contained in:
parent
3ee32b6dbf
commit
362df5b6dd
2 changed files with 4 additions and 8 deletions
|
@ -44,12 +44,6 @@ MailSettingsWidget::MailSettingsWidget()
|
||||||
|
|
||||||
load_from_gml(mail_settings_widget_gml);
|
load_from_gml(mail_settings_widget_gml);
|
||||||
|
|
||||||
auto& server_settings_image_label = *find_descendant_of_type_named<GUI::Label>("server_settings_image_label");
|
|
||||||
server_settings_image_label.set_icon(Gfx::Bitmap::try_load_from_file("/res/graphics/mail-server-settings.png").release_value_but_fixme_should_propagate_errors());
|
|
||||||
|
|
||||||
auto& user_settings_image_label = *find_descendant_of_type_named<GUI::Label>("user_settings_image_label");
|
|
||||||
user_settings_image_label.set_icon(Gfx::Bitmap::try_load_from_file("/res/graphics/mail-user-settings.png").release_value_but_fixme_should_propagate_errors());
|
|
||||||
|
|
||||||
m_server_inputbox = *find_descendant_of_type_named<GUI::TextBox>("server_input");
|
m_server_inputbox = *find_descendant_of_type_named<GUI::TextBox>("server_input");
|
||||||
m_server_inputbox->set_text(Config::read_string("Mail", "Connection", "Server", ""));
|
m_server_inputbox->set_text(Config::read_string("Mail", "Connection", "Server", ""));
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
@GUI::Label {
|
@GUI::Label {
|
||||||
fixed_width: 32
|
fixed_width: 32
|
||||||
fixed_height: 32
|
fixed_height: 32
|
||||||
name: "server_settings_image_label"
|
icon: "/res/graphics/mail-server-settings.png"
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Label {
|
@GUI::Label {
|
||||||
|
@ -52,6 +52,7 @@
|
||||||
name: "server_input"
|
name: "server_input"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
layout: @GUI::HorizontalBoxLayout {
|
layout: @GUI::HorizontalBoxLayout {
|
||||||
spacing: 16
|
spacing: 16
|
||||||
|
@ -72,6 +73,7 @@
|
||||||
name: "port_input"
|
name: "port_input"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
layout: @GUI::HorizontalBoxLayout {
|
layout: @GUI::HorizontalBoxLayout {
|
||||||
spacing: 16
|
spacing: 16
|
||||||
|
@ -105,7 +107,7 @@
|
||||||
@GUI::Label {
|
@GUI::Label {
|
||||||
fixed_width: 32
|
fixed_width: 32
|
||||||
fixed_height: 32
|
fixed_height: 32
|
||||||
name: "user_settings_image_label"
|
icon: "/res/graphics/mail-user-settings.png"
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Label {
|
@GUI::Label {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue