Skip to content

Commit

Permalink
Add Icon feature to material forms
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed Aug 26, 2017
1 parent 77de3ab commit bd5bbe6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions MaterialSkin/Controls/MaterialForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ protected override void OnPaint(PaintEventArgs e)

//Form title
g.DrawString(Text, SkinManager.NazanintarMedium13, SkinManager.ColorScheme.TextBrush, new Rectangle(SkinManager.FormPadding, StatusBarHeight, Width - 30, ActionBarHeight), new StringFormat { LineAlignment = StringAlignment.Center, Alignment = StringAlignment.Far });

if(ShowIcon)
g.DrawIconUnstretched(Icon, new Rectangle(5, 30, 50, 50));
}

#endregion
Expand Down
4 changes: 2 additions & 2 deletions MaterialSkin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.2.0")]
[assembly: AssemblyFileVersion("2.0.2.0")]
[assembly: AssemblyVersion("2.0.3.0")]
[assembly: AssemblyFileVersion("2.0.3.0")]
Binary file modified Solution Items/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bd5bbe6

Please sign in to comment.