This repository was archived by the owner on Jan 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAbout.cs
63 lines (57 loc) · 2.59 KB
/
About.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
using System;
using System.Drawing;
using System.Windows.Forms;
using System.IO;
using System.Net;
using System.Threading;
using SharpCompress.Archives;
using SharpCompress.Readers;
using System.Diagnostics;
namespace EEditor
{
public partial class About : Form
{
MainForm Frm1;
public About(MainForm F)
{
InitializeComponent();
this.Text = "About EBEditor " + this.ProductVersion;
Frm1 = F;
}
private void About_Load(object sender, EventArgs e)
{
this.ForeColor = MainForm.themecolors.foreground;
this.BackColor = MainForm.themecolors.background;
for (int i = 0; i < this.Controls.Count; i++)
{
if (this.Controls[i].GetType() == typeof(GroupBox))
{
this.Controls[i].ForeColor = MainForm.themecolors.groupbox;
for (int a = 0; a < this.Controls[i].Controls.Count; a++)
{
if (this.Controls[i].Controls[a].GetType() == typeof(Label))
{
this.Controls[i].Controls[a].ForeColor = MainForm.themecolors.foreground;
this.Controls[i].Controls[a].BackColor = MainForm.themecolors.background;
}
if (this.Controls[i].Controls[a].GetType() == typeof(LinkLabel))
{
((LinkLabel)this.Controls[i].Controls[a]).ForeColor = MainForm.themecolors.foreground;
((LinkLabel)this.Controls[i].Controls[a]).BackColor = MainForm.themecolors.background;
((LinkLabel)this.Controls[i].Controls[a]).LinkColor = MainForm.themecolors.link;
((LinkLabel)this.Controls[i].Controls[a]).VisitedLinkColor = MainForm.themecolors.visitedlink;
((LinkLabel)this.Controls[i].Controls[a]).ActiveLinkColor = MainForm.themecolors.activelink;
}
if (this.Controls[i].Controls[a].GetType() == typeof(Button))
{
((Button)this.Controls[i].Controls[a]).ForeColor = MainForm.themecolors.foreground;
((Button)this.Controls[i].Controls[a]).BackColor = MainForm.themecolors.accent;
((Button)this.Controls[i].Controls[a]).FlatStyle = FlatStyle.Flat;
}
}
}
//if (this.Controls[i].name)
}
}
}
}