diff --git a/LinearAppLauncher.csproj b/LinearAppLauncher.csproj
index 0c8e3c8..070d176 100644
--- a/LinearAppLauncher.csproj
+++ b/LinearAppLauncher.csproj
@@ -66,6 +66,12 @@
HeadingPanel.cs
+
+ UserControl
+
+
+ TitlePanel.cs
+
MainForm.cs
@@ -82,6 +88,9 @@
HeadingPanel.cs
+
+ TitlePanel.cs
+
SettingsSingleFileGenerator
Settings.Designer.cs
@@ -93,8 +102,22 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
diff --git a/MainForm.Designer.cs b/MainForm.Designer.cs
index ebf74c2..44f4a6a 100644
--- a/MainForm.Designer.cs
+++ b/MainForm.Designer.cs
@@ -30,53 +30,54 @@
{
this.button1 = new System.Windows.Forms.Button();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
- this.panel1 = new System.Windows.Forms.Panel();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
- this.panel4 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
- this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.titlePanel1 = new AppLauncher.Windows.Forms.TitlePanel();
this.headingPanel1 = new AppLauncher.Windows.Forms.HeadingPanel();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.panel6 = new System.Windows.Forms.Panel();
+ this.panel7 = new System.Windows.Forms.Panel();
+ this.panel8 = new System.Windows.Forms.Panel();
+ this.panel9 = new System.Windows.Forms.Panel();
+ this.panel10 = new System.Windows.Forms.Panel();
+ this.panel11 = new System.Windows.Forms.Panel();
+ this.panel12 = new System.Windows.Forms.Panel();
+ this.panel13 = new System.Windows.Forms.Panel();
+ this.panel14 = new System.Windows.Forms.Panel();
+ this.panel15 = new System.Windows.Forms.Panel();
+ this.panel1 = new System.Windows.Forms.Panel();
this.flowLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// button1
//
- this.button1.Location = new System.Drawing.Point(12, 171);
+ this.button1.Location = new System.Drawing.Point(12, 359);
this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(120, 40);
+ this.button1.Size = new System.Drawing.Size(78, 40);
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
//
// richTextBox1
//
- this.richTextBox1.Location = new System.Drawing.Point(12, 217);
+ this.richTextBox1.Location = new System.Drawing.Point(573, 340);
this.richTextBox1.Name = "richTextBox1";
- this.richTextBox1.Size = new System.Drawing.Size(215, 211);
+ this.richTextBox1.Size = new System.Drawing.Size(215, 88);
this.richTextBox1.TabIndex = 2;
this.richTextBox1.Text = "";
//
- // panel1
- //
- this.panel1.BackColor = System.Drawing.Color.LightGray;
- this.panel1.Location = new System.Drawing.Point(157, 130);
- this.panel1.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(70, 70);
- this.panel1.TabIndex = 3;
- //
// flowLayoutPanel1
//
this.flowLayoutPanel1.Controls.Add(this.panel2);
this.flowLayoutPanel1.Controls.Add(this.panel3);
- this.flowLayoutPanel1.Controls.Add(this.panel4);
this.flowLayoutPanel1.Controls.Add(this.panel5);
this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
- this.flowLayoutPanel1.Location = new System.Drawing.Point(261, 143);
+ this.flowLayoutPanel1.Location = new System.Drawing.Point(557, 130);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
- this.flowLayoutPanel1.Size = new System.Drawing.Size(231, 238);
+ this.flowLayoutPanel1.Size = new System.Drawing.Size(231, 204);
this.flowLayoutPanel1.TabIndex = 6;
//
// panel2
@@ -97,15 +98,6 @@
this.panel3.Size = new System.Drawing.Size(70, 70);
this.panel3.TabIndex = 5;
//
- // panel4
- //
- this.panel4.BackColor = System.Drawing.Color.LightGray;
- this.panel4.Location = new System.Drawing.Point(3, 149);
- this.panel4.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
- this.panel4.Name = "panel4";
- this.panel4.Size = new System.Drawing.Size(70, 70);
- this.panel4.TabIndex = 6;
- //
// panel5
//
this.panel5.BackColor = System.Drawing.Color.LightGray;
@@ -115,28 +107,148 @@
this.panel5.Size = new System.Drawing.Size(70, 70);
this.panel5.TabIndex = 7;
//
- // tableLayoutPanel1
+ // titlePanel1
//
- this.tableLayoutPanel1.ColumnCount = 2;
- this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.Location = new System.Drawing.Point(535, 143);
- this.tableLayoutPanel1.Name = "tableLayoutPanel1";
- this.tableLayoutPanel1.RowCount = 2;
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.Size = new System.Drawing.Size(209, 247);
- this.tableLayoutPanel1.TabIndex = 7;
+ this.titlePanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.titlePanel1.Location = new System.Drawing.Point(0, 0);
+ this.titlePanel1.MinimumSize = new System.Drawing.Size(40, 40);
+ this.titlePanel1.Name = "titlePanel1";
+ this.titlePanel1.Size = new System.Drawing.Size(800, 40);
+ this.titlePanel1.TabIndex = 8;
+ this.titlePanel1.TitleText = "Launcher";
//
// headingPanel1
//
- this.headingPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.headingPanel1.Location = new System.Drawing.Point(0, 0);
- this.headingPanel1.MinimumSize = new System.Drawing.Size(40, 40);
+ this.headingPanel1.Checked = false;
+ this.headingPanel1.Location = new System.Drawing.Point(12, 64);
+ this.headingPanel1.MinimumSize = new System.Drawing.Size(100, 20);
this.headingPanel1.Name = "headingPanel1";
- this.headingPanel1.Size = new System.Drawing.Size(800, 40);
- this.headingPanel1.TabIndex = 8;
+ this.headingPanel1.Size = new System.Drawing.Size(600, 20);
+ this.headingPanel1.TabIndex = 9;
+ this.headingPanel1.TitleText = "Featured";
+ //
+ // panel4
+ //
+ this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
+ this.panel4.BackgroundImage = global::AppLauncher.Properties.Resources.mail_ea_32;
+ this.panel4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel4.Location = new System.Drawing.Point(87, 90);
+ this.panel4.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel4.Name = "panel4";
+ this.panel4.Size = new System.Drawing.Size(70, 70);
+ this.panel4.TabIndex = 10;
+ //
+ // panel6
+ //
+ this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
+ this.panel6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel6.Location = new System.Drawing.Point(233, 90);
+ this.panel6.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel6.Name = "panel6";
+ this.panel6.Size = new System.Drawing.Size(70, 70);
+ this.panel6.TabIndex = 12;
+ //
+ // panel7
+ //
+ this.panel7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
+ this.panel7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel7.Location = new System.Drawing.Point(160, 90);
+ this.panel7.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel7.Name = "panel7";
+ this.panel7.Size = new System.Drawing.Size(70, 70);
+ this.panel7.TabIndex = 11;
+ //
+ // panel8
+ //
+ this.panel8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
+ this.panel8.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel8.Location = new System.Drawing.Point(233, 163);
+ this.panel8.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel8.Name = "panel8";
+ this.panel8.Size = new System.Drawing.Size(70, 70);
+ this.panel8.TabIndex = 16;
+ //
+ // panel9
+ //
+ this.panel9.BackColor = System.Drawing.Color.White;
+ this.panel9.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel9.Location = new System.Drawing.Point(160, 163);
+ this.panel9.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel9.Name = "panel9";
+ this.panel9.Size = new System.Drawing.Size(70, 70);
+ this.panel9.TabIndex = 15;
+ //
+ // panel10
+ //
+ this.panel10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
+ this.panel10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel10.Location = new System.Drawing.Point(87, 163);
+ this.panel10.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel10.Name = "panel10";
+ this.panel10.Size = new System.Drawing.Size(70, 70);
+ this.panel10.TabIndex = 14;
+ //
+ // panel11
+ //
+ this.panel11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
+ this.panel11.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel11.Location = new System.Drawing.Point(14, 163);
+ this.panel11.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel11.Name = "panel11";
+ this.panel11.Size = new System.Drawing.Size(70, 70);
+ this.panel11.TabIndex = 13;
+ //
+ // panel12
+ //
+ this.panel12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
+ this.panel12.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel12.Location = new System.Drawing.Point(233, 236);
+ this.panel12.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel12.Name = "panel12";
+ this.panel12.Size = new System.Drawing.Size(70, 70);
+ this.panel12.TabIndex = 20;
+ //
+ // panel13
+ //
+ this.panel13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
+ this.panel13.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel13.Location = new System.Drawing.Point(160, 236);
+ this.panel13.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel13.Name = "panel13";
+ this.panel13.Size = new System.Drawing.Size(70, 70);
+ this.panel13.TabIndex = 19;
+ //
+ // panel14
+ //
+ this.panel14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
+ this.panel14.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel14.Location = new System.Drawing.Point(87, 236);
+ this.panel14.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel14.Name = "panel14";
+ this.panel14.Size = new System.Drawing.Size(70, 70);
+ this.panel14.TabIndex = 18;
+ //
+ // panel15
+ //
+ this.panel15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
+ this.panel15.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel15.Location = new System.Drawing.Point(14, 236);
+ this.panel15.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel15.Name = "panel15";
+ this.panel15.Size = new System.Drawing.Size(70, 70);
+ this.panel15.TabIndex = 17;
+ //
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(68)))), ((int)(((byte)(68)))));
+ this.panel1.BackgroundImage = global::AppLauncher.Properties.Resources.chrome_ea_32;
+ this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.panel1.Location = new System.Drawing.Point(14, 90);
+ this.panel1.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(70, 70);
+ this.panel1.TabIndex = 3;
//
// MainForm
//
@@ -145,8 +257,19 @@
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(83)))), ((int)(((byte)(93)))));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.ClientSize = new System.Drawing.Size(800, 440);
+ this.Controls.Add(this.panel12);
+ this.Controls.Add(this.panel13);
+ this.Controls.Add(this.panel14);
+ this.Controls.Add(this.panel15);
+ this.Controls.Add(this.panel8);
+ this.Controls.Add(this.panel9);
+ this.Controls.Add(this.panel10);
+ this.Controls.Add(this.panel11);
+ this.Controls.Add(this.panel6);
+ this.Controls.Add(this.panel7);
+ this.Controls.Add(this.panel4);
this.Controls.Add(this.headingPanel1);
- this.Controls.Add(this.tableLayoutPanel1);
+ this.Controls.Add(this.titlePanel1);
this.Controls.Add(this.flowLayoutPanel1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.richTextBox1);
@@ -166,10 +289,20 @@
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel5;
- private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private Windows.Forms.TitlePanel titlePanel1;
private Windows.Forms.HeadingPanel headingPanel1;
+ private System.Windows.Forms.Panel panel4;
+ private System.Windows.Forms.Panel panel6;
+ private System.Windows.Forms.Panel panel7;
+ private System.Windows.Forms.Panel panel8;
+ private System.Windows.Forms.Panel panel9;
+ private System.Windows.Forms.Panel panel10;
+ private System.Windows.Forms.Panel panel11;
+ private System.Windows.Forms.Panel panel12;
+ private System.Windows.Forms.Panel panel13;
+ private System.Windows.Forms.Panel panel14;
+ private System.Windows.Forms.Panel panel15;
}
}
diff --git a/MainForm.cs b/MainForm.cs
index 294476c..a06fa49 100644
--- a/MainForm.cs
+++ b/MainForm.cs
@@ -23,6 +23,29 @@ namespace AppLauncher
}
+ private void button1_Click(object sender, EventArgs e)
+ {
+ if (this.Width > 40)
+ {
+ while (this.Width > 40)
+ {
+ this.Width -= 6;
+
+ Application.DoEvents();
+ }
+ }
+ else
+ {
+ while (this.Width < 800)
+ {
+ this.Width += 8;
+
+ Application.DoEvents();
+ }
+ }
+
+ }
+
diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs
index 9aaf4aa..99e37e7 100644
--- a/Properties/Resources.Designer.cs
+++ b/Properties/Resources.Designer.cs
@@ -63,9 +63,59 @@ namespace AppLauncher.Properties {
///
/// Looks up a localized resource of type System.Drawing.Bitmap.
///
- internal static System.Drawing.Bitmap grid_ea {
+ internal static System.Drawing.Bitmap arrow_right_ea_16 {
get {
- object obj = ResourceManager.GetObject("grid_ea", resourceCulture);
+ object obj = ResourceManager.GetObject("arrow_right_ea_16", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap chrome_ea_32 {
+ get {
+ object obj = ResourceManager.GetObject("chrome_ea_32", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap grid_ea_24 {
+ get {
+ object obj = ResourceManager.GetObject("grid_ea_24", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap mail_ea_32 {
+ get {
+ object obj = ResourceManager.GetObject("mail_ea_32", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap toggle_left_ea_16 {
+ get {
+ object obj = ResourceManager.GetObject("toggle_left_ea_16", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap toggle_right_ea_16 {
+ get {
+ object obj = ResourceManager.GetObject("toggle_right_ea_16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
diff --git a/Properties/Resources.resx b/Properties/Resources.resx
index c516ffd..5700ad4 100644
--- a/Properties/Resources.resx
+++ b/Properties/Resources.resx
@@ -118,7 +118,22 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- ..\Resources\grid-ea.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\arrow-right-ea-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\chrome-ea-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\grid-ea-24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\mail-ea-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\toggle-left-ea-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\toggle-right-ea-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/Resources/arrow-right-ea-16.png b/Resources/arrow-right-ea-16.png
new file mode 100644
index 0000000..0eeb39d
Binary files /dev/null and b/Resources/arrow-right-ea-16.png differ
diff --git a/Resources/chrome-ea-32.png b/Resources/chrome-ea-32.png
new file mode 100644
index 0000000..00f5297
Binary files /dev/null and b/Resources/chrome-ea-32.png differ
diff --git a/Resources/grid-ea.png b/Resources/grid-ea-24.png
similarity index 100%
rename from Resources/grid-ea.png
rename to Resources/grid-ea-24.png
diff --git a/Resources/mail-ea-32.png b/Resources/mail-ea-32.png
new file mode 100644
index 0000000..1eea9a3
Binary files /dev/null and b/Resources/mail-ea-32.png differ
diff --git a/Resources/raw/arrow-down.svg b/Resources/raw/arrow-down.svg
new file mode 100644
index 0000000..4f84f62
--- /dev/null
+++ b/Resources/raw/arrow-down.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Resources/raw/arrow-right.svg b/Resources/raw/arrow-right.svg
new file mode 100644
index 0000000..f746daf
--- /dev/null
+++ b/Resources/raw/arrow-right.svg
@@ -0,0 +1,75 @@
+
+
diff --git a/Resources/raw/toggle-left.svg b/Resources/raw/toggle-left.svg
new file mode 100644
index 0000000..51ef76e
--- /dev/null
+++ b/Resources/raw/toggle-left.svg
@@ -0,0 +1,78 @@
+
+
diff --git a/Resources/raw/toggle-right.svg b/Resources/raw/toggle-right.svg
new file mode 100644
index 0000000..788c511
--- /dev/null
+++ b/Resources/raw/toggle-right.svg
@@ -0,0 +1,77 @@
+
+
diff --git a/Resources/toggle-left-ea-16.png b/Resources/toggle-left-ea-16.png
new file mode 100644
index 0000000..94a7137
Binary files /dev/null and b/Resources/toggle-left-ea-16.png differ
diff --git a/Resources/toggle-right-ea-16.png b/Resources/toggle-right-ea-16.png
new file mode 100644
index 0000000..b8ae67e
Binary files /dev/null and b/Resources/toggle-right-ea-16.png differ
diff --git a/Windows/Forms/HeadingPanel.Designer.cs b/Windows/Forms/HeadingPanel.Designer.cs
index bd97db2..3cc838b 100644
--- a/Windows/Forms/HeadingPanel.Designer.cs
+++ b/Windows/Forms/HeadingPanel.Designer.cs
@@ -28,53 +28,53 @@
///
private void InitializeComponent()
{
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HeadingPanel));
- this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
- // pictureBox1
- //
- this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
- this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
- this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
- this.pictureBox1.ErrorImage = null;
- this.pictureBox1.InitialImage = null;
- this.pictureBox1.Location = new System.Drawing.Point(0, 0);
- this.pictureBox1.Margin = new System.Windows.Forms.Padding(0);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(40, 40);
- this.pictureBox1.TabIndex = 5;
- this.pictureBox1.TabStop = false;
- //
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.BackColor = System.Drawing.Color.Transparent;
- this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234)))));
- this.label1.Location = new System.Drawing.Point(50, 0);
+ this.label1.Location = new System.Drawing.Point(25, 0);
this.label1.Margin = new System.Windows.Forms.Padding(0);
+ this.label1.MinimumSize = new System.Drawing.Size(20, 20);
this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(647, 40);
- this.label1.TabIndex = 6;
- this.label1.Text = "Launcher";
+ this.label1.Size = new System.Drawing.Size(575, 20);
+ this.label1.TabIndex = 8;
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
+ // pictureBox1
+ //
+ this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)));
+ this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
+ this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.pictureBox1.ErrorImage = null;
+ this.pictureBox1.InitialImage = null;
+ this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+ this.pictureBox1.Margin = new System.Windows.Forms.Padding(0);
+ this.pictureBox1.MaximumSize = new System.Drawing.Size(20, 20);
+ this.pictureBox1.MinimumSize = new System.Drawing.Size(20, 20);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(20, 20);
+ this.pictureBox1.TabIndex = 7;
+ this.pictureBox1.TabStop = false;
+ //
// HeadingPanel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
- this.MinimumSize = new System.Drawing.Size(40, 40);
+ this.MinimumSize = new System.Drawing.Size(100, 20);
this.Name = "HeadingPanel";
- this.Size = new System.Drawing.Size(697, 40);
+ this.Size = new System.Drawing.Size(600, 20);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
@@ -82,7 +82,7 @@
#endregion
- private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.PictureBox pictureBox1;
}
}
diff --git a/Windows/Forms/HeadingPanel.cs b/Windows/Forms/HeadingPanel.cs
index 174b687..85e200b 100644
--- a/Windows/Forms/HeadingPanel.cs
+++ b/Windows/Forms/HeadingPanel.cs
@@ -1,66 +1,36 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.ComponentModel;
using System.Windows.Forms;
namespace AppLauncher.Windows.Forms
{
public partial class HeadingPanel : UserControl
{
- private bool windowDragging = false;
- private Point windowOffset = new Point();
+ protected bool isChecked = false;
public HeadingPanel()
{
InitializeComponent();
+
+ this.Checked = false;
}
- protected override void OnParentBindingContextChanged(EventArgs e)
+ [Category("Appearance"), Browsable(true)]
+ public string TitleText
{
- base.OnParentBindingContextChanged(e);
+ get => label1.Text;
+ set => label1.Text = value;
+ }
- if (this.Parent != null)
+ [Category("Appearance"), Browsable(true)]
+ public bool Checked
+ {
+ get => isChecked;
+ set
{
- if (this.Parent.GetType() == typeof(MainForm))
- {
- pictureBox1.MouseDown += parentForm_MouseDown;
- pictureBox1.MouseUp += parentForm_MouseUp;
- pictureBox1.MouseMove += parentForm_MouseMove;
- }
- }
- }
+ isChecked = value;
- protected void parentForm_MouseDown(object sender, MouseEventArgs e)
- {
- if (e.Button != MouseButtons.Left)
- {
- return;
- }
+ pictureBox1.BackgroundImage = (value) ? Properties.Resources.toggle_right_ea_16 : Properties.Resources.toggle_left_ea_16;
- windowDragging = true;
- windowOffset = e.Location;
- }
-
- protected void parentForm_MouseUp(object sender, MouseEventArgs e)
- {
- windowDragging = false;
- }
-
- protected void parentForm_MouseMove(object sender, MouseEventArgs e)
- {
- if (windowDragging)
- {
- Point pos = this.PointToScreen(e.Location);
-
- int y = Math.Max((pos.Y - windowOffset.Y), Screen.PrimaryScreen.WorkingArea.Y);
- y = Math.Min(y, (Screen.PrimaryScreen.WorkingArea.Y + Screen.PrimaryScreen.WorkingArea.Height) - this.Height);
-
- this.Parent.Location = new Point(Screen.PrimaryScreen.WorkingArea.X, y);
}
}
diff --git a/Windows/Forms/HeadingPanel.resx b/Windows/Forms/HeadingPanel.resx
index 04cf4c4..1af7de1 100644
--- a/Windows/Forms/HeadingPanel.resx
+++ b/Windows/Forms/HeadingPanel.resx
@@ -117,13 +117,4 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
- cwAAEnMBjCK5BwAAAHNJREFUSEvtlLENgDAMBL3/WtkmS4ARzhcmsXQFBSgnfZO/F0pB7D/03pvnKNJC
- Ra6YSI+EilyxLJzcEVeQEXEFGRFXkBFxBRkRV4yiSqjIFX747n/wfa5rpWvm7Kdif+Bm2ZERccUoqoSK
- XOGH+6mYYHYCNMlBzlYWbSwAAAAASUVORK5CYII=
-
-
\ No newline at end of file
diff --git a/Windows/Forms/TitlePanel.Designer.cs b/Windows/Forms/TitlePanel.Designer.cs
new file mode 100644
index 0000000..213940b
--- /dev/null
+++ b/Windows/Forms/TitlePanel.Designer.cs
@@ -0,0 +1,87 @@
+namespace AppLauncher.Windows.Forms
+{
+ partial class TitlePanel
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Component Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.label1 = new System.Windows.Forms.Label();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)));
+ this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
+ this.pictureBox1.BackgroundImage = global::AppLauncher.Properties.Resources.grid_ea_24;
+ this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.pictureBox1.ErrorImage = null;
+ this.pictureBox1.InitialImage = null;
+ this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+ this.pictureBox1.Margin = new System.Windows.Forms.Padding(0);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(40, 40);
+ this.pictureBox1.TabIndex = 5;
+ this.pictureBox1.TabStop = false;
+ //
+ // label1
+ //
+ this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label1.BackColor = System.Drawing.Color.Black;
+ this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234)))));
+ this.label1.Location = new System.Drawing.Point(40, 0);
+ this.label1.Margin = new System.Windows.Forms.Padding(0);
+ this.label1.Name = "label1";
+ this.label1.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0);
+ this.label1.Size = new System.Drawing.Size(657, 40);
+ this.label1.TabIndex = 6;
+ this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // TitlePanel
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.pictureBox1);
+ this.MinimumSize = new System.Drawing.Size(40, 40);
+ this.Name = "TitlePanel";
+ this.Size = new System.Drawing.Size(697, 40);
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/Windows/Forms/TitlePanel.cs b/Windows/Forms/TitlePanel.cs
new file mode 100644
index 0000000..665a72d
--- /dev/null
+++ b/Windows/Forms/TitlePanel.cs
@@ -0,0 +1,75 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace AppLauncher.Windows.Forms
+{
+ public partial class TitlePanel : UserControl
+ {
+ private bool windowDragging = false;
+ private Point windowOffset = new Point();
+
+ public TitlePanel()
+ {
+ InitializeComponent();
+ }
+
+ protected override void OnParentBindingContextChanged(EventArgs e)
+ {
+ base.OnParentBindingContextChanged(e);
+
+ if (this.Parent != null)
+ {
+ if (this.Parent.GetType() == typeof(MainForm))
+ {
+ pictureBox1.MouseDown += parentForm_MouseDown;
+ pictureBox1.MouseUp += parentForm_MouseUp;
+ pictureBox1.MouseMove += parentForm_MouseMove;
+ }
+ }
+ }
+
+ [Category("Appearance"), Browsable(true)]
+ public string TitleText
+ {
+ get => label1.Text;
+ set => label1.Text = value;
+ }
+
+ protected void parentForm_MouseDown(object sender, MouseEventArgs e)
+ {
+ if (e.Button != MouseButtons.Left)
+ {
+ return;
+ }
+
+ windowDragging = true;
+ windowOffset = e.Location;
+ }
+
+ protected void parentForm_MouseUp(object sender, MouseEventArgs e)
+ {
+ windowDragging = false;
+ }
+
+ protected void parentForm_MouseMove(object sender, MouseEventArgs e)
+ {
+ if (windowDragging)
+ {
+ Point pos = this.PointToScreen(e.Location);
+
+ int y = Math.Max((pos.Y - windowOffset.Y), Screen.PrimaryScreen.WorkingArea.Y);
+ y = Math.Min(y, (Screen.PrimaryScreen.WorkingArea.Y + Screen.PrimaryScreen.WorkingArea.Height) - this.Height);
+
+ this.Parent.Location = new Point(Screen.PrimaryScreen.WorkingArea.X, y);
+ }
+ }
+
+ }
+}
diff --git a/Windows/Forms/TitlePanel.resx b/Windows/Forms/TitlePanel.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Windows/Forms/TitlePanel.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file