This repository was archived by the owner on Sep 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm2.cs
More file actions
85 lines (75 loc) · 2.53 KB
/
Form2.cs
File metadata and controls
85 lines (75 loc) · 2.53 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace Process_Digger
{
public partial class FormInfo : Form
{
public FormInfo()
{
InitializeComponent();
}
private void FormInfo_Load(object sender, System.EventArgs e)
{
this.TopMost = Properties.Settings.Default.topMost;
setTheme();
}
void setTheme()
{
switch (Properties.Settings.Default.theme)
{
case 0: //авто
{
try
{
RegistryKey lightThemeStatus = Registry.CurrentUser.OpenSubKey("SOFTWARE").OpenSubKey("Microsoft").OpenSubKey("Windows").OpenSubKey("CurrentVersion").OpenSubKey("Themes").OpenSubKey("Personalize");
if (Convert.ToInt32(lightThemeStatus.GetValue("AppsUseLightTheme")) == 0)
{
setDarkTheme();
}
}
catch { }
break;
}
case 2: //темная
{
setDarkTheme();
break;
}
case 3: //черная(AMOLED)
{
break;
}
}
}
void setDarkTheme()
{
this.BackColor = Color.FromArgb(25, 25, 25);
labelNameProgram.ForeColor = Color.White;
labelNameDeveloper.ForeColor = Color.White;
labelDescription.ForeColor = Color.White;
pictureGH.Image = Properties.Resources.icon_GHLight;
pictureNAB.Image = Properties.Resources.icon_NABLight;
btnOk.ForeColor = Color.White;
btnOk.BackColor = Color.FromArgb(32, 32, 32);
}
private void btnOk_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void pictureTG_Click(object sender, System.EventArgs e)
{
Process.Start("https://t.me/FRAMEDEV");
}
private void pictureGH_Click(object sender, System.EventArgs e)
{
Process.Start("https://github.com/Okronix");
}
private void pictureNAB_Click(object sender, System.EventArgs e)
{
Process.Start("https://notabug.org/Okronix");
}
}
}