WIP: ui ideas
@ -66,6 +66,12 @@
|
||||
<Compile Include="Windows\Forms\HeadingPanel.Designer.cs">
|
||||
<DependentUpon>HeadingPanel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Windows\Forms\TitlePanel.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Windows\Forms\TitlePanel.Designer.cs">
|
||||
<DependentUpon>TitlePanel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="MainForm.resx">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@ -82,6 +88,9 @@
|
||||
<EmbeddedResource Include="Windows\Forms\HeadingPanel.resx">
|
||||
<DependentUpon>HeadingPanel.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Windows\Forms\TitlePanel.resx">
|
||||
<DependentUpon>TitlePanel.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
@ -93,8 +102,22 @@
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\grid-ea.png" />
|
||||
<None Include="Resources\arrow-right-ea-16.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\grid-ea-24.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\toggle-left-ea-16.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\toggle-right-ea-16.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\chrome-ea-32.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\mail-ea-32.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
229
MainForm.Designer.cs
generated
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
23
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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
54
Properties/Resources.Designer.cs
generated
@ -63,9 +63,59 @@ namespace AppLauncher.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap chrome_ea_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("chrome_ea_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap grid_ea_24 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("grid_ea_24", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap mail_ea_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("mail_ea_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap toggle_left_ea_16 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("toggle_left_ea_16", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap toggle_right_ea_16 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("toggle_right_ea_16", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,22 @@
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="grid_ea" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\grid-ea.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="arrow_right_ea_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\arrow-right-ea-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="chrome_ea_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\chrome-ea-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="grid_ea_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\grid-ea-24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="mail_ea_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\mail-ea-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="toggle_left_ea_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\toggle-left-ea-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="toggle_right_ea_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\toggle-right-ea-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
BIN
Resources/arrow-right-ea-16.png
Normal file
After Width: | Height: | Size: 285 B |
BIN
Resources/chrome-ea-32.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 224 B |
BIN
Resources/mail-ea-32.png
Normal file
After Width: | Height: | Size: 789 B |
1
Resources/raw/arrow-down.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline></svg>
|
After Width: | Height: | Size: 313 B |
75
Resources/raw/arrow-right.svg
Normal file
@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="feather feather-arrow-right"
|
||||
version="1.1"
|
||||
id="svg2026"
|
||||
sodipodi:docname="arrow-right.svg"
|
||||
inkscape:version="0.92.3 (2405546, 2018-03-11)">
|
||||
<metadata
|
||||
id="metadata2032">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs2030" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1017"
|
||||
id="namedview2028"
|
||||
showgrid="false"
|
||||
inkscape:zoom="35.291667"
|
||||
inkscape:cx="12"
|
||||
inkscape:cy="13.133412"
|
||||
inkscape:window-x="1072"
|
||||
inkscape:window-y="843"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2026" />
|
||||
<line
|
||||
x1="4.5102615"
|
||||
y1="8.1322317"
|
||||
x2="11.750201"
|
||||
y2="8.1322317"
|
||||
id="line2022"
|
||||
style="stroke-width:1.03427708;stroke:#eaeaea;stroke-opacity:1"
|
||||
inkscape:export-filename="L:\gitlab-hiimray\linear-app-launcher\Resources\line2022.png"
|
||||
inkscape:export-xdpi="120"
|
||||
inkscape:export-ydpi="120" />
|
||||
<polyline
|
||||
points="12 5 19 12 12 19"
|
||||
id="polyline2024"
|
||||
transform="matrix(0.51713855,0,0,0.51713855,1.9245686,1.9265688)"
|
||||
style="stroke:#eaeaea;stroke-opacity:1"
|
||||
inkscape:export-filename="L:\gitlab-hiimray\linear-app-launcher\Resources\line2022.png"
|
||||
inkscape:export-xdpi="120"
|
||||
inkscape:export-ydpi="120" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
78
Resources/raw/toggle-left.svg
Normal file
@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="feather feather-toggle-left"
|
||||
version="1.1"
|
||||
id="svg5895"
|
||||
sodipodi:docname="toggle-left.svg"
|
||||
inkscape:version="0.92.3 (2405546, 2018-03-11)">
|
||||
<metadata
|
||||
id="metadata5901">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs5899" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1017"
|
||||
id="namedview5897"
|
||||
showgrid="false"
|
||||
inkscape:zoom="35.291667"
|
||||
inkscape:cx="12"
|
||||
inkscape:cy="12"
|
||||
inkscape:window-x="1072"
|
||||
inkscape:window-y="843"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg5895" />
|
||||
<rect
|
||||
x="0.52007085"
|
||||
y="4.520071"
|
||||
width="11.441558"
|
||||
height="7.2809916"
|
||||
rx="3.6404958"
|
||||
ry="3.6404958"
|
||||
id="rect5891"
|
||||
style="stroke:#eaeaea;stroke-width:1.0401417;stroke-opacity:1"
|
||||
inkscape:export-filename="L:\gitlab-hiimray\linear-app-launcher\Resources\rect5891.png"
|
||||
inkscape:export-xdpi="120"
|
||||
inkscape:export-ydpi="120" />
|
||||
<circle
|
||||
cx="4.1605668"
|
||||
cy="8.1605663"
|
||||
r="1.5602125"
|
||||
id="circle5893"
|
||||
style="stroke:#eaeaea;stroke-width:1.0401417;stroke-opacity:1"
|
||||
inkscape:export-filename="L:\gitlab-hiimray\linear-app-launcher\Resources\rect5891.png"
|
||||
inkscape:export-xdpi="120"
|
||||
inkscape:export-ydpi="120" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
77
Resources/raw/toggle-right.svg
Normal file
@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="feather feather-toggle-right"
|
||||
version="1.1"
|
||||
id="svg5919"
|
||||
sodipodi:docname="toggle-right.svg"
|
||||
inkscape:version="0.92.3 (2405546, 2018-03-11)">
|
||||
<metadata
|
||||
id="metadata5925">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs5923" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1017"
|
||||
id="namedview5921"
|
||||
showgrid="false"
|
||||
inkscape:zoom="9.8333333"
|
||||
inkscape:cx="12"
|
||||
inkscape:cy="12"
|
||||
inkscape:window-x="1072"
|
||||
inkscape:window-y="843"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg5919" />
|
||||
<rect
|
||||
x="0.51694918"
|
||||
y="4.5169492"
|
||||
width="11.372882"
|
||||
height="7.237288"
|
||||
rx="3.618644"
|
||||
ry="3.618644"
|
||||
id="rect5915"
|
||||
style="stroke:#eaeaea;stroke-width:1.03389835;stroke-opacity:1"
|
||||
inkscape:export-filename="L:\gitlab-hiimray\linear-app-launcher\Resources\toggle-right-ea-16.png"
|
||||
inkscape:export-xdpi="120"
|
||||
inkscape:export-ydpi="120" />
|
||||
<circle
|
||||
cx="8.2711868"
|
||||
cy="8.1355934"
|
||||
r="1.5508475"
|
||||
id="circle5917"
|
||||
style="stroke:#eaeaea;stroke-width:1.03389835;stroke-opacity:1"
|
||||
inkscape:export-filename="L:\gitlab-hiimray\linear-app-launcher\Resources\toggle-right-ea-16.png"
|
||||
inkscape:export-xdpi="120"
|
||||
inkscape:export-ydpi="120" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
BIN
Resources/toggle-left-ea-16.png
Normal file
After Width: | Height: | Size: 429 B |
BIN
Resources/toggle-right-ea-16.png
Normal file
After Width: | Height: | Size: 439 B |
52
Windows/Forms/HeadingPanel.Designer.cs
generated
@ -28,53 +28,53 @@
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -117,13 +117,4 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="pictureBox1.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
|
||||
cwAAEnMBjCK5BwAAAHNJREFUSEvtlLENgDAMBL3/WtkmS4ARzhcmsXQFBSgnfZO/F0pB7D/03pvnKNJC
|
||||
Ra6YSI+EilyxLJzcEVeQEXEFGRFXkBFxBRkRV4yiSqjIFX747n/wfa5rpWvm7Kdif+Bm2ZERccUoqoSK
|
||||
XOGH+6mYYHYCNMlBzlYWbSwAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
87
Windows/Forms/TitlePanel.Designer.cs
generated
Normal file
@ -0,0 +1,87 @@
|
||||
namespace AppLauncher.Windows.Forms
|
||||
{
|
||||
partial class TitlePanel
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <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);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
75
Windows/Forms/TitlePanel.cs
Normal file
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
120
Windows/Forms/TitlePanel.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|