diff options
| author | lempamo <[email protected]> | 2017-07-31 15:40:59 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-07-31 15:40:59 -0400 |
| commit | 10ae6bcf8fc9168bfda105de31b9525ec34d1b3d (patch) | |
| tree | 9e611a48e01a4f1655061103d88eae7eefd4f8fe /TimeHACK.Main | |
| parent | 93702450a4d0a1830807e985acccc616f3bf1b62 (diff) | |
| download | histacom2-10ae6bcf8fc9168bfda105de31b9525ec34d1b3d.tar.gz histacom2-10ae6bcf8fc9168bfda105de31b9525ec34d1b3d.tar.bz2 histacom2-10ae6bcf8fc9168bfda105de31b9525ec34d1b3d.zip | |
more themey things
Diffstat (limited to 'TimeHACK.Main')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs index 5534b3c..cfb9347 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs @@ -8,6 +8,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using TimeHACK.Engine; +using TimeHACK.Engine.Template; namespace TimeHACK.OS.Win95.Win95Apps { @@ -81,6 +82,21 @@ namespace TimeHACK.OS.Win95.Win95Apps TitleScreen.frm95.desktopicons.BackgroundImage = new Bitmap(Properties.Resources.ICTheme_BG, TitleScreen.frm95.Width, TitleScreen.frm95.Height); break; } + foreach (Form f in Application.OpenForms) + { + if (f is WinClassic) + { + if (((WinClassic)f).isActive) + { + ((WinClassic)f).programtopbar.BackColor = SaveSystem.currentTheme.activeTitleBarColor; + ((WinClassic)f).Title.ForeColor = SaveSystem.currentTheme.activeTitleTextColor; + } else + { + ((WinClassic)f).programtopbar.BackColor = SaveSystem.currentTheme.inactiveTitleBarColor; + ((WinClassic)f).Title.ForeColor = SaveSystem.currentTheme.inactiveTitleTextColor; + } + } + } } private void okButton_Click(object sender, EventArgs e) |
