Default icons for email providers

This commit is contained in:
Ben Olden-Cooligan 2018-08-07 18:28:25 -04:00
parent dbe64f20cb
commit f007c6713d
6 changed files with 31 additions and 2 deletions

View File

@ -420,6 +420,16 @@ namespace NAPS2 {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap email_setting {
get {
object obj = ResourceManager.GetObject("email_setting", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@ -490,6 +500,16 @@ namespace NAPS2 {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap mail_yellow {
get {
object obj = ResourceManager.GetObject("mail_yellow", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View File

@ -328,4 +328,10 @@
<data name="outlookweb" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\outlookweb.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="email_setting" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\email_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="mail_yellow" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\mail_yellow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -5275,10 +5275,13 @@
<Content Include="Icons\contrast_with_sun.ico" />
<Content Include="Icons\control_play_blue-small.png" />
<Content Include="Icons\email.ico" />
<None Include="Icons\email.png" />
<None Include="Icons\email_setting.png" />
<Content Include="Icons\file_extension_pdf.ico" />
<None Include="Icons\gmail.png" />
<Content Include="Icons\image_edit.png" />
<None Include="Icons\outlookweb.png" />
<None Include="Icons\mail_yellow.png" />
<Content Include="Icons\picture.ico" />
<Content Include="Icons\pictures.png" />
<Content Include="Icons\picture_edit.png" />

View File

@ -43,7 +43,7 @@ namespace NAPS2.WinForms
providerWidgets.Add(new EmailProviderWidget
{
ProviderType = EmailProviderType.System,
ProviderIcon = systemEmailClients.GetIcon(clientName),
ProviderIcon = systemEmailClients.GetIcon(clientName) ?? Icons.mail_yellow,
ProviderName = clientName,
ClickAction = () => ChooseSystem(clientName)
});
@ -74,7 +74,7 @@ namespace NAPS2.WinForms
providerWidgets.Add(new EmailProviderWidget
{
ProviderType = EmailProviderType.CustomSmtp,
ProviderIcon = null,
ProviderIcon = Icons.email_setting,
ProviderName = EmailProviderType.CustomSmtp.Description(),
ClickAction = ChooseCustomSmtp
});