-
Notifications
You must be signed in to change notification settings - Fork 0
/
ToolbarForm.Designer.cs
202 lines (184 loc) · 8.98 KB
/
ToolbarForm.Designer.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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using Win11Toolbar.Core;
using Button = System.Windows.Forms.Button;
using ListView = System.Windows.Forms.ListView;
namespace Win11Toolbar
{
partial class ToobarForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
//private System.Drawing.Color darkGrey = System.Drawing.Color.FromArgb(41, 48, 53);
//private System.Drawing.Color lightGrey = System.Drawing.Color.FromArgb(56, 64, 69);
//private System.Drawing.Color lightGrey = System.Drawing.Color.FromArgb(41, 48, 53);
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ToobarForm));
//this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
this.InternalFlowPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.InternalFlowPanel2 = new System.Windows.Forms.FlowLayoutPanel();
this.TabButton1 = new System.Windows.Forms.Label();
this.TabButton2 = new System.Windows.Forms.Label();
this.SettingsButton = new System.Windows.Forms.PictureBox();
this.Tab1ListView = new System.Windows.Forms.ListView();
this.BackgroundPanel = new System.Windows.Forms.Panel();
this.BackgroundPanel.SuspendLayout();
this.SuspendLayout();
/*
//
// notifyIcon
//
this.notifyIcon.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Warning;
this.notifyIcon.BalloonTipText = "Text";
this.notifyIcon.BalloonTipTitle = "title";
this.notifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon.Icon")));
this.notifyIcon.Text = "notifyIcon1";
this.notifyIcon.Visible = true;
this.notifyIcon.Click += notifyIcon_Click;
*/
//
// SettingsButton
//
this.SettingsButton.Location = new System.Drawing.Point(200, 0);
this.SettingsButton.Name = "SettingsButton";
this.SettingsButton.Size = new System.Drawing.Size(20, 20);
this.SettingsButton.TabIndex = 0;
this.SettingsButton.TabStop = false;
this.SettingsButton.Image = Utilities.Resize(global::Win11Toolbar.Properties.Resources.Settings, new Size(16, 16));
this.SettingsButton.Click += SettingsButton_Click;
//
// TabButton1
//
this.TabButton1.Location = new System.Drawing.Point(0, 0);
this.TabButton1.Size = new System.Drawing.Size(30, 20);
this.TabButton1.AutoSize = false;
this.TabButton1.ForeColor = System.Drawing.Color.FromArgb(156, 164, 169);
this.TabButton1.Name = "TabButton1";
this.TabButton1.TabIndex = 1;
this.TabButton1.Text = "1";
this.TabButton1.TextAlign = ContentAlignment.MiddleCenter;
//this.TabButton1.BackColor = Color.Blue;
this.TabButton1.Click += TabButton_Click;
this.TabButton1.Paint += TabButton_Paint;
//
// TabButton2
//
this.TabButton2.Location = new System.Drawing.Point(30, 0);
this.TabButton2.Size = new System.Drawing.Size(30, 20);
this.TabButton2.AutoSize = false;
this.TabButton2.ForeColor = System.Drawing.Color.FromArgb(156, 164, 169);
this.TabButton2.Name = "TabButton2";
this.TabButton2.TabIndex = 2;
this.TabButton2.Text = "2";
this.TabButton2.TextAlign = ContentAlignment.MiddleCenter;
this.TabButton2.Click += TabButton_Click;
this.TabButton2.Paint += TabButton_Paint;
/*
string[] paths = ConfigManager.Instance.ToolbarPaths;
int _tabStartPoint = 5;
int _tabWidth = 25;
int _index = 1;
foreach ( string path in paths )
{
//
// Create Panel
this.InternalFlowPanel1.BackColor = Theme.Background;
this.InternalFlowPanel1.Location = new System.Drawing.Point(5, 25);
this.InternalFlowPanel1.Name = $"InternalFlowPanel{_index}";
_tabStartPoint += _tabWidth
}
*/
//
// InternalFlowPanel1
//
this.InternalFlowPanel1.BackColor = Theme.Background;
this.InternalFlowPanel1.Location = new System.Drawing.Point(3, 25);
this.InternalFlowPanel1.Name = "InternalFlowPanel1";
//this.InternalFlowPanel1.Size = new System.Drawing.Size(215, 130);
this.InternalFlowPanel1.TabIndex = 0;
//
// InternalFlowPanel2
//
this.InternalFlowPanel2.BackColor = Theme.Background;
this.InternalFlowPanel2.BackColor = Color.LimeGreen;
this.InternalFlowPanel2.Location = new System.Drawing.Point(3, 25);
this.InternalFlowPanel2.Name = "InternalFlowPanel2";
//this.InternalFlowPanel2.Size = new System.Drawing.Size(215, 130);
this.InternalFlowPanel2.TabIndex = 0;
this.InternalFlowPanel2.Hide();
// v3.0
TabManager.Instance.MainPanel = this.BackgroundPanel;
//TabManager.Instance.AddTab(@"C:\Users\user\Desktop\Folder1");
//TabManager.Instance.AddTab(@"C:\Users\user\Desktop\Folder2");
//TabManager.Instance.ActiveTab = this.TabButton1.Name;
int PanelHeightOffset = TabManager.Instance.MaxHeight - 130;
int PanelWidthOffset = TabManager.Instance.MaxWidth - 215;
this.InternalFlowPanel1.Size = new System.Drawing.Size(215 + PanelWidthOffset, 130 + PanelHeightOffset);
this.InternalFlowPanel2.Size = new System.Drawing.Size(215 + PanelWidthOffset, 130 + PanelHeightOffset);
this.SettingsButton.Location = new System.Drawing.Point(TabManager.Instance.MaxWidth-36, 3);
//
// BackgroundPanel
//
this.BackgroundPanel.BackColor = Theme.Background;
//this.BackgroundPanel.BackColor = Color.OliveDrab;
//this.BackgroundPanel.Controls.Add(this.TabButton1);
//this.BackgroundPanel.Controls.Add(this.TabButton2);
this.BackgroundPanel.Controls.Add(this.SettingsButton);
this.BackgroundPanel.Controls.Add(this.InternalFlowPanel1);
//this.BackgroundPanel.Controls.Add(this.InternalFlowPanel2);
this.BackgroundPanel.Location = new System.Drawing.Point(7, 5);
this.BackgroundPanel.Name = "BackgroundPanel";
this.BackgroundPanel.Size = new System.Drawing.Size(195 + PanelWidthOffset, 145 + PanelHeightOffset);
this.BackgroundPanel.TabIndex = 1;
//
// ToolbarForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Fuchsia;
this.TransparencyKey = System.Drawing.Color.Fuchsia;
this.ClientSize = new System.Drawing.Size(TabManager.Instance.MaxWidth + 5, TabManager.Instance.MaxHeight + 35);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "ToobarForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Location = new Point(-1000, -1000);
this.Text = "ToobarForm";
this.TopMost = true;
this.Controls.Add(this.BackgroundPanel);
this.Icon = Win11Toolbar.Properties.Resources.favicon2;
this.Paint += MainWindow_Paint;
this.BackgroundPanel.ResumeLayout(false);
this.ResumeLayout(false);
}
//private NotifyIcon notifyIcon;
private FlowLayoutPanel InternalFlowPanel1;
private FlowLayoutPanel InternalFlowPanel2;
private Label TabButton1;
private Label TabButton2;
private Panel BackgroundPanel;
private PictureBox SettingsButton;
private ListView Tab1ListView;
}
}