Added specific icons for Godot and .NET settings

This commit is contained in:
Thorsten Sommer 2023-02-17 20:42:30 +01:00
parent cdb2dc80c2
commit e9b4fa1484
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
5 changed files with 32 additions and 6 deletions

View File

@ -441,7 +441,7 @@ public sealed partial class Setting : UserControl
var currentSetting = await AppSettings.GetGeneratorDotnetEnabled(); var currentSetting = await AppSettings.GetGeneratorDotnetEnabled();
var settingData = new SettingUIData( var settingData = new SettingUIData(
Icon: Icons.icons8_code_512, Icon: Icons.icons8_c_sharp_logo_svg,
SettingName: () => "Generator: .NET", SettingName: () => "Generator: .NET",
ChangeNeedsRestart: false, ChangeNeedsRestart: false,
SettingExplanation: () => "When enabled, .NET translation files are generated. Requires a .NET 7 or newer project.", SettingExplanation: () => "When enabled, .NET translation files are generated. Requires a .NET 7 or newer project.",
@ -469,7 +469,7 @@ public sealed partial class Setting : UserControl
var currentSetting = await AppSettings.GetGeneratorDotnetDestinationPath(); var currentSetting = await AppSettings.GetGeneratorDotnetDestinationPath();
var settingData = new SettingUIData( var settingData = new SettingUIData(
Icon: Icons.icons8_code_512, Icon: Icons.icons8_c_sharp_logo_svg,
SettingName: () => "Generator: .NET Destination Path", SettingName: () => "Generator: .NET Destination Path",
ChangeNeedsRestart: false, ChangeNeedsRestart: false,
SettingExplanation: () => "The destination path for the .NET translation files. You might use environment variables like %USERPROFILE%.", SettingExplanation: () => "The destination path for the .NET translation files. You might use environment variables like %USERPROFILE%.",
@ -528,7 +528,7 @@ public sealed partial class Setting : UserControl
var currentSetting = await AppSettings.GetGeneratorDotnetNamespace(); var currentSetting = await AppSettings.GetGeneratorDotnetNamespace();
var settingData = new SettingUIData( var settingData = new SettingUIData(
Icon: Icons.icons8_code_512, Icon: Icons.icons8_c_sharp_logo_svg,
SettingName: () => "Generator: .NET Namespace", SettingName: () => "Generator: .NET Namespace",
ChangeNeedsRestart: false, ChangeNeedsRestart: false,
SettingExplanation: () => "The namespace for the .NET I18N files.", SettingExplanation: () => "The namespace for the .NET I18N files.",
@ -560,7 +560,7 @@ public sealed partial class Setting : UserControl
// Attention: We have to store the culture's index, because the index is not // Attention: We have to store the culture's index, because the index is not
// continuous and can change when the user adds or removes a culture! // continuous and can change when the user adds or removes a culture!
var settingData = new SettingUIData( var settingData = new SettingUIData(
Icon: Icons.icons8_code_512, Icon: Icons.icons8_c_sharp_logo_svg,
SettingName: () => "Generator: .NET Default Culture", SettingName: () => "Generator: .NET Default Culture",
ChangeNeedsRestart: false, ChangeNeedsRestart: false,
SettingExplanation: () => "The default culture for the .NET, which is used when no culture is specified or available.", SettingExplanation: () => "The default culture for the .NET, which is used when no culture is specified or available.",
@ -604,7 +604,7 @@ public sealed partial class Setting : UserControl
var currentSetting = await AppSettings.GetGeneratorGodotEnabled(); var currentSetting = await AppSettings.GetGeneratorGodotEnabled();
var settingData = new SettingUIData( var settingData = new SettingUIData(
Icon: Icons.icons8_code_512, Icon: Icons.godot_icon,
SettingName: () => "Generator: Godot", SettingName: () => "Generator: Godot",
ChangeNeedsRestart: false, ChangeNeedsRestart: false,
SettingExplanation: () => "When enabled, Godot translation files are generated. Requires a Godot 3.5 or newer project.", SettingExplanation: () => "When enabled, Godot translation files are generated. Requires a Godot 3.5 or newer project.",
@ -632,7 +632,7 @@ public sealed partial class Setting : UserControl
var currentSetting = await AppSettings.GetGeneratorGodotDestinationPath(); var currentSetting = await AppSettings.GetGeneratorGodotDestinationPath();
var settingData = new SettingUIData( var settingData = new SettingUIData(
Icon: Icons.icons8_code_512, Icon: Icons.godot_icon,
SettingName: () => "Generator: Godot Destination Path", SettingName: () => "Generator: Godot Destination Path",
ChangeNeedsRestart: false, ChangeNeedsRestart: false,
SettingExplanation: () => "The destination path for the Godot translation files. You might use environment variables like %USERPROFILE%.", SettingExplanation: () => "The destination path for the Godot translation files. You might use environment variables like %USERPROFILE%.",

View File

@ -70,6 +70,16 @@ namespace UI_WinForms.Resources {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap godot_icon {
get {
object obj = ResourceManager.GetObject("godot_icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
@ -120,6 +130,16 @@ namespace UI_WinForms.Resources {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap icons8_c_sharp_logo_svg {
get {
object obj = ResourceManager.GetObject("icons8_c_sharp_logo_svg", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>

View File

@ -121,6 +121,9 @@
<data name="deepl_logo_icon_170284" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="deepl_logo_icon_170284" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>deepl_logo_icon_170284.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>deepl_logo_icon_170284.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="godot_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>godot-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icons8_add_folder_512" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8_add_folder_512" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons8-add-folder-512.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>icons8-add-folder-512.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@ -151,6 +154,9 @@
<data name="icons8_collectibles_512" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8_collectibles_512" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons8-collectibles-512.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>icons8-collectibles-512.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8_c_sharp_logo_svg" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons8-c-sharp-logo.svg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icons8_delete_folder_512" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8_delete_folder_512" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons8-delete-folder-512.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>icons8-delete-folder-512.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB