-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTickerOverlayForm.Designer.cs
More file actions
109 lines (97 loc) · 4.03 KB
/
Copy pathTickerOverlayForm.Designer.cs
File metadata and controls
109 lines (97 loc) · 4.03 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace NaturalCommands
{
public partial class TickerOverlayForm
{
private IContainer components;
private Label _labelMessage;
private Label _labelCounter;
private Button _buttonPrev;
private Button _buttonNext;
private Button _buttonDismiss;
private Panel _accentBar;
private void InitializeComponent()
{
components = new Container();
_labelMessage = new Label();
_labelCounter = new Label();
_buttonPrev = new Button();
_buttonNext = new Button();
_buttonDismiss = new Button();
_accentBar = new Panel();
SuspendLayout();
// _accentBar
_accentBar.BackColor = Color.SteelBlue;
_accentBar.Location = new Point(0, 0);
_accentBar.Size = new Size(8, 140);
// _labelMessage
_labelMessage.AutoSize = false;
_labelMessage.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
_labelMessage.ForeColor = Color.White;
_labelMessage.Location = new Point(14, 12);
_labelMessage.Size = new Size(850, 60);
_labelMessage.TextAlign = ContentAlignment.TopLeft;
// _labelCounter
_labelCounter.AutoSize = true;
_labelCounter.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
_labelCounter.ForeColor = Color.WhiteSmoke;
_labelCounter.Location = new Point(14, 75);
_labelCounter.Size = new Size(60, 20);
// _buttonPrev
_buttonPrev.FlatStyle = FlatStyle.Flat;
_buttonPrev.Font = new Font("Segoe UI", 10F, FontStyle.Regular, GraphicsUnit.Point);
_buttonPrev.ForeColor = Color.White;
_buttonPrev.BackColor = Color.FromArgb(64, 64, 64);
_buttonPrev.Location = new Point(880, 50);
_buttonPrev.Size = new Size(100, 35);
_buttonPrev.Text = "&Previous";
_buttonPrev.TabStop = true;
// _buttonNext
_buttonNext.FlatStyle = FlatStyle.Flat;
_buttonNext.Font = new Font("Segoe UI", 10F, FontStyle.Regular, GraphicsUnit.Point);
_buttonNext.ForeColor = Color.White;
_buttonNext.BackColor = Color.FromArgb(64, 64, 64);
_buttonNext.Location = new Point(985, 50);
_buttonNext.Size = new Size(100, 35);
_buttonNext.Text = "&Next";
_buttonNext.TabStop = true;
// _buttonDismiss
_buttonDismiss.FlatStyle = FlatStyle.Flat;
_buttonDismiss.Font = new Font("Segoe UI", 10F, FontStyle.Bold, GraphicsUnit.Point);
_buttonDismiss.ForeColor = Color.White;
_buttonDismiss.BackColor = Color.FromArgb(244, 67, 54);
_buttonDismiss.Location = new Point(1090, 50);
_buttonDismiss.Size = new Size(100, 35);
_buttonDismiss.Text = "&Dismiss";
_buttonDismiss.TabStop = true;
// TickerOverlayForm
AutoScaleMode = AutoScaleMode.None;
BackColor = Color.FromArgb(30, 30, 30);
ClientSize = new Size(1195, 140);
Controls.Add(_accentBar);
Controls.Add(_labelMessage);
Controls.Add(_labelCounter);
Controls.Add(_buttonPrev);
Controls.Add(_buttonNext);
Controls.Add(_buttonDismiss);
DoubleBuffered = true;
FormBorderStyle = FormBorderStyle.None;
Name = "TickerOverlayForm";
ShowInTaskbar = false;
StartPosition = FormStartPosition.Manual;
TopMost = true;
ResumeLayout(false);
PerformLayout();
}
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
}
}