Skip to content

Commit

Permalink
Issue crc-org#10 Misc fixes for about window
Browse files Browse the repository at this point in the history
	- remove ':' as per patternfly convention
	- Add font awesome external link icon
	- Add tray repository link
  • Loading branch information
anjannath committed Aug 21, 2020
1 parent 498b7b3 commit a3e0d73
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 53 deletions.
152 changes: 104 additions & 48 deletions AboutForm.Designer.cs

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

10 changes: 5 additions & 5 deletions AboutForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ private void AboutForm_FormClosing(object sender, FormClosingEventArgs e)
e.Cancel = true; // this cancels the close event.
}

private void TrayGHRepoLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("https://github.com/code-ready/tray-windows");
}

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
var crcVersionWithGitSha = version.CrcVersion.Split('+');
var v = crcVersionWithGitSha[0].Substring(0, crcVersionWithGitSha[0].Length - 2);
var docsUrl = string.Format("https://access.redhat.com/documentation/en-us/red_hat_codeready_containers/{0}/", v);
System.Diagnostics.Process.Start(docsUrl);
}

private void linkLabel2_LinkClicked_1(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("https://github.com/code-ready/tray-windows");
}
}
}
10 changes: 10 additions & 0 deletions Resource.Designer.cs

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

3 changes: 3 additions & 0 deletions Resource.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@
<data name="crc-logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\Logo-Red_Hat-CodeReady_Containers-B-Standard-RGB.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="external_link" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\external-link.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="gh-icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\iconfinder_mark-github_298822.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand Down
Binary file added Resources/external-link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions tray-windows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@
<ItemGroup>
<None Include="README.md" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\external-link-square-alt.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\external-link.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
Expand Down

0 comments on commit a3e0d73

Please sign in to comment.