A Swiss Army knife for developers.
C# blazorcross-platformcsharpdesktopdesktop-appdesktop-applicationdeveloper-toolsextensiblefluentfluent-designlinuxmacosmicasyntax-highlightingtypescriptwindowswindows-10windows-11winui
Credit DevToysMac author in Settings (#1074)
Etienne Baudoux0eba921132f3
diff --git a/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/Settings.Designer.cs b/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/Settings.Designer.csindex bf82939b0..b2d98184e 100644--- a/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/Settings.Designer.cs+++ b/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/Settings.Designer.cs@@ -159,6 +159,15 @@ namespace DevToys.Blazor.BuiltInTools.Settings {}}+ /// <summary>+ /// Looks up a localized string similar to {0} for starting DevToysMac development.+ /// </summary>+ internal static string DevToysMac {+ get {+ return ResourceManager.GetString("DevToysMac", resourceCulture);+ }+ }+/// <summary>/// Looks up a localized string similar to Editing./// </summary>@@ -250,7 +259,7 @@ namespace DevToys.Blazor.BuiltInTools.Settings {}/// <summary>- /// Looks up a localized string similar to App icon designed by {0}.+ /// Looks up a localized string similar to {0} for designing the app icon./// </summary>internal static string IconDesigner {get {@@ -393,6 +402,15 @@ namespace DevToys.Blazor.BuiltInTools.Settings {}}+ /// <summary>+ /// Looks up a localized string similar to Special thanks to.+ /// </summary>+ internal static string SpecialThanks {+ get {+ return ResourceManager.GetString("SpecialThanks", resourceCulture);+ }+ }+/// <summary>/// Looks up a localized string similar to Text editor./// </summary>diff --git a/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/Settings.resx b/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/Settings.resxindex 86a0f5758..a2350363b 100644--- a/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/Settings.resx+++ b/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/Settings.resx@@ -150,6 +150,10 @@<data name="Description" xml:space="preserve"><value>Customize DevToys look & feel</value></data>+ <data name="DevToysMac" xml:space="preserve">+ <value>{0} for starting DevToysMac development</value>+ <comment>{0} will be replaced by a name</comment>+ </data><data name="Editing" xml:space="preserve"><value>Editing</value></data>@@ -181,7 +185,7 @@<value>Higlight the current line</value></data><data name="IconDesigner" xml:space="preserve">- <value>App icon designed by {0}</value>+ <value>{0} for designing the app icon</value><comment>{0} will be replaced by a name</comment></data><data name="Language" xml:space="preserve">@@ -229,6 +233,9 @@<data name="SmartDetectionPaste" xml:space="preserve"><value>Automatically paste the clipboard content when selecting a recommended tool</value></data>+ <data name="SpecialThanks" xml:space="preserve">+ <value>Special thanks to</value>+ </data><data name="TextEditor" xml:space="preserve"><value>Text editor</value></data>diff --git a/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/SettingsGuiTool.cs b/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/SettingsGuiTool.csindex ca7da69e1..63441acd4 100644--- a/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/SettingsGuiTool.cs+++ b/src/app/dev/DevToys.Blazor/BuiltInTools/Settings/SettingsGuiTool.cs@@ -223,12 +223,21 @@ internal sealed class SettingsGuiTool : IGuiToolStack().Vertical().WithChildren(+ Label()+ .Style(UILabelStyle.BodyStrong)+ .Text(Settings.SpecialThanks),Button("logo-designer").HyperlinkAppearance().AlignHorizontally(UIHorizontalAlignment.Left).Text(string.Format(Settings.IconDesigner, "Zee-Al-Eid Ahmad"))- .OnClick(OnLogoDesignerButtonClick))))));+ .OnClick(OnLogoDesignerButtonClick),++ Button("devtoysmac")+ .HyperlinkAppearance()+ .AlignHorizontally(UIHorizontalAlignment.Left)+ .Text(string.Format(Settings.DevToysMac, "ObuchiYuki"))+ .OnClick(OnDevToysMacAuthorButtonClick))))));public void OnDataReceived(string dataTypeName, object? parsedData){@@ -349,4 +358,9 @@ internal sealed class SettingsGuiTool : IGuiTool{OSHelper.OpenFileInShell("https://twitter.com/zeealeid");}++ private void OnDevToysMacAuthorButtonClick()+ {+ OSHelper.OpenFileInShell("https://twitter.com/obuchi_yuki");+ }}