Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credit DevToysMac author in Settings #1074

Merged
merged 1 commit into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@
<data name="Description" xml:space="preserve">
<value>Customize DevToys look &amp; 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>
Expand Down Expand Up @@ -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">
Expand Down Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,21 @@ public UIToolView View
Stack()
.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)
{
Expand Down Expand Up @@ -349,4 +358,9 @@ private void OnLogoDesignerButtonClick()
{
OSHelper.OpenFileInShell("https://twitter.com/zeealeid");
}

private void OnDevToysMacAuthorButtonClick()
{
OSHelper.OpenFileInShell("https://twitter.com/obuchi_yuki");
}
}