-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathActivityRow.cs
39 lines (38 loc) · 1.14 KB
/
ActivityRow.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
using System;
using System.Drawing;
using System.Windows.Forms;
namespace Instagram
{
public partial class ActivityRow : Form
{
bool lightModeOn;
public ActivityRow(bool lightModeOn)
{
InitializeComponent();
this.lightModeOn = lightModeOn;
Configure_Theme();
}
private void Configure_Theme()
{
Color backColor, textColor, barColor;
if (lightModeOn)
{
backColor = Color.FromArgb(242, 242, 242);
textColor = Color.FromArgb(0, 0, 0);
barColor = Color.FromArgb(209, 209, 209);
}
else
{
backColor = Color.FromArgb(43, 43, 43);
textColor = Color.FromArgb(255, 255, 255);
barColor = Color.FromArgb(31, 31, 31);
}
this.BackColor = backColor;
userNameLabel.ForeColor = textColor;
topBar.BackColor = barColor;
bottomBar.BackColor = barColor;
activityLabel.ForeColor = textColor;
timeLabel.ForeColor = textColor;
}
}
}