Added new settings

Added icons to the main menu
Able to make toolbar color like editor background color
This commit is contained in:
Alexander 2018-12-29 18:25:52 +02:00
parent a6a24f8e0f
commit 5f6cb9552c
3 changed files with 169 additions and 68 deletions

View file

@ -320,5 +320,31 @@ public bool MenuIntegrate {
this["MenuIntegrate"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool MenuIcons {
get {
return ((bool)(this["MenuIcons"]));
}
set {
this["MenuIcons"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool ColoredToolbar {
get {
return ((bool)(this["ColoredToolbar"]));
}
set {
this["ColoredToolbar"] = value;
}
}
}
}

View file

@ -63,18 +63,22 @@ private void InitializeComponent()
this.AutoLockCheckBox = new System.Windows.Forms.CheckBox();
this.ResetSettingsButton = new System.Windows.Forms.Button();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.MenuIconsCheckBox = new System.Windows.Forms.CheckBox();
this.IntegrationTabPage = new System.Windows.Forms.TabPage();
this.ToolbarColorCheckBox = new System.Windows.Forms.CheckBox();
this.SettingsTabControl.SuspendLayout();
this.EditorTabPage.SuspendLayout();
this.EncryptionTabPage.SuspendLayout();
this.ApplicationTabPage.SuspendLayout();
this.IntegrationTabPage.SuspendLayout();
this.SuspendLayout();
//
// FontColorLabel
//
this.FontColorLabel.AutoSize = true;
this.FontColorLabel.Location = new System.Drawing.Point(7, 86);
this.FontColorLabel.Location = new System.Drawing.Point(7, 81);
this.FontColorLabel.Name = "FontColorLabel";
this.FontColorLabel.Size = new System.Drawing.Size(54, 13);
this.FontColorLabel.Size = new System.Drawing.Size(61, 15);
this.FontColorLabel.TabIndex = 0;
this.FontColorLabel.Text = "Font color";
//
@ -85,10 +89,11 @@ private void InitializeComponent()
//
// SaveSettingsButton
//
this.SaveSettingsButton.Location = new System.Drawing.Point(179, 239);
this.SaveSettingsButton.Location = new System.Drawing.Point(162, 268);
this.SaveSettingsButton.Name = "SaveSettingsButton";
this.SaveSettingsButton.Size = new System.Drawing.Size(79, 23);
this.SaveSettingsButton.Size = new System.Drawing.Size(98, 23);
this.SaveSettingsButton.TabIndex = 4;
this.SaveSettingsButton.TabStop = false;
this.SaveSettingsButton.Text = "Save && Close";
this.SaveSettingsButton.UseVisualStyleBackColor = true;
this.SaveSettingsButton.Click += new System.EventHandler(this.SaveSettingsButton_Click);
@ -96,25 +101,30 @@ private void InitializeComponent()
// FontNameLabel
//
this.FontNameLabel.AutoSize = true;
this.FontNameLabel.Location = new System.Drawing.Point(7, 18);
this.FontNameLabel.Location = new System.Drawing.Point(7, 13);
this.FontNameLabel.Name = "FontNameLabel";
this.FontNameLabel.Size = new System.Drawing.Size(57, 13);
this.FontNameLabel.Size = new System.Drawing.Size(66, 15);
this.FontNameLabel.TabIndex = 1;
this.FontNameLabel.Text = "Font name";
//
// SettingsTabControl
//
this.SettingsTabControl.Controls.Add(this.EditorTabPage);
this.SettingsTabControl.Controls.Add(this.EncryptionTabPage);
this.SettingsTabControl.Controls.Add(this.ApplicationTabPage);
this.SettingsTabControl.Location = new System.Drawing.Point(2, 2);
this.SettingsTabControl.Controls.Add(this.IntegrationTabPage);
this.SettingsTabControl.Controls.Add(this.EncryptionTabPage);
this.SettingsTabControl.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.SettingsTabControl.Location = new System.Drawing.Point(0, 2);
this.SettingsTabControl.Multiline = true;
this.SettingsTabControl.Name = "SettingsTabControl";
this.SettingsTabControl.SelectedIndex = 0;
this.SettingsTabControl.Size = new System.Drawing.Size(260, 231);
this.SettingsTabControl.Size = new System.Drawing.Size(264, 264);
this.SettingsTabControl.TabIndex = 4;
//
// EditorTabPage
//
this.EditorTabPage.BackColor = System.Drawing.SystemColors.Window;
this.EditorTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.EditorTabPage.Controls.Add(this.HighlightsColorPanel);
this.EditorTabPage.Controls.Add(this.HighlightsColorLabel);
this.EditorTabPage.Controls.Add(this.FontSizeComboBox);
@ -128,16 +138,15 @@ private void InitializeComponent()
this.EditorTabPage.Location = new System.Drawing.Point(4, 22);
this.EditorTabPage.Name = "EditorTabPage";
this.EditorTabPage.Padding = new System.Windows.Forms.Padding(3);
this.EditorTabPage.Size = new System.Drawing.Size(252, 205);
this.EditorTabPage.Size = new System.Drawing.Size(256, 238);
this.EditorTabPage.TabIndex = 0;
this.EditorTabPage.Text = "Editor";
this.EditorTabPage.UseVisualStyleBackColor = true;
//
// HighlightsColorPanel
//
this.HighlightsColorPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.HighlightsColorPanel.Cursor = System.Windows.Forms.Cursors.Hand;
this.HighlightsColorPanel.Location = new System.Drawing.Point(136, 151);
this.HighlightsColorPanel.Location = new System.Drawing.Point(136, 146);
this.HighlightsColorPanel.Name = "HighlightsColorPanel";
this.HighlightsColorPanel.Size = new System.Drawing.Size(100, 21);
this.HighlightsColorPanel.TabIndex = 12;
@ -146,9 +155,9 @@ private void InitializeComponent()
// HighlightsColorLabel
//
this.HighlightsColorLabel.AutoSize = true;
this.HighlightsColorLabel.Location = new System.Drawing.Point(7, 154);
this.HighlightsColorLabel.Location = new System.Drawing.Point(7, 149);
this.HighlightsColorLabel.Name = "HighlightsColorLabel";
this.HighlightsColorLabel.Size = new System.Drawing.Size(79, 13);
this.HighlightsColorLabel.Size = new System.Drawing.Size(92, 15);
this.HighlightsColorLabel.TabIndex = 11;
this.HighlightsColorLabel.Text = "Highlights color";
//
@ -172,26 +181,26 @@ private void InitializeComponent()
"36",
"48",
"72"});
this.FontSizeComboBox.Location = new System.Drawing.Point(136, 49);
this.FontSizeComboBox.Location = new System.Drawing.Point(136, 44);
this.FontSizeComboBox.Name = "FontSizeComboBox";
this.FontSizeComboBox.Size = new System.Drawing.Size(100, 21);
this.FontSizeComboBox.Size = new System.Drawing.Size(100, 23);
this.FontSizeComboBox.TabIndex = 6;
//
// BackgroundColorLabel
//
this.BackgroundColorLabel.AutoSize = true;
this.BackgroundColorLabel.Location = new System.Drawing.Point(7, 120);
this.BackgroundColorLabel.Location = new System.Drawing.Point(7, 115);
this.BackgroundColorLabel.Name = "BackgroundColorLabel";
this.BackgroundColorLabel.Size = new System.Drawing.Size(91, 13);
this.BackgroundColorLabel.Size = new System.Drawing.Size(103, 15);
this.BackgroundColorLabel.TabIndex = 10;
this.BackgroundColorLabel.Text = "Background color";
//
// FontSizeLabel
//
this.FontSizeLabel.AutoSize = true;
this.FontSizeLabel.Location = new System.Drawing.Point(7, 52);
this.FontSizeLabel.Location = new System.Drawing.Point(7, 47);
this.FontSizeLabel.Name = "FontSizeLabel";
this.FontSizeLabel.Size = new System.Drawing.Size(49, 13);
this.FontSizeLabel.Size = new System.Drawing.Size(56, 15);
this.FontSizeLabel.TabIndex = 9;
this.FontSizeLabel.Text = "Font size";
//
@ -199,7 +208,7 @@ private void InitializeComponent()
//
this.BackgroundColorPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.BackgroundColorPanel.Cursor = System.Windows.Forms.Cursors.Hand;
this.BackgroundColorPanel.Location = new System.Drawing.Point(136, 117);
this.BackgroundColorPanel.Location = new System.Drawing.Point(136, 112);
this.BackgroundColorPanel.Name = "BackgroundColorPanel";
this.BackgroundColorPanel.Size = new System.Drawing.Size(100, 21);
this.BackgroundColorPanel.TabIndex = 8;
@ -209,7 +218,7 @@ private void InitializeComponent()
//
this.FontColorPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.FontColorPanel.Cursor = System.Windows.Forms.Cursors.Hand;
this.FontColorPanel.Location = new System.Drawing.Point(136, 83);
this.FontColorPanel.Location = new System.Drawing.Point(136, 78);
this.FontColorPanel.Name = "FontColorPanel";
this.FontColorPanel.Size = new System.Drawing.Size(100, 21);
this.FontColorPanel.TabIndex = 7;
@ -218,13 +227,15 @@ private void InitializeComponent()
// FontNameComboBox
//
this.FontNameComboBox.FormattingEnabled = true;
this.FontNameComboBox.Location = new System.Drawing.Point(136, 15);
this.FontNameComboBox.Location = new System.Drawing.Point(136, 10);
this.FontNameComboBox.Name = "FontNameComboBox";
this.FontNameComboBox.Size = new System.Drawing.Size(100, 21);
this.FontNameComboBox.Size = new System.Drawing.Size(100, 23);
this.FontNameComboBox.TabIndex = 5;
//
// EncryptionTabPage
//
this.EncryptionTabPage.BackColor = System.Drawing.SystemColors.Window;
this.EncryptionTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.EncryptionTabPage.Controls.Add(this.PwdIterationsTextBox);
this.EncryptionTabPage.Controls.Add(this.HashComboBox);
this.EncryptionTabPage.Controls.Add(this.PwdIterationsLabel);
@ -236,16 +247,15 @@ private void InitializeComponent()
this.EncryptionTabPage.Location = new System.Drawing.Point(4, 22);
this.EncryptionTabPage.Name = "EncryptionTabPage";
this.EncryptionTabPage.Padding = new System.Windows.Forms.Padding(3);
this.EncryptionTabPage.Size = new System.Drawing.Size(252, 205);
this.EncryptionTabPage.Size = new System.Drawing.Size(256, 238);
this.EncryptionTabPage.TabIndex = 1;
this.EncryptionTabPage.Text = "Encryption";
this.EncryptionTabPage.UseVisualStyleBackColor = true;
//
// PwdIterationsTextBox
//
this.PwdIterationsTextBox.Location = new System.Drawing.Point(136, 83);
this.PwdIterationsTextBox.Location = new System.Drawing.Point(136, 78);
this.PwdIterationsTextBox.Name = "PwdIterationsTextBox";
this.PwdIterationsTextBox.Size = new System.Drawing.Size(100, 20);
this.PwdIterationsTextBox.Size = new System.Drawing.Size(100, 21);
this.PwdIterationsTextBox.TabIndex = 7;
//
// HashComboBox
@ -258,28 +268,28 @@ private void InitializeComponent()
"SHA256",
"SHA384",
"SHA512"});
this.HashComboBox.Location = new System.Drawing.Point(136, 15);
this.HashComboBox.Location = new System.Drawing.Point(136, 10);
this.HashComboBox.Name = "HashComboBox";
this.HashComboBox.Size = new System.Drawing.Size(100, 21);
this.HashComboBox.Size = new System.Drawing.Size(100, 23);
this.HashComboBox.TabIndex = 5;
//
// PwdIterationsLabel
//
this.PwdIterationsLabel.AutoSize = true;
this.PwdIterationsLabel.BackColor = System.Drawing.Color.Transparent;
this.PwdIterationsLabel.Location = new System.Drawing.Point(7, 86);
this.PwdIterationsLabel.Location = new System.Drawing.Point(7, 81);
this.PwdIterationsLabel.Name = "PwdIterationsLabel";
this.PwdIterationsLabel.Size = new System.Drawing.Size(98, 13);
this.PwdIterationsLabel.Size = new System.Drawing.Size(114, 15);
this.PwdIterationsLabel.TabIndex = 6;
this.PwdIterationsLabel.Text = "Password iterations";
//
// SaltTextBox
//
this.SaltTextBox.Location = new System.Drawing.Point(136, 116);
this.SaltTextBox.Location = new System.Drawing.Point(136, 111);
this.SaltTextBox.Margin = new System.Windows.Forms.Padding(10, 3, 3, 3);
this.SaltTextBox.Name = "SaltTextBox";
this.SaltTextBox.ReadOnly = true;
this.SaltTextBox.Size = new System.Drawing.Size(100, 20);
this.SaltTextBox.Size = new System.Drawing.Size(100, 21);
this.SaltTextBox.TabIndex = 4;
this.SaltTextBox.Visible = false;
//
@ -291,17 +301,17 @@ private void InitializeComponent()
"128",
"192",
"256"});
this.KeySizeComboBox.Location = new System.Drawing.Point(136, 49);
this.KeySizeComboBox.Location = new System.Drawing.Point(136, 44);
this.KeySizeComboBox.Name = "KeySizeComboBox";
this.KeySizeComboBox.Size = new System.Drawing.Size(100, 21);
this.KeySizeComboBox.Size = new System.Drawing.Size(100, 23);
this.KeySizeComboBox.TabIndex = 3;
//
// SaltLabel
//
this.SaltLabel.AutoSize = true;
this.SaltLabel.Location = new System.Drawing.Point(7, 119);
this.SaltLabel.Location = new System.Drawing.Point(7, 114);
this.SaltLabel.Name = "SaltLabel";
this.SaltLabel.Size = new System.Drawing.Size(47, 13);
this.SaltLabel.Size = new System.Drawing.Size(52, 15);
this.SaltLabel.TabIndex = 2;
this.SaltLabel.Text = "The Salt";
this.SaltLabel.Visible = false;
@ -309,44 +319,44 @@ private void InitializeComponent()
// KeySizeLabel
//
this.KeySizeLabel.AutoSize = true;
this.KeySizeLabel.Location = new System.Drawing.Point(7, 52);
this.KeySizeLabel.Location = new System.Drawing.Point(7, 47);
this.KeySizeLabel.Name = "KeySizeLabel";
this.KeySizeLabel.Size = new System.Drawing.Size(46, 13);
this.KeySizeLabel.Size = new System.Drawing.Size(52, 15);
this.KeySizeLabel.TabIndex = 1;
this.KeySizeLabel.Text = "Key size";
//
// HashLabel
//
this.HashLabel.AutoSize = true;
this.HashLabel.Location = new System.Drawing.Point(7, 18);
this.HashLabel.Location = new System.Drawing.Point(7, 13);
this.HashLabel.Name = "HashLabel";
this.HashLabel.Size = new System.Drawing.Size(80, 13);
this.HashLabel.Size = new System.Drawing.Size(94, 15);
this.HashLabel.TabIndex = 0;
this.HashLabel.Text = "Hash algorithm ";
//
// ApplicationTabPage
//
this.ApplicationTabPage.Controls.Add(this.IntegrateCheckBox);
this.ApplicationTabPage.BackColor = System.Drawing.SystemColors.Window;
this.ApplicationTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.ApplicationTabPage.Controls.Add(this.ToolbarColorCheckBox);
this.ApplicationTabPage.Controls.Add(this.MenuIconsCheckBox);
this.ApplicationTabPage.Controls.Add(this.ToolbarCheckBox);
this.ApplicationTabPage.Controls.Add(this.SendToCheckBox);
this.ApplicationTabPage.Controls.Add(this.AutoSaveCheckBox);
this.ApplicationTabPage.Controls.Add(this.AssociateCheckBox);
this.ApplicationTabPage.Controls.Add(this.UpdatesCheckBox);
this.ApplicationTabPage.Controls.Add(this.AutoLockCheckBox);
this.ApplicationTabPage.Location = new System.Drawing.Point(4, 22);
this.ApplicationTabPage.Location = new System.Drawing.Point(4, 24);
this.ApplicationTabPage.Name = "ApplicationTabPage";
this.ApplicationTabPage.Padding = new System.Windows.Forms.Padding(3);
this.ApplicationTabPage.Size = new System.Drawing.Size(252, 205);
this.ApplicationTabPage.Size = new System.Drawing.Size(256, 236);
this.ApplicationTabPage.TabIndex = 2;
this.ApplicationTabPage.Text = "Application";
this.ApplicationTabPage.UseVisualStyleBackColor = true;
//
// IntegrateCheckBox
//
this.IntegrateCheckBox.AutoSize = true;
this.IntegrateCheckBox.Location = new System.Drawing.Point(7, 18);
this.IntegrateCheckBox.Location = new System.Drawing.Point(7, 13);
this.IntegrateCheckBox.Name = "IntegrateCheckBox";
this.IntegrateCheckBox.Size = new System.Drawing.Size(201, 17);
this.IntegrateCheckBox.Size = new System.Drawing.Size(227, 19);
this.IntegrateCheckBox.TabIndex = 6;
this.IntegrateCheckBox.Text = "Integrate with windows context menu";
this.IntegrateCheckBox.UseVisualStyleBackColor = true;
@ -354,19 +364,20 @@ private void InitializeComponent()
// ToolbarCheckBox
//
this.ToolbarCheckBox.AutoSize = true;
this.ToolbarCheckBox.Location = new System.Drawing.Point(7, 156);
this.ToolbarCheckBox.Location = new System.Drawing.Point(7, 105);
this.ToolbarCheckBox.Name = "ToolbarCheckBox";
this.ToolbarCheckBox.Size = new System.Drawing.Size(88, 17);
this.ToolbarCheckBox.Size = new System.Drawing.Size(98, 19);
this.ToolbarCheckBox.TabIndex = 2;
this.ToolbarCheckBox.Text = "Show toolbar";
this.ToolbarCheckBox.UseVisualStyleBackColor = true;
this.ToolbarCheckBox.CheckedChanged += new System.EventHandler(this.ToolbarCheckBox_CheckedChanged);
//
// SendToCheckBox
//
this.SendToCheckBox.AutoSize = true;
this.SendToCheckBox.Location = new System.Drawing.Point(7, 64);
this.SendToCheckBox.Location = new System.Drawing.Point(7, 59);
this.SendToCheckBox.Name = "SendToCheckBox";
this.SendToCheckBox.Size = new System.Drawing.Size(143, 17);
this.SendToCheckBox.Size = new System.Drawing.Size(158, 19);
this.SendToCheckBox.TabIndex = 5;
this.SendToCheckBox.Text = "Show in \"Send to\" menu";
this.SendToCheckBox.UseVisualStyleBackColor = true;
@ -374,9 +385,9 @@ private void InitializeComponent()
// AutoSaveCheckBox
//
this.AutoSaveCheckBox.AutoSize = true;
this.AutoSaveCheckBox.Location = new System.Drawing.Point(7, 133);
this.AutoSaveCheckBox.Location = new System.Drawing.Point(7, 59);
this.AutoSaveCheckBox.Name = "AutoSaveCheckBox";
this.AutoSaveCheckBox.Size = new System.Drawing.Size(112, 17);
this.AutoSaveCheckBox.Size = new System.Drawing.Size(120, 19);
this.AutoSaveCheckBox.TabIndex = 4;
this.AutoSaveCheckBox.Text = "Auto save on lock";
this.AutoSaveCheckBox.UseVisualStyleBackColor = true;
@ -384,9 +395,9 @@ private void InitializeComponent()
// AssociateCheckBox
//
this.AssociateCheckBox.AutoSize = true;
this.AssociateCheckBox.Location = new System.Drawing.Point(7, 41);
this.AssociateCheckBox.Location = new System.Drawing.Point(7, 36);
this.AssociateCheckBox.Name = "AssociateCheckBox";
this.AssociateCheckBox.Size = new System.Drawing.Size(143, 17);
this.AssociateCheckBox.Size = new System.Drawing.Size(159, 19);
this.AssociateCheckBox.TabIndex = 0;
this.AssociateCheckBox.Text = "Associate with *.cnp files";
this.AssociateCheckBox.UseVisualStyleBackColor = true;
@ -394,9 +405,9 @@ private void InitializeComponent()
// UpdatesCheckBox
//
this.UpdatesCheckBox.AutoSize = true;
this.UpdatesCheckBox.Location = new System.Drawing.Point(7, 110);
this.UpdatesCheckBox.Location = new System.Drawing.Point(7, 36);
this.UpdatesCheckBox.Name = "UpdatesCheckBox";
this.UpdatesCheckBox.Size = new System.Drawing.Size(122, 17);
this.UpdatesCheckBox.Size = new System.Drawing.Size(132, 19);
this.UpdatesCheckBox.TabIndex = 1;
this.UpdatesCheckBox.Text = "Auto check updates";
this.UpdatesCheckBox.UseVisualStyleBackColor = true;
@ -404,31 +415,65 @@ private void InitializeComponent()
// AutoLockCheckBox
//
this.AutoLockCheckBox.AutoSize = true;
this.AutoLockCheckBox.Location = new System.Drawing.Point(7, 87);
this.AutoLockCheckBox.Location = new System.Drawing.Point(7, 13);
this.AutoLockCheckBox.Name = "AutoLockCheckBox";
this.AutoLockCheckBox.Size = new System.Drawing.Size(128, 17);
this.AutoLockCheckBox.Size = new System.Drawing.Size(146, 19);
this.AutoLockCheckBox.TabIndex = 3;
this.AutoLockCheckBox.Text = "Auto lock on minimize";
this.AutoLockCheckBox.UseVisualStyleBackColor = true;
//
// ResetSettingsButton
//
this.ResetSettingsButton.Location = new System.Drawing.Point(6, 239);
this.ResetSettingsButton.Location = new System.Drawing.Point(4, 268);
this.ResetSettingsButton.Name = "ResetSettingsButton";
this.ResetSettingsButton.Size = new System.Drawing.Size(98, 23);
this.ResetSettingsButton.TabIndex = 5;
this.ResetSettingsButton.Text = "Reset to Defaults";
this.ResetSettingsButton.Text = "Reset to Default";
this.ResetSettingsButton.UseVisualStyleBackColor = true;
this.ResetSettingsButton.Click += new System.EventHandler(this.ResetSettingsButton_Click);
//
// MenuIconsCheckBox
//
this.MenuIconsCheckBox.AutoSize = true;
this.MenuIconsCheckBox.Location = new System.Drawing.Point(7, 128);
this.MenuIconsCheckBox.Name = "MenuIconsCheckBox";
this.MenuIconsCheckBox.Size = new System.Drawing.Size(90, 19);
this.MenuIconsCheckBox.TabIndex = 7;
this.MenuIconsCheckBox.Text = "Menu icons";
this.MenuIconsCheckBox.UseVisualStyleBackColor = true;
//
// IntegrationTabPage
//
this.IntegrationTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.IntegrationTabPage.Controls.Add(this.IntegrateCheckBox);
this.IntegrationTabPage.Controls.Add(this.AssociateCheckBox);
this.IntegrationTabPage.Controls.Add(this.SendToCheckBox);
this.IntegrationTabPage.Location = new System.Drawing.Point(4, 24);
this.IntegrationTabPage.Name = "IntegrationTabPage";
this.IntegrationTabPage.Padding = new System.Windows.Forms.Padding(3);
this.IntegrationTabPage.Size = new System.Drawing.Size(256, 236);
this.IntegrationTabPage.TabIndex = 3;
this.IntegrationTabPage.Text = "Integration";
this.IntegrationTabPage.UseVisualStyleBackColor = true;
//
// ToolbarColorCheckBox
//
this.ToolbarColorCheckBox.AutoSize = true;
this.ToolbarColorCheckBox.Location = new System.Drawing.Point(7, 82);
this.ToolbarColorCheckBox.Name = "ToolbarColorCheckBox";
this.ToolbarColorCheckBox.Size = new System.Drawing.Size(131, 19);
this.ToolbarColorCheckBox.TabIndex = 8;
this.ToolbarColorCheckBox.Text = "Chameleon toolbar";
this.ToolbarColorCheckBox.UseVisualStyleBackColor = true;
//
// SettingsForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(260, 270);
this.ClientSize = new System.Drawing.Size(264, 294);
this.Controls.Add(this.SaveSettingsButton);
this.Controls.Add(this.ResetSettingsButton);
this.Controls.Add(this.SettingsTabControl);
this.Controls.Add(this.SaveSettingsButton);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
@ -444,6 +489,8 @@ private void InitializeComponent()
this.EncryptionTabPage.PerformLayout();
this.ApplicationTabPage.ResumeLayout(false);
this.ApplicationTabPage.PerformLayout();
this.IntegrationTabPage.ResumeLayout(false);
this.IntegrationTabPage.PerformLayout();
this.ResumeLayout(false);
}
@ -483,5 +530,8 @@ private void InitializeComponent()
private System.Windows.Forms.CheckBox AutoSaveCheckBox;
private System.Windows.Forms.CheckBox SendToCheckBox;
private System.Windows.Forms.CheckBox IntegrateCheckBox;
private System.Windows.Forms.CheckBox MenuIconsCheckBox;
private System.Windows.Forms.TabPage IntegrationTabPage;
private System.Windows.Forms.CheckBox ToolbarColorCheckBox;
}
}

View file

@ -53,6 +53,8 @@ private void SetSettings(string value)
ps.AutoSave = AutoSaveCheckBox.Checked;
ps.SendTo = SendToCheckBox.Checked;
ps.MenuIntegrate = IntegrateCheckBox.Checked;
ps.MenuIcons = MenuIconsCheckBox.Checked;
ps.ColoredToolbar = ToolbarColorCheckBox.Checked;
ps.Save();
PublicVar.settingsChanged = true;
@ -73,6 +75,8 @@ private void SetSettings(string value)
AutoSaveCheckBox.Checked = true;
SendToCheckBox.Checked = false;
IntegrateCheckBox.Checked = false;
MenuIconsCheckBox.Checked = false;
ToolbarColorCheckBox.Checked = false;
}
}
@ -169,6 +173,14 @@ private void SettingsForm_Load(object sender, EventArgs e)
AutoSaveCheckBox.Checked = ps.AutoSave;
SendToCheckBox.Checked = ps.SendTo;
IntegrateCheckBox.Checked = ps.MenuIntegrate;
MenuIconsCheckBox.Checked = ps.MenuIcons;
ToolbarColorCheckBox.Checked = ps.ColoredToolbar;
if (!ps.ShowToolbar)
{
ToolbarColorCheckBox.Checked = false;
ToolbarColorCheckBox.Enabled = false;
}
if (ps.TheSalt != "")
{
@ -201,7 +213,7 @@ private void SaveSettingsButton_Click(object sender, EventArgs e)
/*Buttons*/
/*Color Panels*/
/*Settings Section*/
private void FontColorPanel_Click_1(object sender, EventArgs e)
{
colorDialog1.Color = FontColorPanel.BackColor;
@ -231,6 +243,19 @@ private void HighlightsColorPanel_Click(object sender, EventArgs e)
}
HighlightsColorPanel.BackColor = colorDialog1.Color;
}
/*Color Panels*/
private void ToolbarCheckBox_CheckedChanged(object sender, EventArgs e)
{
if (!ToolbarCheckBox.Checked)
{
ToolbarColorCheckBox.Checked = false;
ToolbarColorCheckBox.Enabled = false;
}
else
{
ToolbarColorCheckBox.Enabled = true;
}
}
/*Settings Section*/
}
}