diff options
| author | lempamo <[email protected]> | 2017-11-15 19:23:40 -0500 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-11-15 19:23:40 -0500 |
| commit | 6a100bc8794d0e7313868a4b7082d9475117617c (patch) | |
| tree | fee0b0fdc91f65e3214cc9bb286c31cc3281339f /Histacom2.Engine/Template/WinClassic.cs | |
| parent | 3f03fdb36c72812ec7b899ba533260b06286de55 (diff) | |
| download | histacom2-6a100bc8794d0e7313868a4b7082d9475117617c.tar.gz histacom2-6a100bc8794d0e7313868a4b7082d9475117617c.tar.bz2 histacom2-6a100bc8794d0e7313868a4b7082d9475117617c.zip | |
added in gradient top bar to winclassic
Diffstat (limited to 'Histacom2.Engine/Template/WinClassic.cs')
| -rw-r--r-- | Histacom2.Engine/Template/WinClassic.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Histacom2.Engine/Template/WinClassic.cs b/Histacom2.Engine/Template/WinClassic.cs index c911af3..ae1d361 100644 --- a/Histacom2.Engine/Template/WinClassic.cs +++ b/Histacom2.Engine/Template/WinClassic.cs @@ -1,5 +1,6 @@ using System; using System.Drawing; +using System.Drawing.Drawing2D; using System.Runtime.InteropServices; using System.Windows.Forms; @@ -335,6 +336,21 @@ namespace Histacom2.Engine.Template Hide(); } + private void programtopbar_Paint(object sender, PaintEventArgs e) + { + var gfx = e.Graphics; + if (isActive) + { + if (SaveSystem.currentTheme.activeTitleBarColor2 == null) return; + gfx.FillRectangle(new LinearGradientBrush(programtopbar.ClientRectangle, SaveSystem.currentTheme.activeTitleBarColor, SaveSystem.currentTheme.activeTitleBarColor2, 0.0), programtopbar.ClientRectangle); + } + else + { + if (SaveSystem.currentTheme.inactiveTitleBarColor2 == null) return; + gfx.FillRectangle(new LinearGradientBrush(programtopbar.ClientRectangle, SaveSystem.currentTheme.inactiveTitleBarColor, SaveSystem.currentTheme.inactiveTitleBarColor2, 0.0), programtopbar.ClientRectangle); + } + } + public Size prevSize; public Point prevPoint; private void maximizebutton_Click(object sender, EventArgs e) |
