diff --git a/media/dark-mode-connection.png b/media/dark-mode-connection.png new file mode 100644 index 00000000..bd79087a Binary files /dev/null and b/media/dark-mode-connection.png differ diff --git a/media/dark-mode.png b/media/dark-mode.png new file mode 100644 index 00000000..92fe0169 Binary files /dev/null and b/media/dark-mode.png differ diff --git a/media/light-mode.png b/media/light-mode.png new file mode 100644 index 00000000..5d71a748 Binary files /dev/null and b/media/light-mode.png differ diff --git a/src/EventGridExplorerLibrary/EventGridLibrary.cs b/src/EventGridExplorerLibrary/EventGridLibrary.cs index ac701cb0..cb34a5cc 100644 --- a/src/EventGridExplorerLibrary/EventGridLibrary.cs +++ b/src/EventGridExplorerLibrary/EventGridLibrary.cs @@ -47,8 +47,8 @@ public async Task> GetNamespacesAsync(strin public async Task> GetTopicsAsync(string resourceGroupName, string namespaceName, string hostname) { NamespaceTopicCollection namespaceTopicCollection = eventGridControlPlaneClient.GetNamespaceResource(resourceGroupName, namespaceName).GetNamespaceTopics(); - AsyncPageable pages = namespaceTopicCollection.GetAllAsync(); - IAsyncEnumerator enumerator = pages.GetAsyncEnumerator(); + var pages = namespaceTopicCollection.GetAllAsync(); + var enumerator = pages.GetAsyncEnumerator(); try { @@ -71,7 +71,7 @@ public async Task> GetEve { NamespaceTopicResource namespaceTopicResource = (await eventGridControlPlaneClient.GetNamespaceResource(resourceGroupName, namespaceName).GetNamespaceTopicAsync(topicName)).Value; NamespaceTopicEventSubscriptionCollection namespaceTopicEventSubscriptionCollection = namespaceTopicResource.GetNamespaceTopicEventSubscriptions(); - AsyncPageable pages = namespaceTopicEventSubscriptionCollection.GetAllAsync(); + var pages = namespaceTopicEventSubscriptionCollection.GetAllAsync(); return pages; } @@ -105,7 +105,7 @@ public async Task PublishEventAsync(string topicName, string eventSource, string public async Task PublishEventsAsync(string topicName, string eventSource, string eventType, List publishEvents) { - CloudEvent[] cloudEvents = new CloudEvent[publishEvents.Count]; + var cloudEvents = new CloudEvent[publishEvents.Count]; for (int i = 0; i < cloudEvents.Length; i++) { @@ -140,7 +140,7 @@ public async Task ReceiveEventsAsync(string topicName, string sub } } - public async Task EventActionsAsync(string action, List lockTokens, string topicName, string subscriptionName, WriteToLogDelegate writeToLog) + public async Task EventActionsAsync(string action, List lockTokens, string topicName, string subscriptionName, WriteToLogDelegate logAction) { if (lockTokens.Count > 0) { @@ -150,45 +150,45 @@ public async Task EventActionsAsync(string action, List lockTokens switch (action) { case "Acknowledge": - AcknowledgeResult acknowledgeResult = await dataPlaneClients[topicName].AcknowledgeCloudEventsAsync(topicName, subscriptionName, new AcknowledgeOptions(lockTokens)); + var acknowledgeResult = (await dataPlaneClients[topicName].AcknowledgeCloudEventsAsync(topicName, subscriptionName, new AcknowledgeOptions(lockTokens))).Value; succeededLockTokens = acknowledgeResult.SucceededLockTokens; failedLockTokens = acknowledgeResult.FailedLockTokens; break; case "Release": - ReleaseResult releaseResult = await dataPlaneClients[topicName].ReleaseCloudEventsAsync(topicName, subscriptionName, new ReleaseOptions(lockTokens)); + var releaseResult = (await dataPlaneClients[topicName].ReleaseCloudEventsAsync(topicName, subscriptionName, new ReleaseOptions(lockTokens))).Value; succeededLockTokens = releaseResult.SucceededLockTokens; failedLockTokens = releaseResult.FailedLockTokens; break; case "Reject": - RejectResult rejectResult = await dataPlaneClients[topicName].RejectCloudEventsAsync(topicName, subscriptionName, new RejectOptions(lockTokens)); + var rejectResult = (await dataPlaneClients[topicName].RejectCloudEventsAsync(topicName, subscriptionName, new RejectOptions(lockTokens))).Value; succeededLockTokens = rejectResult.SucceededLockTokens; failedLockTokens = rejectResult.FailedLockTokens; break; } - writeToLog($"Event Action: {action}"); + logAction($"Event Action: {action}"); - if (succeededLockTokens.Count > 0) + if (succeededLockTokens?.Count > 0) { - writeToLog($"Success Count: {succeededLockTokens.Count}"); - foreach (string lockToken in succeededLockTokens) + logAction($"Success Count: {succeededLockTokens.Count}"); + foreach (var lockToken in succeededLockTokens) { - writeToLog($"Lock Token: {lockToken}"); + logAction($"Lock Token: {lockToken}"); } } - if (failedLockTokens.Count > 0) + if (failedLockTokens?.Count > 0) { - writeToLog($"Failed Count: {failedLockTokens.Count}"); - foreach (FailedLockToken lockToken in failedLockTokens) + logAction($"Failed Count: {failedLockTokens.Count}"); + foreach (var lockToken in failedLockTokens) { - writeToLog($"Lock Token: {lockToken.LockToken}"); - writeToLog($"Error Code: {lockToken.Error.Code}"); - writeToLog($"Error Description: {lockToken.Error.Message}"); + logAction($"Lock Token: {lockToken.LockToken}"); + logAction($"Error Code: {lockToken.Error.Code}"); + logAction($"Error Description: {lockToken.Error.Message}"); } } - return failedLockTokens.Count == 0; + return failedLockTokens?.Count == 0; } return false; diff --git a/src/EventGridExplorerLibrary/Management/Clients/EventGridControlPlaneClient.cs b/src/EventGridExplorerLibrary/Management/Clients/EventGridControlPlaneClient.cs index e6804d6e..211d1ddc 100644 --- a/src/EventGridExplorerLibrary/Management/Clients/EventGridControlPlaneClient.cs +++ b/src/EventGridExplorerLibrary/Management/Clients/EventGridControlPlaneClient.cs @@ -61,7 +61,7 @@ public async Task CreateNamespaceTopicAsync(string resourceGroupName, st InputSchema = EventInputSchema.CloudEventSchemaV10, }; - ArmOperation azureOperation = await collection.CreateOrUpdateAsync(WaitUntil.Completed, namespaceTopicName, namespaceTopicData); + var azureOperation = await collection.CreateOrUpdateAsync(WaitUntil.Completed, namespaceTopicName, namespaceTopicData); NamespaceTopicResource result = azureOperation.Value; return result.Id; } @@ -134,7 +134,7 @@ public async Task CreateNamespaceTopicEventSubscriptionAsync(string reso return $"{subscriptionName} for topic {namespaceTopicName} already exists"; } - ArmOperation azureOperation = collection.CreateOrUpdate(WaitUntil.Completed, subscriptionName, namespaceTopicEventSubscriptionData); + var azureOperation = collection.CreateOrUpdate(WaitUntil.Completed, subscriptionName, namespaceTopicEventSubscriptionData); return azureOperation.Value.Id; } @@ -183,11 +183,11 @@ private FiltersConfiguration GetFiltersConfiguration(List i in filters) + foreach (var i in filters) { - eventGridFilterFactory.Key = i["Key"].ToString(); - eventGridFilterFactory.Value = i["Value"].ToString(); - eventGridFilterFactory.OperatorType = i["Operator"].ToString(); + eventGridFilterFactory.Key = i["Key"]; + eventGridFilterFactory.Value = i["Value"]; + eventGridFilterFactory.OperatorType = i["Operator"]; eventGridFilterFactory.FilterSelection(); } diff --git a/src/EventGridExplorerLibrary/Management/EventGridFilterFactory.cs b/src/EventGridExplorerLibrary/Management/EventGridFilterFactory.cs index 4d440715..87d925c0 100644 --- a/src/EventGridExplorerLibrary/Management/EventGridFilterFactory.cs +++ b/src/EventGridExplorerLibrary/Management/EventGridFilterFactory.cs @@ -25,25 +25,25 @@ public EventGridFilterFactory(FiltersConfiguration filtersConfiguration) public void FilterSelection() { - if (OperatorType.Equals("Boolean equals")) { AddFilterForBoolEquals(); }; - if (OperatorType.Equals("String is in")) { AddFilterForStringIn(); }; - if (OperatorType.Equals("String is not in")) { AddFilterForStringNotIn(); }; - if (OperatorType.Equals("String contains")) { AddFilterForStringContains(); }; - if (OperatorType.Equals("String does not contain")) { AddFilterForStringNotContains(); }; - if (OperatorType.Equals("String begins with")) { AddFilterForStringBeginsWith(); }; - if (OperatorType.Equals("String does not begin with")) { AddFilterForStringNotBeginsWith(); }; - if (OperatorType.Equals("String ends with")) { AddFilterForStringEndsWith(); }; - if (OperatorType.Equals("String does not end with")) { AddFilterForStringNotEndsWith(); }; - if (OperatorType.Equals("Number is less than")) { AddFilterForNumberLessThan(); }; - if (OperatorType.Equals("Number is greater than")) { AddFilterForNumberGreaterThan(); }; - if (OperatorType.Equals("Number is less than or equal to")) { AddFilterForNumberLessThanOrEquals(); }; - if (OperatorType.Equals("Number is greater than or equal to")) { AddFilterForNumberGreaterThanOrEquals(); }; - if (OperatorType.Equals("Number is in")) { AddFilterForNumberIn(); }; - if (OperatorType.Equals("Number is not in")) { AddFilterForNumberNotIn(); }; - if (OperatorType.Equals("Number is in range")) { AddFilterForNumberInRange(); }; - if (OperatorType.Equals("Number is not in range")) { AddFilterForNumberNotInRange(); }; - if (OperatorType.Equals("Is null or undefined")) { AddFilterForIsNullOrUndefined(); }; - if (OperatorType.Equals("Is not null")) { AddFilterForIsNotNull(); }; + if (OperatorType.Equals("Boolean equals")) { AddFilterForBoolEquals(); } + if (OperatorType.Equals("String is in")) { AddFilterForStringIn(); } + if (OperatorType.Equals("String is not in")) { AddFilterForStringNotIn(); } + if (OperatorType.Equals("String contains")) { AddFilterForStringContains(); } + if (OperatorType.Equals("String does not contain")) { AddFilterForStringNotContains(); } + if (OperatorType.Equals("String begins with")) { AddFilterForStringBeginsWith(); } + if (OperatorType.Equals("String does not begin with")) { AddFilterForStringNotBeginsWith(); } + if (OperatorType.Equals("String ends with")) { AddFilterForStringEndsWith(); } + if (OperatorType.Equals("String does not end with")) { AddFilterForStringNotEndsWith(); } + if (OperatorType.Equals("Number is less than")) { AddFilterForNumberLessThan(); } + if (OperatorType.Equals("Number is greater than")) { AddFilterForNumberGreaterThan(); } + if (OperatorType.Equals("Number is less than or equal to")) { AddFilterForNumberLessThanOrEquals(); } + if (OperatorType.Equals("Number is greater than or equal to")) { AddFilterForNumberGreaterThanOrEquals(); } + if (OperatorType.Equals("Number is in")) { AddFilterForNumberIn(); } + if (OperatorType.Equals("Number is not in")) { AddFilterForNumberNotIn(); } + if (OperatorType.Equals("Number is in range")) { AddFilterForNumberInRange(); } + if (OperatorType.Equals("Number is not in range")) { AddFilterForNumberNotInRange(); } + if (OperatorType.Equals("Is null or undefined")) { AddFilterForIsNullOrUndefined(); } + if (OperatorType.Equals("Is not null")) { AddFilterForIsNotNull(); } } /// @@ -228,7 +228,7 @@ public void AddFilterForNumberNotInRange() string[] filterValuesList = Value.Split(','); foreach (string filterValue in filterValuesList) { - List doubleRangeValues = new List(); + var doubleRangeValues = new List(); var rangeValues = filterValue.Split('-'); foreach (string rangeValue in rangeValues) { @@ -246,7 +246,7 @@ public void AddFilterForNumberInRange() string[] filterValuesList = Value.Split(','); foreach (string filterValue in filterValuesList) { - List doubleRangeValues = new List(); + var doubleRangeValues = new List(); var rangeValues = filterValue.Split('-'); foreach (string rangeValue in rangeValues) { diff --git a/src/ServiceBusExplorer.sln.DotSettings b/src/ServiceBusExplorer.sln.DotSettings index 588a6dbb..7c93623a 100644 --- a/src/ServiceBusExplorer.sln.DotSettings +++ b/src/ServiceBusExplorer.sln.DotSettings @@ -535,6 +535,21 @@ II.2.12 <HandlesEvent /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="T" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> + <Policy><Descriptor Staticness="Static" AccessRightKinds="Private" Description="Static readonly fields (private)"><ElementKinds><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Private" Description="Constant fields (private)"><ElementKinds><Kind Name="CONSTANT_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Type parameters"><ElementKinds><Kind Name="TYPE_PARAMETER" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="T" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Instance" AccessRightKinds="Private" Description="Instance fields (private)"><ElementKinds><Kind Name="FIELD" /><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="aaBb" /></Policy> + <Policy><Descriptor Staticness="Instance" AccessRightKinds="Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="Instance fields (not private)"><ElementKinds><Kind Name="FIELD" /><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Local variables"><ElementKinds><Kind Name="LOCAL_VARIABLE" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="aaBb" /></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="Constant fields (not private)"><ElementKinds><Kind Name="CONSTANT_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Static" AccessRightKinds="Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="Static fields (not private)"><ElementKinds><Kind Name="FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Parameters"><ElementKinds><Kind Name="PARAMETER" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="aaBb" /></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Enum members"><ElementKinds><Kind Name="ENUM_MEMBER" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Types and namespaces"><ElementKinds><Kind Name="NAMESPACE" /><Kind Name="CLASS" /><Kind Name="STRUCT" /><Kind Name="ENUM" /><Kind Name="DELEGATE" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Local constants"><ElementKinds><Kind Name="LOCAL_CONSTANT" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="aaBb" /></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Interfaces"><ElementKinds><Kind Name="INTERFACE" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="I" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Static" AccessRightKinds="Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="Static readonly fields (not private)"><ElementKinds><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Static" AccessRightKinds="Private" Description="Static fields (private)"><ElementKinds><Kind Name="FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="aaBb" /></Policy> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> @@ -593,10 +608,12 @@ II.2.12 <HandlesEvent /> True True True + True True True True True + True True True True diff --git a/src/ServiceBusExplorer/Controls/AccidentalDeletionPreventionCheckControl.cs b/src/ServiceBusExplorer/Controls/AccidentalDeletionPreventionCheckControl.cs index 4b02d7f4..f5fa413a 100644 --- a/src/ServiceBusExplorer/Controls/AccidentalDeletionPreventionCheckControl.cs +++ b/src/ServiceBusExplorer/Controls/AccidentalDeletionPreventionCheckControl.cs @@ -1,4 +1,5 @@ -using System; +using ServiceBusExplorer.Helpers; +using System; using System.Drawing; using System.Windows.Forms; @@ -15,6 +16,7 @@ public partial class AccidentalDeletionPreventionCheckControl : UserControl public AccidentalDeletionPreventionCheckControl() { InitializeComponent(); + ThemeManager.Apply(this); } #endregion @@ -55,3 +57,4 @@ public bool CheckAcceptanceAndNotifyUser() #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/CheckBoxComboBox.cs b/src/ServiceBusExplorer/Controls/CheckBoxComboBox.cs index aaadacbb..e08e8ff4 100644 --- a/src/ServiceBusExplorer/Controls/CheckBoxComboBox.cs +++ b/src/ServiceBusExplorer/Controls/CheckBoxComboBox.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Martin Lottering : 2007-10-27 // -------------------------------- @@ -18,6 +18,7 @@ #region Using Directives +using ServiceBusExplorer.Helpers; using System; using System.Collections.Generic; using System.ComponentModel; @@ -35,6 +36,7 @@ public partial class CheckBoxComboBox : PopupComboBox public CheckBoxComboBox() { InitializeComponent(); + ThemeManager.Apply(this); _CheckBoxProperties = new CheckBoxProperties(); _CheckBoxProperties.PropertyChanged += _CheckBoxProperties_PropertyChanged; // Dumps the ListControl in a(nother) Container to ensure the ScrollBar on the ListControl does not @@ -909,3 +911,4 @@ protected void OnPropertyChanged() #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/DashboardControl.cs b/src/ServiceBusExplorer/Controls/DashboardControl.cs index cbda62b4..bc34c8b3 100644 --- a/src/ServiceBusExplorer/Controls/DashboardControl.cs +++ b/src/ServiceBusExplorer/Controls/DashboardControl.cs @@ -8,7 +8,7 @@ namespace ServiceBusExplorer.Controls { - public partial class DashboardControl : UserControl + public class DashboardControl : UserControl { private DataGridView dataGridView; private Button refreshButton; diff --git a/src/ServiceBusExplorer/Controls/HandleConsumerGroupControl.Designer.cs b/src/ServiceBusExplorer/Controls/HandleConsumerGroupControl.Designer.cs index d3ac9efc..3d385062 100644 --- a/src/ServiceBusExplorer/Controls/HandleConsumerGroupControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HandleConsumerGroupControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class HandleConsumerGroupControl { @@ -51,7 +51,7 @@ private void InitializeComponent() // // tabPageDescription // - this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageDescription.Controls.Add(this.grouperName); this.tabPageDescription.Controls.Add(this.grouperConsumerGroupProperties); this.tabPageDescription.Controls.Add(this.grouperConsumerGroupInformation); @@ -64,16 +64,16 @@ private void InitializeComponent() // // grouperName // - this.grouperName.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperName.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperName.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperName.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperName.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperName.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperName.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperName.BorderThickness = 1F; this.grouperName.Controls.Add(this.lblRelativeURI); this.grouperName.Controls.Add(this.txtName); - this.grouperName.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperName.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperName.ForeColor = System.Drawing.Color.White; + this.grouperName.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperName.GroupImage = null; this.grouperName.GroupTitle = "Name"; this.grouperName.Location = new System.Drawing.Point(16, 8); @@ -101,7 +101,7 @@ private void InitializeComponent() // this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtName.BackColor = System.Drawing.SystemColors.Window; + this.txtName.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtName.Location = new System.Drawing.Point(16, 44); this.txtName.Name = "txtName"; @@ -113,16 +113,16 @@ private void InitializeComponent() // this.grouperConsumerGroupProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperConsumerGroupProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperConsumerGroupProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperConsumerGroupProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperConsumerGroupProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperConsumerGroupProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperConsumerGroupProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperConsumerGroupProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperConsumerGroupProperties.BorderThickness = 1F; this.grouperConsumerGroupProperties.Controls.Add(this.txtUserMetadata); this.grouperConsumerGroupProperties.Controls.Add(this.lblUserMetadata); - this.grouperConsumerGroupProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperConsumerGroupProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperConsumerGroupProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperConsumerGroupProperties.ForeColor = System.Drawing.Color.White; + this.grouperConsumerGroupProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperConsumerGroupProperties.GroupImage = null; this.grouperConsumerGroupProperties.GroupTitle = "Consumer Group Properties"; this.grouperConsumerGroupProperties.Location = new System.Drawing.Point(16, 96); @@ -141,7 +141,7 @@ private void InitializeComponent() this.txtUserMetadata.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.txtUserMetadata.BackColor = System.Drawing.SystemColors.Window; + this.txtUserMetadata.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtUserMetadata.Location = new System.Drawing.Point(16, 48); this.txtUserMetadata.MaxLength = 0; this.txtUserMetadata.Multiline = true; @@ -164,15 +164,15 @@ private void InitializeComponent() this.grouperConsumerGroupInformation.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.grouperConsumerGroupInformation.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperConsumerGroupInformation.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperConsumerGroupInformation.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperConsumerGroupInformation.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperConsumerGroupInformation.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperConsumerGroupInformation.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperConsumerGroupInformation.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperConsumerGroupInformation.BorderThickness = 1F; this.grouperConsumerGroupInformation.Controls.Add(this.propertyListView); - this.grouperConsumerGroupInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperConsumerGroupInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperConsumerGroupInformation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperConsumerGroupInformation.ForeColor = System.Drawing.Color.White; + this.grouperConsumerGroupInformation.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperConsumerGroupInformation.GroupImage = null; this.grouperConsumerGroupInformation.GroupTitle = "Consumer Group Information"; this.grouperConsumerGroupInformation.Location = new System.Drawing.Point(640, 8); @@ -235,7 +235,7 @@ private void InitializeComponent() // // tabPagePartitions // - this.tabPagePartitions.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPagePartitions.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPagePartitions.Controls.Add(this.grouperPartitionsList); this.tabPagePartitions.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPagePartitions.Location = new System.Drawing.Point(4, 24); @@ -250,15 +250,15 @@ private void InitializeComponent() this.grouperPartitionsList.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.grouperPartitionsList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperPartitionsList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperPartitionsList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperPartitionsList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperPartitionsList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperPartitionsList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPartitionsList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperPartitionsList.BorderThickness = 1F; this.grouperPartitionsList.Controls.Add(this.partitionsDataGridView); - this.grouperPartitionsList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPartitionsList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperPartitionsList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperPartitionsList.ForeColor = System.Drawing.Color.White; + this.grouperPartitionsList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperPartitionsList.GroupImage = null; this.grouperPartitionsList.GroupTitle = "Partitions"; this.grouperPartitionsList.Location = new System.Drawing.Point(16, 8); @@ -281,7 +281,7 @@ private void InitializeComponent() this.partitionsDataGridView.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.partitionsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.partitionsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.partitionsDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.partitionsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.partitionsDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -302,10 +302,10 @@ private void InitializeComponent() // btnRefresh // this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRefresh.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRefresh.Location = new System.Drawing.Point(760, 504); @@ -321,10 +321,10 @@ private void InitializeComponent() // btnCancelUpdate // this.btnCancelUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancelUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancelUpdate.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancelUpdate.Location = new System.Drawing.Point(920, 504); @@ -340,10 +340,10 @@ private void InitializeComponent() // btnCreateDelete // this.btnCreateDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCreateDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCreateDelete.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCreateDelete.Location = new System.Drawing.Point(840, 504); @@ -375,10 +375,10 @@ private void InitializeComponent() // btnGetPartitions // this.btnGetPartitions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnGetPartitions.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnGetPartitions.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnGetPartitions.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnGetPartitions.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnGetPartitions.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnGetPartitions.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnGetPartitions.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnGetPartitions.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnGetPartitions.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnGetPartitions.ForeColor = System.Drawing.SystemColors.ControlText; this.btnGetPartitions.Location = new System.Drawing.Point(680, 504); @@ -393,7 +393,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.btnGetPartitions); this.Controls.Add(this.mainTabControl); this.Controls.Add(this.btnRefresh); @@ -442,3 +442,4 @@ private void InitializeComponent() private System.Windows.Forms.Button btnGetPartitions; } } + diff --git a/src/ServiceBusExplorer/Controls/HandleConsumerGroupControl.cs b/src/ServiceBusExplorer/Controls/HandleConsumerGroupControl.cs index 46dd1b85..8a5f42bd 100644 --- a/src/ServiceBusExplorer/Controls/HandleConsumerGroupControl.cs +++ b/src/ServiceBusExplorer/Controls/HandleConsumerGroupControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -119,6 +119,7 @@ public HandleConsumerGroupControl(WriteToLogDelegate writeToLog, ServiceBusHelpe this.eventHubName = eventHubName; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); } #endregion @@ -806,3 +807,4 @@ private void txtName_TextChanged(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/HandleEventGridNamespaceControl.Designer.cs b/src/ServiceBusExplorer/Controls/HandleEventGridNamespaceControl.Designer.cs index 1fbdedec..3a883961 100644 --- a/src/ServiceBusExplorer/Controls/HandleEventGridNamespaceControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HandleEventGridNamespaceControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class HandleEventGridNamespaceControl { @@ -42,16 +42,16 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.namespacePropertyListView.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.namespacePropertyListView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.namespacePropertyListView.BackgroundGradientColor = System.Drawing.Color.White; + this.namespacePropertyListView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.namespacePropertyListView.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.namespacePropertyListView.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.namespacePropertyListView.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.namespacePropertyListView.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.namespacePropertyListView.BorderThickness = 1F; this.namespacePropertyListView.Controls.Add(this.namespaceListView); this.namespacePropertyListView.Controls.Add(this.propertyGrid); - this.namespacePropertyListView.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.namespacePropertyListView.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.namespacePropertyListView.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.namespacePropertyListView.ForeColor = System.Drawing.Color.White; + this.namespacePropertyListView.ForeColor = System.Drawing.SystemColors.ControlText; this.namespacePropertyListView.GroupImage = null; this.namespacePropertyListView.GroupTitle = "Namespace Properties"; this.namespacePropertyListView.Location = new System.Drawing.Point(68, 48); @@ -110,7 +110,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.namespacePropertyListView); this.Name = "HandleEventGridNamespaceControl"; this.Size = new System.Drawing.Size(1472, 811); @@ -127,3 +127,4 @@ private void InitializeComponent() private ReadOnlyPropertyGrid propertyGrid; } } + diff --git a/src/ServiceBusExplorer/Controls/HandleEventGridNamespaceControl.cs b/src/ServiceBusExplorer/Controls/HandleEventGridNamespaceControl.cs index 715075cf..7c5ee689 100644 --- a/src/ServiceBusExplorer/Controls/HandleEventGridNamespaceControl.cs +++ b/src/ServiceBusExplorer/Controls/HandleEventGridNamespaceControl.cs @@ -1,4 +1,5 @@ -using Azure.ResourceManager.EventGrid; +using ServiceBusExplorer.Helpers; +using Azure.ResourceManager.EventGrid; using ServiceBusExplorer.UIHelpers; using System; using System.Collections.Generic; @@ -29,6 +30,7 @@ public HandleEventGridNamespaceControl(EventGridNamespaceResource eventGridNames { this.eventGridNamespace = eventGridNamespace; InitializeComponent(); + ThemeManager.Apply(this); ConfigureReadUserInterface(); } @@ -115,3 +117,4 @@ private void listView_Resize(object sender, EventArgs e) } } } + diff --git a/src/ServiceBusExplorer/Controls/HandleEventGridSubscriptionControl.Designer.cs b/src/ServiceBusExplorer/Controls/HandleEventGridSubscriptionControl.Designer.cs index 10a96d98..0bb605e0 100644 --- a/src/ServiceBusExplorer/Controls/HandleEventGridSubscriptionControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HandleEventGridSubscriptionControl.Designer.cs @@ -1,4 +1,4 @@ -using System.Windows.Forms; +using System.Windows.Forms; namespace ServiceBusExplorer.Controls { @@ -61,16 +61,16 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.subscriptionPropertyListView.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.subscriptionPropertyListView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.subscriptionPropertyListView.BackgroundGradientColor = System.Drawing.Color.White; + this.subscriptionPropertyListView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.subscriptionPropertyListView.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.subscriptionPropertyListView.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.subscriptionPropertyListView.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.subscriptionPropertyListView.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.subscriptionPropertyListView.BorderThickness = 1F; this.subscriptionPropertyListView.Controls.Add(this.subscriptionListView); this.subscriptionPropertyListView.Controls.Add(this.propertyGrid); - this.subscriptionPropertyListView.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.subscriptionPropertyListView.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.subscriptionPropertyListView.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.subscriptionPropertyListView.ForeColor = System.Drawing.Color.White; + this.subscriptionPropertyListView.ForeColor = System.Drawing.SystemColors.ControlText; this.subscriptionPropertyListView.GroupImage = null; this.subscriptionPropertyListView.GroupTitle = "Subscription Properties"; this.subscriptionPropertyListView.Location = new System.Drawing.Point(1081, 44); @@ -130,18 +130,18 @@ private void InitializeComponent() this.receivedEventsGrouper.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.receivedEventsGrouper.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.receivedEventsGrouper.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.receivedEventsGrouper.BackgroundGradientColor = System.Drawing.Color.White; + this.receivedEventsGrouper.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.receivedEventsGrouper.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.receivedEventsGrouper.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.receivedEventsGrouper.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.receivedEventsGrouper.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.receivedEventsGrouper.BorderThickness = 1F; this.receivedEventsGrouper.Controls.Add(this.btnAck); this.receivedEventsGrouper.Controls.Add(this.btnRel); this.receivedEventsGrouper.Controls.Add(this.btnRej); this.receivedEventsGrouper.Controls.Add(this.eventsDataGridView); - this.receivedEventsGrouper.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.receivedEventsGrouper.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.receivedEventsGrouper.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.receivedEventsGrouper.ForeColor = System.Drawing.Color.White; + this.receivedEventsGrouper.ForeColor = System.Drawing.SystemColors.ControlText; this.receivedEventsGrouper.GroupImage = null; this.receivedEventsGrouper.GroupTitle = "Received Events"; this.receivedEventsGrouper.Location = new System.Drawing.Point(41, 44); @@ -159,10 +159,10 @@ private void InitializeComponent() // btnAck // this.btnAck.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnAck.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnAck.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnAck.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnAck.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnAck.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnAck.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnAck.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnAck.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnAck.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnAck.ForeColor = System.Drawing.SystemColors.ControlText; this.btnAck.Location = new System.Drawing.Point(548, 365); @@ -177,10 +177,10 @@ private void InitializeComponent() // btnRel // this.btnRel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRel.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRel.Location = new System.Drawing.Point(697, 365); @@ -195,10 +195,10 @@ private void InitializeComponent() // btnRej // this.btnRej.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRej.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRej.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRej.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRej.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRej.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRej.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRej.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRej.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRej.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRej.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRej.Location = new System.Drawing.Point(844, 365); @@ -218,7 +218,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.eventsDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.eventsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.eventsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.eventsDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.eventsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.eventsDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { @@ -245,15 +245,15 @@ private void InitializeComponent() // this.grouperCaption.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.grouperCaption.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.grouperCaption.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperCaption.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperCaption.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperCaption.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperCaption.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperCaption.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCaption.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperCaption.BorderThickness = 1F; this.grouperCaption.Controls.Add(this.receiveEventInfo); - this.grouperCaption.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCaption.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperCaption.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperCaption.ForeColor = System.Drawing.Color.White; + this.grouperCaption.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperCaption.GroupImage = null; this.grouperCaption.GroupTitle = "Event Info"; this.grouperCaption.Location = new System.Drawing.Point(41, 493); @@ -308,7 +308,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.subscriptionPropertyListView); this.Controls.Add(this.receivedEventsGrouper); this.Controls.Add(this.grouperCaption); @@ -340,3 +340,4 @@ private void InitializeComponent() private Button btnRej; } } + diff --git a/src/ServiceBusExplorer/Controls/HandleEventGridSubscriptionControl.cs b/src/ServiceBusExplorer/Controls/HandleEventGridSubscriptionControl.cs index 2d03ecc2..16e5a6df 100644 --- a/src/ServiceBusExplorer/Controls/HandleEventGridSubscriptionControl.cs +++ b/src/ServiceBusExplorer/Controls/HandleEventGridSubscriptionControl.cs @@ -1,4 +1,4 @@ -using Azure.Messaging; +using Azure.Messaging; using Azure.Messaging.EventGrid.Namespaces; using Azure.ResourceManager.EventGrid; using EventGridExplorerLibrary; @@ -58,6 +58,7 @@ public HandleEventGridSubscriptionControl(WriteToLogDelegate writeToLog, EventGr this.eventGridLibrary = eventGridLibrary; InitializeComponent(); + ThemeManager.Apply(this); ConfigureReadUserInterface(); } @@ -186,7 +187,7 @@ public void DisplayEventsReceived(ReceiveResult allEvents) } receivedEvents = allEvents.Value; - List cloudEvents = new List(); + var cloudEvents = new List(); foreach (var cloudEvent in receivedEvents) { @@ -267,8 +268,8 @@ private void listView_Resize(object sender, EventArgs e) private async void btnEventAction_Click(object sender, EventArgs e) { - List lockTokens = new List(); - List selectedRows = new List(); + var lockTokens = new List(); + var selectedRows = new List(); var button = sender as Button; foreach (DataGridViewRow row in eventsDataGridView.Rows) @@ -301,3 +302,4 @@ private async void btnEventAction_Click(object sender, EventArgs e) } } } + diff --git a/src/ServiceBusExplorer/Controls/HandleEventGridTopicControl.Designer.cs b/src/ServiceBusExplorer/Controls/HandleEventGridTopicControl.Designer.cs index 0e76d7a5..2d38768a 100644 --- a/src/ServiceBusExplorer/Controls/HandleEventGridTopicControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HandleEventGridTopicControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class HandleEventGridTopicControl { @@ -74,16 +74,16 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.topicPropertyListView.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.topicPropertyListView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.topicPropertyListView.BackgroundGradientColor = System.Drawing.Color.White; + this.topicPropertyListView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.topicPropertyListView.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.topicPropertyListView.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.topicPropertyListView.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.topicPropertyListView.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.topicPropertyListView.BorderThickness = 1F; this.topicPropertyListView.Controls.Add(this.topicListView); this.topicPropertyListView.Controls.Add(this.propertyGrid); - this.topicPropertyListView.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.topicPropertyListView.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.topicPropertyListView.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.topicPropertyListView.ForeColor = System.Drawing.Color.White; + this.topicPropertyListView.ForeColor = System.Drawing.SystemColors.ControlText; this.topicPropertyListView.GroupImage = null; this.topicPropertyListView.GroupTitle = "Topic Properties"; this.topicPropertyListView.Location = new System.Drawing.Point(68, 48); @@ -111,7 +111,7 @@ private void InitializeComponent() this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSize = true; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.topicPropertyListView); this.Name = "HandleEventGridTopicControl"; this.Size = new System.Drawing.Size(1472, 811); @@ -128,3 +128,4 @@ private void InitializeComponent() private ReadOnlyPropertyGrid propertyGrid; } } + diff --git a/src/ServiceBusExplorer/Controls/HandleEventGridTopicControl.cs b/src/ServiceBusExplorer/Controls/HandleEventGridTopicControl.cs index 0d3798dc..207ed6e4 100644 --- a/src/ServiceBusExplorer/Controls/HandleEventGridTopicControl.cs +++ b/src/ServiceBusExplorer/Controls/HandleEventGridTopicControl.cs @@ -1,4 +1,5 @@ -using Azure.ResourceManager.EventGrid; +using ServiceBusExplorer.Helpers; +using Azure.ResourceManager.EventGrid; using ServiceBusExplorer.UIHelpers; using System; using System.Collections.Generic; @@ -30,6 +31,7 @@ public HandleEventGridTopicControl(NamespaceTopicResource topic, string hostname { this.topic = topic; InitializeComponent(); + ThemeManager.Apply(this); ConfigureReadUserInterface(hostname); } @@ -117,3 +119,4 @@ private void listView_Resize(object sender, EventArgs e) } } } + diff --git a/src/ServiceBusExplorer/Controls/HandleEventHubControl.Designer.cs b/src/ServiceBusExplorer/Controls/HandleEventHubControl.Designer.cs index e21ca07c..b84871e1 100644 --- a/src/ServiceBusExplorer/Controls/HandleEventHubControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HandleEventHubControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class HandleEventHubControl { @@ -61,7 +61,7 @@ private void InitializeComponent() // // tabPageDescription // - this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageDescription.Controls.Add(this.grouperPath); this.tabPageDescription.Controls.Add(this.grouperEventHubProperties); this.tabPageDescription.Controls.Add(this.grouperEventHubInformation); @@ -74,16 +74,16 @@ private void InitializeComponent() // // grouperPath // - this.grouperPath.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperPath.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperPath.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperPath.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperPath.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperPath.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPath.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperPath.BorderThickness = 1F; this.grouperPath.Controls.Add(this.lblRelativeURI); this.grouperPath.Controls.Add(this.txtPath); - this.grouperPath.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPath.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperPath.ForeColor = System.Drawing.Color.White; + this.grouperPath.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperPath.GroupImage = null; this.grouperPath.GroupTitle = "Path"; this.grouperPath.Location = new System.Drawing.Point(16, 8); @@ -111,7 +111,7 @@ private void InitializeComponent() // this.txtPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtPath.BackColor = System.Drawing.SystemColors.Window; + this.txtPath.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtPath.Location = new System.Drawing.Point(16, 44); this.txtPath.Name = "txtPath"; @@ -123,10 +123,10 @@ private void InitializeComponent() // this.grouperEventHubProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperEventHubProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperEventHubProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperEventHubProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperEventHubProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperEventHubProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperEventHubProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEventHubProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperEventHubProperties.BorderThickness = 1F; this.grouperEventHubProperties.Controls.Add(this.lblMessageRetentionInDaysValue); this.grouperEventHubProperties.Controls.Add(this.lblMessageRetentionInDays); @@ -136,9 +136,9 @@ private void InitializeComponent() this.grouperEventHubProperties.Controls.Add(this.lblPartitionCountValue); this.grouperEventHubProperties.Controls.Add(this.txtUserMetadata); this.grouperEventHubProperties.Controls.Add(this.lblUserMetadata); - this.grouperEventHubProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEventHubProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperEventHubProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperEventHubProperties.ForeColor = System.Drawing.Color.White; + this.grouperEventHubProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperEventHubProperties.GroupImage = null; this.grouperEventHubProperties.GroupTitle = "Event Hub Properties"; this.grouperEventHubProperties.Location = new System.Drawing.Point(16, 96); @@ -178,9 +178,9 @@ private void InitializeComponent() // this.trackBarMessageRetentionInDays.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.trackBarMessageRetentionInDays.BackColor = System.Drawing.Color.Transparent; - this.trackBarMessageRetentionInDays.BorderColor = System.Drawing.Color.Black; + this.trackBarMessageRetentionInDays.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.trackBarMessageRetentionInDays.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.trackBarMessageRetentionInDays.ForeColor = System.Drawing.Color.Black; + this.trackBarMessageRetentionInDays.ForeColor = System.Drawing.SystemColors.ControlText; this.trackBarMessageRetentionInDays.IndentHeight = 6; this.trackBarMessageRetentionInDays.LargeChange = 1; this.trackBarMessageRetentionInDays.Location = new System.Drawing.Point(16, 308); @@ -215,9 +215,9 @@ private void InitializeComponent() // this.trackBarPartitionCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.trackBarPartitionCount.BackColor = System.Drawing.Color.Transparent; - this.trackBarPartitionCount.BorderColor = System.Drawing.Color.Black; + this.trackBarPartitionCount.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.trackBarPartitionCount.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.trackBarPartitionCount.ForeColor = System.Drawing.Color.Black; + this.trackBarPartitionCount.ForeColor = System.Drawing.SystemColors.ControlText; this.trackBarPartitionCount.IndentHeight = 6; this.trackBarPartitionCount.LargeChange = 1; this.trackBarPartitionCount.Location = new System.Drawing.Point(312, 308); @@ -254,7 +254,7 @@ private void InitializeComponent() this.txtUserMetadata.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.txtUserMetadata.BackColor = System.Drawing.SystemColors.Window; + this.txtUserMetadata.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtUserMetadata.Location = new System.Drawing.Point(16, 48); this.txtUserMetadata.MaxLength = 0; this.txtUserMetadata.Multiline = true; @@ -277,15 +277,15 @@ private void InitializeComponent() this.grouperEventHubInformation.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.grouperEventHubInformation.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperEventHubInformation.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperEventHubInformation.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperEventHubInformation.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperEventHubInformation.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperEventHubInformation.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEventHubInformation.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperEventHubInformation.BorderThickness = 1F; this.grouperEventHubInformation.Controls.Add(this.propertyListView); - this.grouperEventHubInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEventHubInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperEventHubInformation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperEventHubInformation.ForeColor = System.Drawing.Color.White; + this.grouperEventHubInformation.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperEventHubInformation.GroupImage = null; this.grouperEventHubInformation.GroupTitle = "Event Hub Information"; this.grouperEventHubInformation.Location = new System.Drawing.Point(640, 8); @@ -348,7 +348,7 @@ private void InitializeComponent() // // tabPageAuthorization // - this.tabPageAuthorization.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageAuthorization.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageAuthorization.Controls.Add(this.grouperAuthorizationRuleList); this.tabPageAuthorization.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageAuthorization.Location = new System.Drawing.Point(4, 24); @@ -362,15 +362,15 @@ private void InitializeComponent() this.grouperAuthorizationRuleList.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.grouperAuthorizationRuleList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAuthorizationRuleList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAuthorizationRuleList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAuthorizationRuleList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAuthorizationRuleList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAuthorizationRuleList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAuthorizationRuleList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAuthorizationRuleList.BorderThickness = 1F; this.grouperAuthorizationRuleList.Controls.Add(this.authorizationRulesDataGridView); - this.grouperAuthorizationRuleList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAuthorizationRuleList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAuthorizationRuleList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAuthorizationRuleList.ForeColor = System.Drawing.Color.White; + this.grouperAuthorizationRuleList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAuthorizationRuleList.GroupImage = null; this.grouperAuthorizationRuleList.GroupTitle = "Authorization Rule List"; this.grouperAuthorizationRuleList.Location = new System.Drawing.Point(16, 8); @@ -392,7 +392,7 @@ private void InitializeComponent() this.authorizationRulesDataGridView.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.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.authorizationRulesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.authorizationRulesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.authorizationRulesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -416,10 +416,10 @@ private void InitializeComponent() // btnRefresh // this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRefresh.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRefresh.Location = new System.Drawing.Point(680, 504); @@ -435,10 +435,10 @@ private void InitializeComponent() // btnChangeStatus // this.btnChangeStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnChangeStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnChangeStatus.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnChangeStatus.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnChangeStatus.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnChangeStatus.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnChangeStatus.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnChangeStatus.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnChangeStatus.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnChangeStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnChangeStatus.ForeColor = System.Drawing.SystemColors.ControlText; this.btnChangeStatus.Location = new System.Drawing.Point(760, 504); @@ -454,10 +454,10 @@ private void InitializeComponent() // btnCancelUpdate // this.btnCancelUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancelUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancelUpdate.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancelUpdate.Location = new System.Drawing.Point(920, 504); @@ -473,10 +473,10 @@ private void InitializeComponent() // btnCreateDelete // this.btnCreateDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCreateDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCreateDelete.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCreateDelete.Location = new System.Drawing.Point(840, 504); @@ -516,7 +516,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.mainTabControl); this.Controls.Add(this.btnRefresh); this.Controls.Add(this.btnChangeStatus); @@ -575,3 +575,4 @@ private void InitializeComponent() private System.Windows.Forms.Label lblMessageRetentionInDaysValue; } } + diff --git a/src/ServiceBusExplorer/Controls/HandleEventHubControl.cs b/src/ServiceBusExplorer/Controls/HandleEventHubControl.cs index 49f02f99..52af0715 100644 --- a/src/ServiceBusExplorer/Controls/HandleEventHubControl.cs +++ b/src/ServiceBusExplorer/Controls/HandleEventHubControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -113,6 +113,7 @@ public HandleEventHubControl(WriteToLogDelegate writeToLog, ServiceBusHelper ser this.eventHubDescription = eventHubDescription; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); } #endregion @@ -197,7 +198,8 @@ private void InitializeControls() // Initialize textboxes txtPath.ReadOnly = true; - txtPath.BackColor = SystemColors.Window; + txtPath.BackColor = ThemeManager.IsDark ? ThemeManager.SurfaceLight : SystemColors.Window; + txtPath.ForeColor = ThemeManager.IsDark ? ThemeManager.Foreground : SystemColors.WindowText; txtPath.GotFocus += textBox_GotFocus; // TrackBar @@ -996,3 +998,4 @@ private void txtPath_TextChanged(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/HandleNotificationHubControl.cs b/src/ServiceBusExplorer/Controls/HandleNotificationHubControl.cs index 702ee398..cb76937e 100644 --- a/src/ServiceBusExplorer/Controls/HandleNotificationHubControl.cs +++ b/src/ServiceBusExplorer/Controls/HandleNotificationHubControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -205,6 +205,7 @@ public HandleNotificationHubControl(WriteToLogDelegate writeToLog, this.notificationHubDescription = notificationHubDescription; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); } #endregion @@ -394,7 +395,8 @@ private void InitializeControls() // Initialize textboxes txtPath.ReadOnly = true; - txtPath.BackColor = SystemColors.Window; + txtPath.BackColor = ThemeManager.IsDark ? ThemeManager.SurfaceLight : SystemColors.Window; + txtPath.ForeColor = ThemeManager.IsDark ? ThemeManager.Foreground : SystemColors.WindowText; txtPath.GotFocus += textBox_GotFocus; toolTip.SetToolTip(txtPath, PathTooltip); @@ -3661,3 +3663,4 @@ protected override void Dispose(bool disposing) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/HandleNotificationHubControl.designer.cs b/src/ServiceBusExplorer/Controls/HandleNotificationHubControl.designer.cs index 63eba498..b28be4c5 100644 --- a/src/ServiceBusExplorer/Controls/HandleNotificationHubControl.designer.cs +++ b/src/ServiceBusExplorer/Controls/HandleNotificationHubControl.designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class HandleNotificationHubControl { @@ -343,10 +343,10 @@ private void InitializeComponent() // btnSend // this.btnSend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSend.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnSend.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSend.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSend.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnSend.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnSend.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnSend.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnSend.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnSend.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSend.ForeColor = System.Drawing.SystemColors.ControlText; this.btnSend.Location = new System.Drawing.Point(680, 504); @@ -386,7 +386,7 @@ private void InitializeComponent() // // tabPageDescription // - this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageDescription.Controls.Add(this.grouperNotificationHubInformation); this.tabPageDescription.Controls.Add(this.grouperUserMetadata); this.tabPageDescription.Controls.Add(this.grouperGoogleCloudMessaggingSettings); @@ -407,15 +407,15 @@ private void InitializeComponent() // this.grouperNotificationHubInformation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperNotificationHubInformation.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperNotificationHubInformation.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperNotificationHubInformation.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperNotificationHubInformation.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperNotificationHubInformation.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperNotificationHubInformation.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperNotificationHubInformation.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperNotificationHubInformation.BorderThickness = 1F; this.grouperNotificationHubInformation.Controls.Add(this.propertyListView); - this.grouperNotificationHubInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperNotificationHubInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperNotificationHubInformation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperNotificationHubInformation.ForeColor = System.Drawing.Color.White; + this.grouperNotificationHubInformation.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperNotificationHubInformation.GroupImage = null; this.grouperNotificationHubInformation.GroupTitle = "Notification Hub Information"; this.grouperNotificationHubInformation.Location = new System.Drawing.Point(656, 112); @@ -463,17 +463,17 @@ private void InitializeComponent() // this.grouperUserMetadata.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperUserMetadata.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperUserMetadata.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperUserMetadata.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperUserMetadata.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperUserMetadata.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperUserMetadata.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperUserMetadata.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperUserMetadata.BorderThickness = 1F; this.grouperUserMetadata.Controls.Add(this.txtUserMetadata); this.grouperUserMetadata.Controls.Add(this.lblUserMetadata); this.grouperUserMetadata.Controls.Add(this.btnOpenDescriptionForm); - this.grouperUserMetadata.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperUserMetadata.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperUserMetadata.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperUserMetadata.ForeColor = System.Drawing.Color.White; + this.grouperUserMetadata.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperUserMetadata.GroupImage = null; this.grouperUserMetadata.GroupTitle = "User Metdata"; this.grouperUserMetadata.Location = new System.Drawing.Point(336, 16); @@ -491,7 +491,7 @@ private void InitializeComponent() // this.txtUserMetadata.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtUserMetadata.BackColor = System.Drawing.SystemColors.Window; + this.txtUserMetadata.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtUserMetadata.Location = new System.Drawing.Point(20, 48); this.txtUserMetadata.Name = "txtUserMetadata"; this.txtUserMetadata.Size = new System.Drawing.Size(232, 20); @@ -510,10 +510,10 @@ private void InitializeComponent() // btnOpenDescriptionForm // this.btnOpenDescriptionForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenDescriptionForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenDescriptionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenDescriptionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenDescriptionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenDescriptionForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenDescriptionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenDescriptionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenDescriptionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenDescriptionForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenDescriptionForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenDescriptionForm.Location = new System.Drawing.Point(260, 48); @@ -529,19 +529,19 @@ private void InitializeComponent() // this.grouperGoogleCloudMessaggingSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperGoogleCloudMessaggingSettings.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperGoogleCloudMessaggingSettings.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperGoogleCloudMessaggingSettings.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperGoogleCloudMessaggingSettings.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperGoogleCloudMessaggingSettings.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperGoogleCloudMessaggingSettings.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperGoogleCloudMessaggingSettings.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperGoogleCloudMessaggingSettings.BorderThickness = 1F; this.grouperGoogleCloudMessaggingSettings.Controls.Add(this.btnClearGcmNotification); this.grouperGoogleCloudMessaggingSettings.Controls.Add(this.txtGcmEndpoint); this.grouperGoogleCloudMessaggingSettings.Controls.Add(this.lblGcmEndpoint); this.grouperGoogleCloudMessaggingSettings.Controls.Add(this.lblGcmApiKey); this.grouperGoogleCloudMessaggingSettings.Controls.Add(this.txtGcmApiKey); - this.grouperGoogleCloudMessaggingSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperGoogleCloudMessaggingSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperGoogleCloudMessaggingSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperGoogleCloudMessaggingSettings.ForeColor = System.Drawing.Color.White; + this.grouperGoogleCloudMessaggingSettings.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperGoogleCloudMessaggingSettings.GroupImage = null; this.grouperGoogleCloudMessaggingSettings.GroupTitle = "Google Cloud Messagging Settings"; this.grouperGoogleCloudMessaggingSettings.Location = new System.Drawing.Point(336, 112); @@ -558,10 +558,10 @@ private void InitializeComponent() // btnClearGcmNotification // this.btnClearGcmNotification.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnClearGcmNotification.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClearGcmNotification.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearGcmNotification.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearGcmNotification.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClearGcmNotification.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClearGcmNotification.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClearGcmNotification.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClearGcmNotification.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClearGcmNotification.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClearGcmNotification.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClearGcmNotification.Location = new System.Drawing.Point(216, 124); @@ -576,7 +576,7 @@ private void InitializeComponent() // this.txtGcmEndpoint.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtGcmEndpoint.BackColor = System.Drawing.SystemColors.Window; + this.txtGcmEndpoint.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtGcmEndpoint.Location = new System.Drawing.Point(16, 92); this.txtGcmEndpoint.Name = "txtGcmEndpoint"; this.txtGcmEndpoint.ReadOnly = true; @@ -607,7 +607,7 @@ private void InitializeComponent() // this.txtGcmApiKey.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtGcmApiKey.BackColor = System.Drawing.SystemColors.Window; + this.txtGcmApiKey.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtGcmApiKey.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtGcmApiKey.Location = new System.Drawing.Point(16, 48); this.txtGcmApiKey.Name = "txtGcmApiKey"; @@ -619,19 +619,19 @@ private void InitializeComponent() this.grouperWindowsPhoneNotificationSettings.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.grouperWindowsPhoneNotificationSettings.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperWindowsPhoneNotificationSettings.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperWindowsPhoneNotificationSettings.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperWindowsPhoneNotificationSettings.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperWindowsPhoneNotificationSettings.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperWindowsPhoneNotificationSettings.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWindowsPhoneNotificationSettings.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperWindowsPhoneNotificationSettings.BorderThickness = 1F; this.grouperWindowsPhoneNotificationSettings.Controls.Add(this.btnClearMpnsNotification); this.grouperWindowsPhoneNotificationSettings.Controls.Add(this.checkBoxEnableUnauthenticatedMpns); this.grouperWindowsPhoneNotificationSettings.Controls.Add(this.btnMpnsCredentialUploadCertificate); this.grouperWindowsPhoneNotificationSettings.Controls.Add(this.lblMpnsCredentialCertificateThumbprint); this.grouperWindowsPhoneNotificationSettings.Controls.Add(this.txtMpnsCredentialCertificateThumbprint); - this.grouperWindowsPhoneNotificationSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWindowsPhoneNotificationSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperWindowsPhoneNotificationSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperWindowsPhoneNotificationSettings.ForeColor = System.Drawing.Color.White; + this.grouperWindowsPhoneNotificationSettings.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperWindowsPhoneNotificationSettings.GroupImage = null; this.grouperWindowsPhoneNotificationSettings.GroupTitle = "Windows Phone Notification Settings"; this.grouperWindowsPhoneNotificationSettings.Location = new System.Drawing.Point(16, 280); @@ -648,10 +648,10 @@ private void InitializeComponent() // btnClearMpnsNotification // this.btnClearMpnsNotification.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnClearMpnsNotification.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClearMpnsNotification.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearMpnsNotification.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearMpnsNotification.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClearMpnsNotification.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClearMpnsNotification.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClearMpnsNotification.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClearMpnsNotification.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClearMpnsNotification.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClearMpnsNotification.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClearMpnsNotification.Location = new System.Drawing.Point(216, 124); @@ -677,10 +677,10 @@ private void InitializeComponent() // btnMpnsCredentialUploadCertificate // this.btnMpnsCredentialUploadCertificate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnMpnsCredentialUploadCertificate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnMpnsCredentialUploadCertificate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnMpnsCredentialUploadCertificate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnMpnsCredentialUploadCertificate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnMpnsCredentialUploadCertificate.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnMpnsCredentialUploadCertificate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnMpnsCredentialUploadCertificate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnMpnsCredentialUploadCertificate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnMpnsCredentialUploadCertificate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnMpnsCredentialUploadCertificate.ForeColor = System.Drawing.SystemColors.ControlText; this.btnMpnsCredentialUploadCertificate.Location = new System.Drawing.Point(136, 124); @@ -705,7 +705,7 @@ private void InitializeComponent() // this.txtMpnsCredentialCertificateThumbprint.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtMpnsCredentialCertificateThumbprint.BackColor = System.Drawing.SystemColors.Window; + this.txtMpnsCredentialCertificateThumbprint.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtMpnsCredentialCertificateThumbprint.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtMpnsCredentialCertificateThumbprint.Location = new System.Drawing.Point(16, 48); this.txtMpnsCredentialCertificateThumbprint.Name = "txtMpnsCredentialCertificateThumbprint"; @@ -718,10 +718,10 @@ private void InitializeComponent() this.grouperAppleNotificationSettings.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.grouperAppleNotificationSettings.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAppleNotificationSettings.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAppleNotificationSettings.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAppleNotificationSettings.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAppleNotificationSettings.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAppleNotificationSettings.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAppleNotificationSettings.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAppleNotificationSettings.BorderThickness = 1F; this.grouperAppleNotificationSettings.Controls.Add(this.btnClearApnsNotification); this.grouperAppleNotificationSettings.Controls.Add(this.txtApnsEndpoint); @@ -729,9 +729,9 @@ private void InitializeComponent() this.grouperAppleNotificationSettings.Controls.Add(this.btnApnsCredentialUploadCertificate); this.grouperAppleNotificationSettings.Controls.Add(this.lblApnsCredentialCertificateThumbprint); this.grouperAppleNotificationSettings.Controls.Add(this.txtApnsCredentialCertificateThumbprint); - this.grouperAppleNotificationSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAppleNotificationSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAppleNotificationSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAppleNotificationSettings.ForeColor = System.Drawing.Color.White; + this.grouperAppleNotificationSettings.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAppleNotificationSettings.GroupImage = null; this.grouperAppleNotificationSettings.GroupTitle = "Apple Notification Settings"; this.grouperAppleNotificationSettings.Location = new System.Drawing.Point(336, 280); @@ -748,10 +748,10 @@ private void InitializeComponent() // btnClearApnsNotification // this.btnClearApnsNotification.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnClearApnsNotification.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClearApnsNotification.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearApnsNotification.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearApnsNotification.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClearApnsNotification.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClearApnsNotification.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClearApnsNotification.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClearApnsNotification.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClearApnsNotification.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClearApnsNotification.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClearApnsNotification.Location = new System.Drawing.Point(216, 124); @@ -766,7 +766,7 @@ private void InitializeComponent() // this.txtApnsEndpoint.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtApnsEndpoint.BackColor = System.Drawing.SystemColors.Window; + this.txtApnsEndpoint.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtApnsEndpoint.Location = new System.Drawing.Point(16, 92); this.txtApnsEndpoint.Name = "txtApnsEndpoint"; this.txtApnsEndpoint.ReadOnly = true; @@ -786,10 +786,10 @@ private void InitializeComponent() // btnApnsCredentialUploadCertificate // this.btnApnsCredentialUploadCertificate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnApnsCredentialUploadCertificate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnApnsCredentialUploadCertificate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnApnsCredentialUploadCertificate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnApnsCredentialUploadCertificate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnApnsCredentialUploadCertificate.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnApnsCredentialUploadCertificate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnApnsCredentialUploadCertificate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnApnsCredentialUploadCertificate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnApnsCredentialUploadCertificate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnApnsCredentialUploadCertificate.ForeColor = System.Drawing.SystemColors.ControlText; this.btnApnsCredentialUploadCertificate.Location = new System.Drawing.Point(136, 124); @@ -814,7 +814,7 @@ private void InitializeComponent() // this.txtApnsCredentialCertificateThumbprint.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtApnsCredentialCertificateThumbprint.BackColor = System.Drawing.SystemColors.Window; + this.txtApnsCredentialCertificateThumbprint.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtApnsCredentialCertificateThumbprint.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtApnsCredentialCertificateThumbprint.Location = new System.Drawing.Point(16, 48); this.txtApnsCredentialCertificateThumbprint.Name = "txtApnsCredentialCertificateThumbprint"; @@ -827,19 +827,19 @@ private void InitializeComponent() this.grouperWindowsNotificationSettings.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.grouperWindowsNotificationSettings.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperWindowsNotificationSettings.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperWindowsNotificationSettings.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperWindowsNotificationSettings.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperWindowsNotificationSettings.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperWindowsNotificationSettings.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWindowsNotificationSettings.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperWindowsNotificationSettings.BorderThickness = 1F; this.grouperWindowsNotificationSettings.Controls.Add(this.btnClearWnsNotification); this.grouperWindowsNotificationSettings.Controls.Add(this.txtClientSecret); this.grouperWindowsNotificationSettings.Controls.Add(this.lblClientSecret); this.grouperWindowsNotificationSettings.Controls.Add(this.lblPackageSid); this.grouperWindowsNotificationSettings.Controls.Add(this.txtPackageSid); - this.grouperWindowsNotificationSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWindowsNotificationSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperWindowsNotificationSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperWindowsNotificationSettings.ForeColor = System.Drawing.Color.White; + this.grouperWindowsNotificationSettings.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperWindowsNotificationSettings.GroupImage = null; this.grouperWindowsNotificationSettings.GroupTitle = "Windows Notification Settings"; this.grouperWindowsNotificationSettings.Location = new System.Drawing.Point(16, 112); @@ -856,10 +856,10 @@ private void InitializeComponent() // btnClearWnsNotification // this.btnClearWnsNotification.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnClearWnsNotification.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClearWnsNotification.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearWnsNotification.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearWnsNotification.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClearWnsNotification.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClearWnsNotification.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClearWnsNotification.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClearWnsNotification.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClearWnsNotification.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClearWnsNotification.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClearWnsNotification.Location = new System.Drawing.Point(216, 124); @@ -874,7 +874,7 @@ private void InitializeComponent() // this.txtClientSecret.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtClientSecret.BackColor = System.Drawing.SystemColors.Window; + this.txtClientSecret.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtClientSecret.Location = new System.Drawing.Point(16, 92); this.txtClientSecret.Name = "txtClientSecret"; this.txtClientSecret.Size = new System.Drawing.Size(272, 20); @@ -904,7 +904,7 @@ private void InitializeComponent() // this.txtPackageSid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtPackageSid.BackColor = System.Drawing.SystemColors.Window; + this.txtPackageSid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtPackageSid.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtPackageSid.Location = new System.Drawing.Point(16, 48); this.txtPackageSid.Name = "txtPackageSid"; @@ -914,15 +914,15 @@ private void InitializeComponent() // grouperDuplicateDetectionHistoryTimeWindow // this.grouperDuplicateDetectionHistoryTimeWindow.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDuplicateDetectionHistoryTimeWindow.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDuplicateDetectionHistoryTimeWindow.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDuplicateDetectionHistoryTimeWindow.BorderThickness = 1F; this.grouperDuplicateDetectionHistoryTimeWindow.Controls.Add(this.tsRegistrationTimeToLive); - this.grouperDuplicateDetectionHistoryTimeWindow.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDuplicateDetectionHistoryTimeWindow.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDuplicateDetectionHistoryTimeWindow.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDuplicateDetectionHistoryTimeWindow.ForeColor = System.Drawing.Color.White; + this.grouperDuplicateDetectionHistoryTimeWindow.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDuplicateDetectionHistoryTimeWindow.GroupImage = null; this.grouperDuplicateDetectionHistoryTimeWindow.GroupTitle = "Registration Time To Live"; this.grouperDuplicateDetectionHistoryTimeWindow.Location = new System.Drawing.Point(656, 16); @@ -948,16 +948,16 @@ private void InitializeComponent() // this.grouperPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperPath.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperPath.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperPath.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperPath.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperPath.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperPath.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPath.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperPath.BorderThickness = 1F; this.grouperPath.Controls.Add(this.lblRelativeURI); this.grouperPath.Controls.Add(this.txtPath); - this.grouperPath.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPath.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperPath.ForeColor = System.Drawing.Color.White; + this.grouperPath.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperPath.GroupImage = null; this.grouperPath.GroupTitle = "Path"; this.grouperPath.Location = new System.Drawing.Point(16, 16); @@ -985,7 +985,7 @@ private void InitializeComponent() // this.txtPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtPath.BackColor = System.Drawing.SystemColors.Window; + this.txtPath.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtPath.Location = new System.Drawing.Point(16, 48); this.txtPath.Name = "txtPath"; @@ -994,7 +994,7 @@ private void InitializeComponent() // // tabPageAuthorization // - this.tabPageAuthorization.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageAuthorization.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageAuthorization.Controls.Add(this.grouperAuthorizationRuleList); this.tabPageAuthorization.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageAuthorization.Location = new System.Drawing.Point(4, 22); @@ -1008,15 +1008,15 @@ private void InitializeComponent() this.grouperAuthorizationRuleList.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.grouperAuthorizationRuleList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAuthorizationRuleList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAuthorizationRuleList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAuthorizationRuleList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAuthorizationRuleList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAuthorizationRuleList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAuthorizationRuleList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAuthorizationRuleList.BorderThickness = 1F; this.grouperAuthorizationRuleList.Controls.Add(this.authorizationRulesDataGridView); - this.grouperAuthorizationRuleList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAuthorizationRuleList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAuthorizationRuleList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAuthorizationRuleList.ForeColor = System.Drawing.Color.White; + this.grouperAuthorizationRuleList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAuthorizationRuleList.GroupImage = null; this.grouperAuthorizationRuleList.GroupTitle = "Authorization Rule List"; this.grouperAuthorizationRuleList.Location = new System.Drawing.Point(16, 8); @@ -1038,7 +1038,7 @@ private void InitializeComponent() this.authorizationRulesDataGridView.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.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.authorizationRulesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.authorizationRulesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.authorizationRulesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1061,7 +1061,7 @@ private void InitializeComponent() // // tabPageRegistrations // - this.tabPageRegistrations.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageRegistrations.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageRegistrations.Controls.Add(this.registrationsSplitContainer); this.tabPageRegistrations.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageRegistrations.Location = new System.Drawing.Point(4, 22); @@ -1093,10 +1093,10 @@ private void InitializeComponent() // // grouperRegistrations // - this.grouperRegistrations.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperRegistrations.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperRegistrations.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperRegistrations.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperRegistrations.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperRegistrations.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperRegistrations.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperRegistrations.BorderThickness = 1F; this.grouperRegistrations.Controls.Add(this.pictFindRegistrations); this.grouperRegistrations.Controls.Add(this.txtCurrentRegistrationPage); @@ -1105,10 +1105,10 @@ private void InitializeComponent() this.grouperRegistrations.Controls.Add(this.btnLastRegistrationPage); this.grouperRegistrations.Controls.Add(this.btnNextRegistrationPage); this.grouperRegistrations.Controls.Add(this.registrationsDataGridView); - this.grouperRegistrations.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperRegistrations.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperRegistrations.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperRegistrations.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperRegistrations.ForeColor = System.Drawing.Color.White; + this.grouperRegistrations.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperRegistrations.GroupImage = null; this.grouperRegistrations.GroupTitle = "Registration List"; this.grouperRegistrations.Location = new System.Drawing.Point(0, 0); @@ -1149,10 +1149,10 @@ private void InitializeComponent() // btnPreviousRegistrationPage // this.btnPreviousRegistrationPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.btnPreviousRegistrationPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnPreviousRegistrationPage.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnPreviousRegistrationPage.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnPreviousRegistrationPage.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnPreviousRegistrationPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnPreviousRegistrationPage.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnPreviousRegistrationPage.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnPreviousRegistrationPage.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnPreviousRegistrationPage.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnPreviousRegistrationPage.ForeColor = System.Drawing.SystemColors.ControlText; this.btnPreviousRegistrationPage.ImageKey = "ButtonPrevious.png"; @@ -1176,10 +1176,10 @@ private void InitializeComponent() // btnFirstRegistrationPage // this.btnFirstRegistrationPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.btnFirstRegistrationPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnFirstRegistrationPage.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnFirstRegistrationPage.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnFirstRegistrationPage.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnFirstRegistrationPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnFirstRegistrationPage.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnFirstRegistrationPage.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnFirstRegistrationPage.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnFirstRegistrationPage.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnFirstRegistrationPage.ForeColor = System.Drawing.SystemColors.ControlText; this.btnFirstRegistrationPage.ImageKey = "ButtonFirst.png"; @@ -1194,10 +1194,10 @@ private void InitializeComponent() // btnLastRegistrationPage // this.btnLastRegistrationPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnLastRegistrationPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnLastRegistrationPage.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnLastRegistrationPage.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnLastRegistrationPage.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnLastRegistrationPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnLastRegistrationPage.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnLastRegistrationPage.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnLastRegistrationPage.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnLastRegistrationPage.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnLastRegistrationPage.ForeColor = System.Drawing.SystemColors.ControlText; this.btnLastRegistrationPage.ImageKey = "ButtonLast.png"; @@ -1212,10 +1212,10 @@ private void InitializeComponent() // btnNextRegistrationPage // this.btnNextRegistrationPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnNextRegistrationPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnNextRegistrationPage.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnNextRegistrationPage.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnNextRegistrationPage.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnNextRegistrationPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnNextRegistrationPage.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnNextRegistrationPage.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnNextRegistrationPage.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnNextRegistrationPage.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnNextRegistrationPage.ForeColor = System.Drawing.SystemColors.ControlText; this.btnNextRegistrationPage.ImageKey = "ButtonNext.png"; @@ -1235,7 +1235,7 @@ private void InitializeComponent() this.registrationsDataGridView.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.registrationsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.registrationsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.registrationsDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.registrationsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.registrationsDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1260,20 +1260,20 @@ private void InitializeComponent() // // grouperRegistrationProperties // - this.grouperRegistrationProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperRegistrationProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperRegistrationProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperRegistrationProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperRegistrationProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperRegistrationProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperRegistrationProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperRegistrationProperties.BorderThickness = 1F; this.grouperRegistrationProperties.Controls.Add(this.btnRefreshRegistrations); this.grouperRegistrationProperties.Controls.Add(this.btnCreateRegistration); this.grouperRegistrationProperties.Controls.Add(this.btnDeleteRegistration); this.grouperRegistrationProperties.Controls.Add(this.btnUpdateRegistration); this.grouperRegistrationProperties.Controls.Add(this.registrationPropertyGrid); - this.grouperRegistrationProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperRegistrationProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperRegistrationProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperRegistrationProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperRegistrationProperties.ForeColor = System.Drawing.Color.White; + this.grouperRegistrationProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperRegistrationProperties.GroupImage = null; this.grouperRegistrationProperties.GroupTitle = "Registration Properties"; this.grouperRegistrationProperties.Location = new System.Drawing.Point(0, 0); @@ -1291,10 +1291,10 @@ private void InitializeComponent() // btnRefreshRegistrations // this.btnRefreshRegistrations.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRefreshRegistrations.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRefreshRegistrations.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefreshRegistrations.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefreshRegistrations.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRefreshRegistrations.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRefreshRegistrations.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRefreshRegistrations.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRefreshRegistrations.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRefreshRegistrations.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRefreshRegistrations.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRefreshRegistrations.Location = new System.Drawing.Point(16, 384); @@ -1310,10 +1310,10 @@ private void InitializeComponent() // btnCreateRegistration // this.btnCreateRegistration.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCreateRegistration.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCreateRegistration.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateRegistration.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateRegistration.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCreateRegistration.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCreateRegistration.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCreateRegistration.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCreateRegistration.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCreateRegistration.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCreateRegistration.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCreateRegistration.Location = new System.Drawing.Point(97, 384); @@ -1329,10 +1329,10 @@ private void InitializeComponent() // btnDeleteRegistration // this.btnDeleteRegistration.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnDeleteRegistration.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnDeleteRegistration.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnDeleteRegistration.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnDeleteRegistration.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnDeleteRegistration.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnDeleteRegistration.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnDeleteRegistration.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnDeleteRegistration.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnDeleteRegistration.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnDeleteRegistration.ForeColor = System.Drawing.SystemColors.ControlText; this.btnDeleteRegistration.Location = new System.Drawing.Point(177, 384); @@ -1348,10 +1348,10 @@ private void InitializeComponent() // btnUpdateRegistration // this.btnUpdateRegistration.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnUpdateRegistration.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnUpdateRegistration.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnUpdateRegistration.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnUpdateRegistration.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnUpdateRegistration.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnUpdateRegistration.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnUpdateRegistration.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnUpdateRegistration.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnUpdateRegistration.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnUpdateRegistration.ForeColor = System.Drawing.SystemColors.ControlText; this.btnUpdateRegistration.Location = new System.Drawing.Point(256, 384); @@ -1369,7 +1369,7 @@ private void InitializeComponent() this.registrationPropertyGrid.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.registrationPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.registrationPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.registrationPropertyGrid.HelpVisible = false; this.registrationPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.registrationPropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -1381,7 +1381,7 @@ private void InitializeComponent() // // tabPageTemplateNotification // - this.tabPageTemplateNotification.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageTemplateNotification.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageTemplateNotification.Controls.Add(this.templateSplitContainer); this.tabPageTemplateNotification.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageTemplateNotification.Location = new System.Drawing.Point(4, 22); @@ -1432,16 +1432,16 @@ private void InitializeComponent() // // grouperBody // - this.grouperBody.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperBody.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperBody.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperBody.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperBody.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperBody.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperBody.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperBody.BorderThickness = 1F; this.grouperBody.Controls.Add(this.txtTemplatePayload); - this.grouperBody.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperBody.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperBody.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperBody.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperBody.ForeColor = System.Drawing.Color.White; + this.grouperBody.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperBody.GroupImage = null; this.grouperBody.GroupTitle = "Notification Payload"; this.grouperBody.Location = new System.Drawing.Point(0, 0); @@ -1460,7 +1460,7 @@ private void InitializeComponent() this.txtTemplatePayload.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.txtTemplatePayload.BackColor = System.Drawing.SystemColors.Window; + this.txtTemplatePayload.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtTemplatePayload.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtTemplatePayload.Location = new System.Drawing.Point(16, 32); this.txtTemplatePayload.MaxLength = 0; @@ -1487,7 +1487,7 @@ private void InitializeComponent() // // tabTemplateTagExpression // - this.tabTemplateTagExpression.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabTemplateTagExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabTemplateTagExpression.Controls.Add(this.grouperTemplateTagExpression); this.tabTemplateTagExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.tabTemplateTagExpression.Location = new System.Drawing.Point(4, 24); @@ -1501,15 +1501,15 @@ private void InitializeComponent() this.grouperTemplateTagExpression.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.grouperTemplateTagExpression.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTemplateTagExpression.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTemplateTagExpression.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTemplateTagExpression.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTemplateTagExpression.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTemplateTagExpression.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTemplateTagExpression.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTemplateTagExpression.BorderThickness = 1F; this.grouperTemplateTagExpression.Controls.Add(this.txtTemplateTagExpression); - this.grouperTemplateTagExpression.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTemplateTagExpression.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTemplateTagExpression.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTemplateTagExpression.ForeColor = System.Drawing.Color.White; + this.grouperTemplateTagExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTemplateTagExpression.GroupImage = null; this.grouperTemplateTagExpression.GroupTitle = "Tag Expression"; this.grouperTemplateTagExpression.Location = new System.Drawing.Point(16, 8); @@ -1528,7 +1528,7 @@ private void InitializeComponent() this.txtTemplateTagExpression.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.txtTemplateTagExpression.BackColor = System.Drawing.SystemColors.Window; + this.txtTemplateTagExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtTemplateTagExpression.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtTemplateTagExpression.Location = new System.Drawing.Point(16, 32); this.txtTemplateTagExpression.MaxLength = 0; @@ -1540,7 +1540,7 @@ private void InitializeComponent() // // tabTemplateNotificationTags // - this.tabTemplateNotificationTags.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabTemplateNotificationTags.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabTemplateNotificationTags.Controls.Add(this.grouperTemplateTags); this.tabTemplateNotificationTags.ForeColor = System.Drawing.SystemColors.ControlText; this.tabTemplateNotificationTags.Location = new System.Drawing.Point(4, 24); @@ -1555,15 +1555,15 @@ private void InitializeComponent() this.grouperTemplateTags.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.grouperTemplateTags.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTemplateTags.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTemplateTags.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTemplateTags.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTemplateTags.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTemplateTags.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTemplateTags.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTemplateTags.BorderThickness = 1F; this.grouperTemplateTags.Controls.Add(this.templateTagsDataGridView); - this.grouperTemplateTags.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTemplateTags.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTemplateTags.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTemplateTags.ForeColor = System.Drawing.Color.White; + this.grouperTemplateTags.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTemplateTags.GroupImage = null; this.grouperTemplateTags.GroupTitle = "Notification Tags"; this.grouperTemplateTags.Location = new System.Drawing.Point(16, 8); @@ -1584,7 +1584,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.templateTagsDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.templateTagsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.templateTagsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.templateTagsDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.templateTagsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.templateTagsDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1613,7 +1613,7 @@ private void InitializeComponent() // // tabTemplateNotificationProperties // - this.tabTemplateNotificationProperties.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabTemplateNotificationProperties.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabTemplateNotificationProperties.Controls.Add(this.grouperTemplateNotificationProperties); this.tabTemplateNotificationProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.tabTemplateNotificationProperties.Location = new System.Drawing.Point(4, 24); @@ -1627,15 +1627,15 @@ private void InitializeComponent() this.grouperTemplateNotificationProperties.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.grouperTemplateNotificationProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTemplateNotificationProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTemplateNotificationProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTemplateNotificationProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTemplateNotificationProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTemplateNotificationProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTemplateNotificationProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTemplateNotificationProperties.BorderThickness = 1F; this.grouperTemplateNotificationProperties.Controls.Add(this.templateNotificationDataGridView); - this.grouperTemplateNotificationProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTemplateNotificationProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTemplateNotificationProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTemplateNotificationProperties.ForeColor = System.Drawing.Color.White; + this.grouperTemplateNotificationProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTemplateNotificationProperties.GroupImage = null; this.grouperTemplateNotificationProperties.GroupTitle = "Notification Properties"; this.grouperTemplateNotificationProperties.Location = new System.Drawing.Point(16, 8); @@ -1656,7 +1656,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.templateNotificationDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.templateNotificationDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.templateNotificationDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.templateNotificationDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.templateNotificationDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.templateNotificationDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1673,7 +1673,7 @@ private void InitializeComponent() // // tabTemplateAdditionalHeaders // - this.tabTemplateAdditionalHeaders.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabTemplateAdditionalHeaders.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabTemplateAdditionalHeaders.Controls.Add(this.grouperTemplateAdditionalHeaders); this.tabTemplateAdditionalHeaders.ForeColor = System.Drawing.SystemColors.ControlText; this.tabTemplateAdditionalHeaders.Location = new System.Drawing.Point(4, 24); @@ -1688,15 +1688,15 @@ private void InitializeComponent() this.grouperTemplateAdditionalHeaders.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.grouperTemplateAdditionalHeaders.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTemplateAdditionalHeaders.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTemplateAdditionalHeaders.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTemplateAdditionalHeaders.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTemplateAdditionalHeaders.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTemplateAdditionalHeaders.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTemplateAdditionalHeaders.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTemplateAdditionalHeaders.BorderThickness = 1F; this.grouperTemplateAdditionalHeaders.Controls.Add(this.templateHeadersDataGridView); - this.grouperTemplateAdditionalHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTemplateAdditionalHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTemplateAdditionalHeaders.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTemplateAdditionalHeaders.ForeColor = System.Drawing.Color.White; + this.grouperTemplateAdditionalHeaders.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTemplateAdditionalHeaders.GroupImage = null; this.grouperTemplateAdditionalHeaders.GroupTitle = "Additional Headers"; this.grouperTemplateAdditionalHeaders.Location = new System.Drawing.Point(16, 8); @@ -1717,7 +1717,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.templateHeadersDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.templateHeadersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.templateHeadersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.templateHeadersDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.templateHeadersDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.templateHeadersDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1732,7 +1732,7 @@ private void InitializeComponent() // // tabPageMpnsNativeNotification // - this.tabPageMpnsNativeNotification.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageMpnsNativeNotification.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageMpnsNativeNotification.Controls.Add(this.mpnsSplitContainer); this.tabPageMpnsNativeNotification.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageMpnsNativeNotification.Location = new System.Drawing.Point(4, 22); @@ -1783,16 +1783,16 @@ private void InitializeComponent() // // grouperMpnsTemplate // - this.grouperMpnsTemplate.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMpnsTemplate.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMpnsTemplate.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMpnsTemplate.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMpnsTemplate.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMpnsTemplate.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMpnsTemplate.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMpnsTemplate.BorderThickness = 1F; this.grouperMpnsTemplate.Controls.Add(this.txtMpnsPayload); - this.grouperMpnsTemplate.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMpnsTemplate.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMpnsTemplate.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMpnsTemplate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMpnsTemplate.ForeColor = System.Drawing.Color.White; + this.grouperMpnsTemplate.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMpnsTemplate.GroupImage = null; this.grouperMpnsTemplate.GroupTitle = "Notification Payload"; this.grouperMpnsTemplate.Location = new System.Drawing.Point(0, 0); @@ -1811,7 +1811,7 @@ private void InitializeComponent() this.txtMpnsPayload.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.txtMpnsPayload.BackColor = System.Drawing.SystemColors.Window; + this.txtMpnsPayload.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtMpnsPayload.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtMpnsPayload.Location = new System.Drawing.Point(16, 32); this.txtMpnsPayload.MaxLength = 0; @@ -1839,7 +1839,7 @@ private void InitializeComponent() // // tabMpnsTagExpression // - this.tabMpnsTagExpression.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabMpnsTagExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabMpnsTagExpression.Controls.Add(this.grouperMpnsTagExpression); this.tabMpnsTagExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.tabMpnsTagExpression.Location = new System.Drawing.Point(4, 24); @@ -1853,15 +1853,15 @@ private void InitializeComponent() this.grouperMpnsTagExpression.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.grouperMpnsTagExpression.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMpnsTagExpression.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMpnsTagExpression.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMpnsTagExpression.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMpnsTagExpression.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMpnsTagExpression.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMpnsTagExpression.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMpnsTagExpression.BorderThickness = 1F; this.grouperMpnsTagExpression.Controls.Add(this.txtMpnsTagExpression); - this.grouperMpnsTagExpression.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMpnsTagExpression.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMpnsTagExpression.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMpnsTagExpression.ForeColor = System.Drawing.Color.White; + this.grouperMpnsTagExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMpnsTagExpression.GroupImage = null; this.grouperMpnsTagExpression.GroupTitle = "Tag Expression"; this.grouperMpnsTagExpression.Location = new System.Drawing.Point(16, 8); @@ -1880,7 +1880,7 @@ private void InitializeComponent() this.txtMpnsTagExpression.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.txtMpnsTagExpression.BackColor = System.Drawing.SystemColors.Window; + this.txtMpnsTagExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtMpnsTagExpression.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtMpnsTagExpression.Location = new System.Drawing.Point(16, 32); this.txtMpnsTagExpression.MaxLength = 0; @@ -1892,7 +1892,7 @@ private void InitializeComponent() // // tabMpnsNotificationTags // - this.tabMpnsNotificationTags.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabMpnsNotificationTags.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabMpnsNotificationTags.Controls.Add(this.grouperMpnsTags); this.tabMpnsNotificationTags.ForeColor = System.Drawing.SystemColors.ControlText; this.tabMpnsNotificationTags.Location = new System.Drawing.Point(4, 24); @@ -1907,15 +1907,15 @@ private void InitializeComponent() this.grouperMpnsTags.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.grouperMpnsTags.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMpnsTags.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMpnsTags.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMpnsTags.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMpnsTags.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMpnsTags.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMpnsTags.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMpnsTags.BorderThickness = 1F; this.grouperMpnsTags.Controls.Add(this.mpnsTagsDataGridView); - this.grouperMpnsTags.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMpnsTags.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMpnsTags.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMpnsTags.ForeColor = System.Drawing.Color.White; + this.grouperMpnsTags.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMpnsTags.GroupImage = null; this.grouperMpnsTags.GroupTitle = "Notification Tags"; this.grouperMpnsTags.Location = new System.Drawing.Point(16, 8); @@ -1936,7 +1936,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.mpnsTagsDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.mpnsTagsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.mpnsTagsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mpnsTagsDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.mpnsTagsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.mpnsTagsDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1965,7 +1965,7 @@ private void InitializeComponent() // // tabMpnsNotificationTemplate // - this.tabMpnsNotificationTemplate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabMpnsNotificationTemplate.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabMpnsNotificationTemplate.Controls.Add(this.grouperMpnsNotificationTemplate); this.tabMpnsNotificationTemplate.ForeColor = System.Drawing.SystemColors.ControlText; this.tabMpnsNotificationTemplate.Location = new System.Drawing.Point(4, 24); @@ -1979,16 +1979,16 @@ private void InitializeComponent() this.grouperMpnsNotificationTemplate.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.grouperMpnsNotificationTemplate.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMpnsNotificationTemplate.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMpnsNotificationTemplate.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMpnsNotificationTemplate.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMpnsNotificationTemplate.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMpnsNotificationTemplate.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMpnsNotificationTemplate.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMpnsNotificationTemplate.BorderThickness = 1F; this.grouperMpnsNotificationTemplate.Controls.Add(this.cboMpnsNotificationTemplate); this.grouperMpnsNotificationTemplate.Controls.Add(this.mpnsTemplatePropertyGrid); - this.grouperMpnsNotificationTemplate.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMpnsNotificationTemplate.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMpnsNotificationTemplate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMpnsNotificationTemplate.ForeColor = System.Drawing.Color.White; + this.grouperMpnsNotificationTemplate.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMpnsNotificationTemplate.GroupImage = null; this.grouperMpnsNotificationTemplate.GroupTitle = "Notification Template"; this.grouperMpnsNotificationTemplate.Location = new System.Drawing.Point(16, 8); @@ -2031,7 +2031,7 @@ private void InitializeComponent() // // tabMpnsAdditionalHeaders // - this.tabMpnsAdditionalHeaders.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabMpnsAdditionalHeaders.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabMpnsAdditionalHeaders.Controls.Add(this.grouperMpnsAdditionalHeaders); this.tabMpnsAdditionalHeaders.ForeColor = System.Drawing.SystemColors.ControlText; this.tabMpnsAdditionalHeaders.Location = new System.Drawing.Point(4, 24); @@ -2046,15 +2046,15 @@ private void InitializeComponent() this.grouperMpnsAdditionalHeaders.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.grouperMpnsAdditionalHeaders.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMpnsAdditionalHeaders.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMpnsAdditionalHeaders.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMpnsAdditionalHeaders.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMpnsAdditionalHeaders.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMpnsAdditionalHeaders.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMpnsAdditionalHeaders.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMpnsAdditionalHeaders.BorderThickness = 1F; this.grouperMpnsAdditionalHeaders.Controls.Add(this.mpnsHeadersDataGridView); - this.grouperMpnsAdditionalHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMpnsAdditionalHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMpnsAdditionalHeaders.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMpnsAdditionalHeaders.ForeColor = System.Drawing.Color.White; + this.grouperMpnsAdditionalHeaders.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMpnsAdditionalHeaders.GroupImage = null; this.grouperMpnsAdditionalHeaders.GroupTitle = "Additional Headers"; this.grouperMpnsAdditionalHeaders.Location = new System.Drawing.Point(16, 8); @@ -2075,7 +2075,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.mpnsHeadersDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.mpnsHeadersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.mpnsHeadersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mpnsHeadersDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.mpnsHeadersDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.mpnsHeadersDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -2090,7 +2090,7 @@ private void InitializeComponent() // // tabPageWnsNativeNotification // - this.tabPageWnsNativeNotification.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageWnsNativeNotification.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageWnsNativeNotification.Controls.Add(this.wnsSplitContainer); this.tabPageWnsNativeNotification.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageWnsNativeNotification.Location = new System.Drawing.Point(4, 22); @@ -2141,16 +2141,16 @@ private void InitializeComponent() // // grouperWnsTemplate // - this.grouperWnsTemplate.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperWnsTemplate.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperWnsTemplate.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperWnsTemplate.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperWnsTemplate.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperWnsTemplate.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWnsTemplate.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperWnsTemplate.BorderThickness = 1F; this.grouperWnsTemplate.Controls.Add(this.txtWnsPayload); - this.grouperWnsTemplate.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWnsTemplate.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperWnsTemplate.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperWnsTemplate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperWnsTemplate.ForeColor = System.Drawing.Color.White; + this.grouperWnsTemplate.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperWnsTemplate.GroupImage = null; this.grouperWnsTemplate.GroupTitle = "Notification Payload"; this.grouperWnsTemplate.Location = new System.Drawing.Point(0, 0); @@ -2169,7 +2169,7 @@ private void InitializeComponent() this.txtWnsPayload.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.txtWnsPayload.BackColor = System.Drawing.SystemColors.Window; + this.txtWnsPayload.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtWnsPayload.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtWnsPayload.Location = new System.Drawing.Point(16, 32); this.txtWnsPayload.MaxLength = 0; @@ -2197,7 +2197,7 @@ private void InitializeComponent() // // tabWnsTagExpression // - this.tabWnsTagExpression.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabWnsTagExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabWnsTagExpression.Controls.Add(this.grouperWnsTagExpression); this.tabWnsTagExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.tabWnsTagExpression.Location = new System.Drawing.Point(4, 24); @@ -2211,15 +2211,15 @@ private void InitializeComponent() this.grouperWnsTagExpression.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.grouperWnsTagExpression.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperWnsTagExpression.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperWnsTagExpression.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperWnsTagExpression.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperWnsTagExpression.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperWnsTagExpression.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWnsTagExpression.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperWnsTagExpression.BorderThickness = 1F; this.grouperWnsTagExpression.Controls.Add(this.txtWnsTagExpression); - this.grouperWnsTagExpression.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWnsTagExpression.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperWnsTagExpression.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperWnsTagExpression.ForeColor = System.Drawing.Color.White; + this.grouperWnsTagExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperWnsTagExpression.GroupImage = null; this.grouperWnsTagExpression.GroupTitle = "Tag Expression"; this.grouperWnsTagExpression.Location = new System.Drawing.Point(16, 8); @@ -2238,7 +2238,7 @@ private void InitializeComponent() this.txtWnsTagExpression.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.txtWnsTagExpression.BackColor = System.Drawing.SystemColors.Window; + this.txtWnsTagExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtWnsTagExpression.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtWnsTagExpression.Location = new System.Drawing.Point(16, 32); this.txtWnsTagExpression.MaxLength = 0; @@ -2250,7 +2250,7 @@ private void InitializeComponent() // // tabWnsNotificationTags // - this.tabWnsNotificationTags.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabWnsNotificationTags.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabWnsNotificationTags.Controls.Add(this.grouperWnsTags); this.tabWnsNotificationTags.ForeColor = System.Drawing.SystemColors.ControlText; this.tabWnsNotificationTags.Location = new System.Drawing.Point(4, 24); @@ -2265,15 +2265,15 @@ private void InitializeComponent() this.grouperWnsTags.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.grouperWnsTags.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperWnsTags.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperWnsTags.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperWnsTags.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperWnsTags.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperWnsTags.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWnsTags.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperWnsTags.BorderThickness = 1F; this.grouperWnsTags.Controls.Add(this.wnsTagsDataGridView); - this.grouperWnsTags.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWnsTags.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperWnsTags.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperWnsTags.ForeColor = System.Drawing.Color.White; + this.grouperWnsTags.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperWnsTags.GroupImage = null; this.grouperWnsTags.GroupTitle = "Notification Tags"; this.grouperWnsTags.Location = new System.Drawing.Point(16, 8); @@ -2294,7 +2294,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.wnsTagsDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.wnsTagsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.wnsTagsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.wnsTagsDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.wnsTagsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.wnsTagsDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -2323,7 +2323,7 @@ private void InitializeComponent() // // tabWnsTemplate // - this.tabWnsTemplate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabWnsTemplate.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabWnsTemplate.Controls.Add(this.grouperWnsNotificationTemplate); this.tabWnsTemplate.ForeColor = System.Drawing.SystemColors.ControlText; this.tabWnsTemplate.Location = new System.Drawing.Point(4, 24); @@ -2337,16 +2337,16 @@ private void InitializeComponent() this.grouperWnsNotificationTemplate.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.grouperWnsNotificationTemplate.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperWnsNotificationTemplate.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperWnsNotificationTemplate.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperWnsNotificationTemplate.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperWnsNotificationTemplate.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperWnsNotificationTemplate.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWnsNotificationTemplate.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperWnsNotificationTemplate.BorderThickness = 1F; this.grouperWnsNotificationTemplate.Controls.Add(this.cboWnsNotificationTemplate); this.grouperWnsNotificationTemplate.Controls.Add(this.wnsTemplatePropertyGrid); - this.grouperWnsNotificationTemplate.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWnsNotificationTemplate.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperWnsNotificationTemplate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperWnsNotificationTemplate.ForeColor = System.Drawing.Color.White; + this.grouperWnsNotificationTemplate.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperWnsNotificationTemplate.GroupImage = null; this.grouperWnsNotificationTemplate.GroupTitle = "Notification Template"; this.grouperWnsNotificationTemplate.Location = new System.Drawing.Point(16, 8); @@ -2389,7 +2389,7 @@ private void InitializeComponent() // // tabWnsAdditionalHeaders // - this.tabWnsAdditionalHeaders.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabWnsAdditionalHeaders.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabWnsAdditionalHeaders.Controls.Add(this.grouperWnsAdditionalHeaders); this.tabWnsAdditionalHeaders.ForeColor = System.Drawing.SystemColors.ControlText; this.tabWnsAdditionalHeaders.Location = new System.Drawing.Point(4, 24); @@ -2404,15 +2404,15 @@ private void InitializeComponent() this.grouperWnsAdditionalHeaders.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.grouperWnsAdditionalHeaders.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperWnsAdditionalHeaders.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperWnsAdditionalHeaders.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperWnsAdditionalHeaders.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperWnsAdditionalHeaders.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperWnsAdditionalHeaders.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWnsAdditionalHeaders.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperWnsAdditionalHeaders.BorderThickness = 1F; this.grouperWnsAdditionalHeaders.Controls.Add(this.wnsHeadersDataGridView); - this.grouperWnsAdditionalHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperWnsAdditionalHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperWnsAdditionalHeaders.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperWnsAdditionalHeaders.ForeColor = System.Drawing.Color.White; + this.grouperWnsAdditionalHeaders.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperWnsAdditionalHeaders.GroupImage = null; this.grouperWnsAdditionalHeaders.GroupTitle = "Additional Headers"; this.grouperWnsAdditionalHeaders.Location = new System.Drawing.Point(16, 8); @@ -2433,7 +2433,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.wnsHeadersDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.wnsHeadersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.wnsHeadersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.wnsHeadersDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.wnsHeadersDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.wnsHeadersDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -2448,7 +2448,7 @@ private void InitializeComponent() // // tabPageAppleNativeNotification // - this.tabPageAppleNativeNotification.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageAppleNativeNotification.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageAppleNativeNotification.Controls.Add(this.appleSplitContainer); this.tabPageAppleNativeNotification.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageAppleNativeNotification.Location = new System.Drawing.Point(4, 22); @@ -2480,16 +2480,16 @@ private void InitializeComponent() // // grouperJsonPayload // - this.grouperJsonPayload.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperJsonPayload.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperJsonPayload.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperJsonPayload.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperJsonPayload.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperJsonPayload.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperJsonPayload.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperJsonPayload.BorderThickness = 1F; this.grouperJsonPayload.Controls.Add(this.txtApnsJsonPayload); - this.grouperJsonPayload.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperJsonPayload.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperJsonPayload.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperJsonPayload.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperJsonPayload.ForeColor = System.Drawing.Color.White; + this.grouperJsonPayload.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperJsonPayload.GroupImage = null; this.grouperJsonPayload.GroupTitle = "Json Payload"; this.grouperJsonPayload.Location = new System.Drawing.Point(0, 0); @@ -2509,7 +2509,7 @@ private void InitializeComponent() this.txtApnsJsonPayload.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.txtApnsJsonPayload.BackColor = System.Drawing.SystemColors.Window; + this.txtApnsJsonPayload.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtApnsJsonPayload.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtApnsJsonPayload.Location = new System.Drawing.Point(16, 32); this.txtApnsJsonPayload.MaxLength = 0; @@ -2554,7 +2554,7 @@ private void InitializeComponent() // // tabAppleTagExpression // - this.tabAppleTagExpression.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabAppleTagExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabAppleTagExpression.Controls.Add(this.grouperAppleTagExpression); this.tabAppleTagExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.tabAppleTagExpression.Location = new System.Drawing.Point(4, 24); @@ -2568,15 +2568,15 @@ private void InitializeComponent() this.grouperAppleTagExpression.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.grouperAppleTagExpression.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAppleTagExpression.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAppleTagExpression.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAppleTagExpression.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAppleTagExpression.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAppleTagExpression.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAppleTagExpression.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAppleTagExpression.BorderThickness = 1F; this.grouperAppleTagExpression.Controls.Add(this.txtAppleTagExpression); - this.grouperAppleTagExpression.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAppleTagExpression.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAppleTagExpression.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAppleTagExpression.ForeColor = System.Drawing.Color.White; + this.grouperAppleTagExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAppleTagExpression.GroupImage = null; this.grouperAppleTagExpression.GroupTitle = "Tag Expression"; this.grouperAppleTagExpression.Location = new System.Drawing.Point(16, 8); @@ -2595,7 +2595,7 @@ private void InitializeComponent() this.txtAppleTagExpression.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.txtAppleTagExpression.BackColor = System.Drawing.SystemColors.Window; + this.txtAppleTagExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtAppleTagExpression.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtAppleTagExpression.Location = new System.Drawing.Point(16, 32); this.txtAppleTagExpression.MaxLength = 0; @@ -2607,7 +2607,7 @@ private void InitializeComponent() // // tabAppleNotificationTags // - this.tabAppleNotificationTags.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabAppleNotificationTags.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabAppleNotificationTags.Controls.Add(this.grouperAppleTags); this.tabAppleNotificationTags.ForeColor = System.Drawing.SystemColors.ControlText; this.tabAppleNotificationTags.Location = new System.Drawing.Point(4, 24); @@ -2622,15 +2622,15 @@ private void InitializeComponent() this.grouperAppleTags.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.grouperAppleTags.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAppleTags.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAppleTags.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAppleTags.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAppleTags.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAppleTags.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAppleTags.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAppleTags.BorderThickness = 1F; this.grouperAppleTags.Controls.Add(this.appleTagsDataGridView); - this.grouperAppleTags.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAppleTags.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAppleTags.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAppleTags.ForeColor = System.Drawing.Color.White; + this.grouperAppleTags.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAppleTags.GroupImage = null; this.grouperAppleTags.GroupTitle = "Notification Tags"; this.grouperAppleTags.Location = new System.Drawing.Point(16, 8); @@ -2651,7 +2651,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.appleTagsDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.appleTagsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.appleTagsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.appleTagsDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.appleTagsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.appleTagsDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -2680,7 +2680,7 @@ private void InitializeComponent() // // tabAppleAdditionalHeaders // - this.tabAppleAdditionalHeaders.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabAppleAdditionalHeaders.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabAppleAdditionalHeaders.Controls.Add(this.grouperAppleAdditionalHeaders); this.tabAppleAdditionalHeaders.ForeColor = System.Drawing.SystemColors.ControlText; this.tabAppleAdditionalHeaders.Location = new System.Drawing.Point(4, 24); @@ -2694,15 +2694,15 @@ private void InitializeComponent() this.grouperAppleAdditionalHeaders.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.grouperAppleAdditionalHeaders.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAppleAdditionalHeaders.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAppleAdditionalHeaders.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAppleAdditionalHeaders.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAppleAdditionalHeaders.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAppleAdditionalHeaders.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAppleAdditionalHeaders.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAppleAdditionalHeaders.BorderThickness = 1F; this.grouperAppleAdditionalHeaders.Controls.Add(this.appleHeadersDataGridView); - this.grouperAppleAdditionalHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAppleAdditionalHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAppleAdditionalHeaders.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAppleAdditionalHeaders.ForeColor = System.Drawing.Color.White; + this.grouperAppleAdditionalHeaders.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAppleAdditionalHeaders.GroupImage = null; this.grouperAppleAdditionalHeaders.GroupTitle = "Additional Headers"; this.grouperAppleAdditionalHeaders.Location = new System.Drawing.Point(16, 8); @@ -2723,7 +2723,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.appleHeadersDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.appleHeadersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.appleHeadersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.appleHeadersDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.appleHeadersDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.appleHeadersDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -2739,7 +2739,7 @@ private void InitializeComponent() // // tabAppleNotificationExpiry // - this.tabAppleNotificationExpiry.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabAppleNotificationExpiry.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabAppleNotificationExpiry.Controls.Add(this.grouperApnsExpiry); this.tabAppleNotificationExpiry.ForeColor = System.Drawing.SystemColors.ControlText; this.tabAppleNotificationExpiry.Location = new System.Drawing.Point(4, 24); @@ -2754,15 +2754,15 @@ private void InitializeComponent() this.grouperApnsExpiry.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.grouperApnsExpiry.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperApnsExpiry.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperApnsExpiry.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperApnsExpiry.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperApnsExpiry.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperApnsExpiry.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperApnsExpiry.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperApnsExpiry.BorderThickness = 1F; this.grouperApnsExpiry.Controls.Add(this.tsApnsExpiry); - this.grouperApnsExpiry.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperApnsExpiry.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperApnsExpiry.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperApnsExpiry.ForeColor = System.Drawing.Color.White; + this.grouperApnsExpiry.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperApnsExpiry.GroupImage = null; this.grouperApnsExpiry.GroupTitle = "Notification Expiry"; this.grouperApnsExpiry.Location = new System.Drawing.Point(16, 8); @@ -2786,7 +2786,7 @@ private void InitializeComponent() // // tabPageGoogleNativeNotification // - this.tabPageGoogleNativeNotification.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageGoogleNativeNotification.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageGoogleNativeNotification.Controls.Add(this.gcmSplitContainer); this.tabPageGoogleNativeNotification.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageGoogleNativeNotification.Location = new System.Drawing.Point(4, 22); @@ -2818,16 +2818,16 @@ private void InitializeComponent() // // grouper1 // - this.grouper1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouper1.BackgroundGradientColor = System.Drawing.Color.White; + this.grouper1.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouper1.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouper1.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouper1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouper1.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouper1.BorderThickness = 1F; this.grouper1.Controls.Add(this.txtGcmJsonPayload); - this.grouper1.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouper1.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouper1.Dock = System.Windows.Forms.DockStyle.Fill; this.grouper1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouper1.ForeColor = System.Drawing.Color.White; + this.grouper1.ForeColor = System.Drawing.SystemColors.ControlText; this.grouper1.GroupImage = null; this.grouper1.GroupTitle = "Json Payload"; this.grouper1.Location = new System.Drawing.Point(0, 0); @@ -2846,7 +2846,7 @@ private void InitializeComponent() this.txtGcmJsonPayload.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.txtGcmJsonPayload.BackColor = System.Drawing.SystemColors.Window; + this.txtGcmJsonPayload.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtGcmJsonPayload.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtGcmJsonPayload.Location = new System.Drawing.Point(16, 32); this.txtGcmJsonPayload.MaxLength = 0; @@ -2891,7 +2891,7 @@ private void InitializeComponent() // // tabGcmTagExpression // - this.tabGcmTagExpression.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabGcmTagExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabGcmTagExpression.Controls.Add(this.grouperGcmTagExpression); this.tabGcmTagExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.tabGcmTagExpression.Location = new System.Drawing.Point(4, 24); @@ -2905,15 +2905,15 @@ private void InitializeComponent() this.grouperGcmTagExpression.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.grouperGcmTagExpression.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperGcmTagExpression.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperGcmTagExpression.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperGcmTagExpression.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperGcmTagExpression.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperGcmTagExpression.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperGcmTagExpression.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperGcmTagExpression.BorderThickness = 1F; this.grouperGcmTagExpression.Controls.Add(this.txtGcmTagExpression); - this.grouperGcmTagExpression.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperGcmTagExpression.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperGcmTagExpression.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperGcmTagExpression.ForeColor = System.Drawing.Color.White; + this.grouperGcmTagExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperGcmTagExpression.GroupImage = null; this.grouperGcmTagExpression.GroupTitle = "Tag Expression"; this.grouperGcmTagExpression.Location = new System.Drawing.Point(16, 8); @@ -2932,7 +2932,7 @@ private void InitializeComponent() this.txtGcmTagExpression.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.txtGcmTagExpression.BackColor = System.Drawing.SystemColors.Window; + this.txtGcmTagExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtGcmTagExpression.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtGcmTagExpression.Location = new System.Drawing.Point(16, 32); this.txtGcmTagExpression.MaxLength = 0; @@ -2944,7 +2944,7 @@ private void InitializeComponent() // // tabGcmNotificationTags // - this.tabGcmNotificationTags.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabGcmNotificationTags.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabGcmNotificationTags.Controls.Add(this.grouperGcmTags); this.tabGcmNotificationTags.ForeColor = System.Drawing.SystemColors.ControlText; this.tabGcmNotificationTags.Location = new System.Drawing.Point(4, 24); @@ -2959,15 +2959,15 @@ private void InitializeComponent() this.grouperGcmTags.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.grouperGcmTags.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperGcmTags.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperGcmTags.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperGcmTags.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperGcmTags.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperGcmTags.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperGcmTags.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperGcmTags.BorderThickness = 1F; this.grouperGcmTags.Controls.Add(this.gcmTagsDataGridView); - this.grouperGcmTags.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperGcmTags.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperGcmTags.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperGcmTags.ForeColor = System.Drawing.Color.White; + this.grouperGcmTags.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperGcmTags.GroupImage = null; this.grouperGcmTags.GroupTitle = "Notification Tags"; this.grouperGcmTags.Location = new System.Drawing.Point(16, 8); @@ -2988,7 +2988,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.gcmTagsDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.gcmTagsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.gcmTagsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.gcmTagsDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.gcmTagsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.gcmTagsDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -3016,7 +3016,7 @@ private void InitializeComponent() // // tabGcmAdditionalHeaders // - this.tabGcmAdditionalHeaders.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabGcmAdditionalHeaders.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabGcmAdditionalHeaders.Controls.Add(this.grouperGcmAdditionalHeaders); this.tabGcmAdditionalHeaders.ForeColor = System.Drawing.SystemColors.ControlText; this.tabGcmAdditionalHeaders.Location = new System.Drawing.Point(4, 24); @@ -3030,15 +3030,15 @@ private void InitializeComponent() this.grouperGcmAdditionalHeaders.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.grouperGcmAdditionalHeaders.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperGcmAdditionalHeaders.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperGcmAdditionalHeaders.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperGcmAdditionalHeaders.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperGcmAdditionalHeaders.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperGcmAdditionalHeaders.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperGcmAdditionalHeaders.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperGcmAdditionalHeaders.BorderThickness = 1F; this.grouperGcmAdditionalHeaders.Controls.Add(this.gcmHeadersDataGridView); - this.grouperGcmAdditionalHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperGcmAdditionalHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperGcmAdditionalHeaders.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperGcmAdditionalHeaders.ForeColor = System.Drawing.Color.White; + this.grouperGcmAdditionalHeaders.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperGcmAdditionalHeaders.GroupImage = null; this.grouperGcmAdditionalHeaders.GroupTitle = "Additional Headers"; this.grouperGcmAdditionalHeaders.Location = new System.Drawing.Point(16, 8); @@ -3059,7 +3059,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.gcmHeadersDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.gcmHeadersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.gcmHeadersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.gcmHeadersDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.gcmHeadersDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.gcmHeadersDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -3076,10 +3076,10 @@ private void InitializeComponent() // btnRefresh // this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRefresh.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRefresh.Location = new System.Drawing.Point(760, 504); @@ -3095,10 +3095,10 @@ private void InitializeComponent() // btnCancelUpdate // this.btnCancelUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancelUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancelUpdate.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancelUpdate.Location = new System.Drawing.Point(920, 504); @@ -3114,10 +3114,10 @@ private void InitializeComponent() // btnCreateDelete // this.btnCreateDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCreateDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCreateDelete.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCreateDelete.Location = new System.Drawing.Point(840, 504); @@ -3133,10 +3133,10 @@ private void InitializeComponent() // btnRegistrations // this.btnRegistrations.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRegistrations.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRegistrations.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRegistrations.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRegistrations.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRegistrations.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRegistrations.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRegistrations.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRegistrations.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRegistrations.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRegistrations.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRegistrations.Location = new System.Drawing.Point(594, 504); @@ -3176,7 +3176,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.btnRegistrations); this.Controls.Add(this.btnRefresh); this.Controls.Add(this.btnCancelUpdate); @@ -3532,3 +3532,4 @@ private void InitializeComponent() private TimeSpanControl tsApnsExpiry; } } + diff --git a/src/ServiceBusExplorer/Controls/HandlePartitionControl.Designer.cs b/src/ServiceBusExplorer/Controls/HandlePartitionControl.Designer.cs index cef2bb40..b3133067 100644 --- a/src/ServiceBusExplorer/Controls/HandlePartitionControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HandlePartitionControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class HandlePartitionControl { @@ -35,10 +35,10 @@ private void InitializeComponent() // btnRefresh // this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRefresh.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRefresh.Location = new System.Drawing.Point(920, 504); @@ -68,7 +68,7 @@ private void InitializeComponent() // // tabPageDescription // - this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageDescription.Controls.Add(this.grouperPartitionInformation); this.tabPageDescription.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageDescription.Location = new System.Drawing.Point(4, 24); @@ -82,15 +82,15 @@ private void InitializeComponent() this.grouperPartitionInformation.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.grouperPartitionInformation.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperPartitionInformation.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperPartitionInformation.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperPartitionInformation.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperPartitionInformation.BackgroundGradientMode = Grouper.GroupBoxGradientMode.None; - this.grouperPartitionInformation.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPartitionInformation.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperPartitionInformation.BorderThickness = 1F; this.grouperPartitionInformation.Controls.Add(this.propertyListView); - this.grouperPartitionInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPartitionInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperPartitionInformation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperPartitionInformation.ForeColor = System.Drawing.Color.White; + this.grouperPartitionInformation.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperPartitionInformation.GroupImage = null; this.grouperPartitionInformation.GroupTitle = "Partition Information"; this.grouperPartitionInformation.Location = new System.Drawing.Point(16, 8); @@ -153,7 +153,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.mainTabControl); this.Controls.Add(this.btnRefresh); this.Name = "HandlePartitionControl"; @@ -180,3 +180,4 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem copyPartitionInformationToClipboardMenuItem; } } + diff --git a/src/ServiceBusExplorer/Controls/HandlePartitionControl.cs b/src/ServiceBusExplorer/Controls/HandlePartitionControl.cs index 583340bf..82277316 100644 --- a/src/ServiceBusExplorer/Controls/HandlePartitionControl.cs +++ b/src/ServiceBusExplorer/Controls/HandlePartitionControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -73,6 +73,7 @@ public HandlePartitionControl(WriteToLogDelegate writeToLog, ServiceBusHelper se this.serviceBusHelper = serviceBusHelper; this.partitionDescription = partitionDescription; InitializeComponent(); + ThemeManager.Apply(this); InitializeData(); } #endregion @@ -396,3 +397,4 @@ private void copyPartitionInformationToClipboardMenuItem_Click(object sender, Ev #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/HandleQueueControl.Designer.cs b/src/ServiceBusExplorer/Controls/HandleQueueControl.Designer.cs index c5c6c99d..c22e65b4 100644 --- a/src/ServiceBusExplorer/Controls/HandleQueueControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HandleQueueControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class HandleQueueControl { @@ -244,10 +244,10 @@ private void InitializeComponent() // btnPurgeDeadletterQueueMessages // this.btnPurgeDeadletterQueueMessages.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnPurgeDeadletterQueueMessages.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnPurgeDeadletterQueueMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnPurgeDeadletterQueueMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnPurgeDeadletterQueueMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnPurgeDeadletterQueueMessages.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnPurgeDeadletterQueueMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnPurgeDeadletterQueueMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnPurgeDeadletterQueueMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnPurgeDeadletterQueueMessages.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnPurgeDeadletterQueueMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.btnPurgeDeadletterQueueMessages.Location = new System.Drawing.Point(279, 504); @@ -264,10 +264,10 @@ private void InitializeComponent() // btnTransferDeadletterQueue // this.btnTransferDeadletterQueue.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnTransferDeadletterQueue.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnTransferDeadletterQueue.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnTransferDeadletterQueue.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnTransferDeadletterQueue.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnTransferDeadletterQueue.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnTransferDeadletterQueue.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnTransferDeadletterQueue.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnTransferDeadletterQueue.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnTransferDeadletterQueue.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnTransferDeadletterQueue.ForeColor = System.Drawing.SystemColors.ControlText; this.btnTransferDeadletterQueue.Location = new System.Drawing.Point(597, 504); @@ -282,10 +282,10 @@ private void InitializeComponent() // btnChangeStatus // this.btnChangeStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnChangeStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnChangeStatus.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnChangeStatus.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnChangeStatus.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnChangeStatus.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnChangeStatus.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnChangeStatus.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnChangeStatus.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnChangeStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnChangeStatus.ForeColor = System.Drawing.SystemColors.ControlText; this.btnChangeStatus.Location = new System.Drawing.Point(756, 504); @@ -301,10 +301,10 @@ private void InitializeComponent() // btnCancelUpdate // this.btnCancelUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancelUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancelUpdate.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancelUpdate.Location = new System.Drawing.Point(915, 504); @@ -320,10 +320,10 @@ private void InitializeComponent() // btnCreateDelete // this.btnCreateDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCreateDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCreateDelete.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCreateDelete.Location = new System.Drawing.Point(836, 504); @@ -339,10 +339,10 @@ private void InitializeComponent() // btnRefresh // this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRefresh.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRefresh.Location = new System.Drawing.Point(676, 504); @@ -378,7 +378,7 @@ private void InitializeComponent() // // tabPageDescription // - this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageDescription.Controls.Add(this.grouperAutoDeleteOnIdle); this.tabPageDescription.Controls.Add(this.grouperQueueInformation); this.tabPageDescription.Controls.Add(this.groupergrouperDefaultMessageTimeToLive); @@ -396,15 +396,15 @@ private void InitializeComponent() // // grouperAutoDeleteOnIdle // - this.grouperAutoDeleteOnIdle.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAutoDeleteOnIdle.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAutoDeleteOnIdle.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAutoDeleteOnIdle.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAutoDeleteOnIdle.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAutoDeleteOnIdle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAutoDeleteOnIdle.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAutoDeleteOnIdle.BorderThickness = 1F; this.grouperAutoDeleteOnIdle.Controls.Add(this.tsAutoDeleteOnIdle); - this.grouperAutoDeleteOnIdle.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAutoDeleteOnIdle.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAutoDeleteOnIdle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAutoDeleteOnIdle.ForeColor = System.Drawing.Color.White; + this.grouperAutoDeleteOnIdle.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAutoDeleteOnIdle.GroupImage = null; this.grouperAutoDeleteOnIdle.GroupTitle = "Auto Delete On Idle"; this.grouperAutoDeleteOnIdle.Location = new System.Drawing.Point(328, 8); @@ -432,15 +432,15 @@ private void InitializeComponent() this.grouperQueueInformation.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.grouperQueueInformation.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperQueueInformation.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperQueueInformation.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperQueueInformation.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperQueueInformation.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperQueueInformation.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperQueueInformation.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperQueueInformation.BorderThickness = 1F; this.grouperQueueInformation.Controls.Add(this.propertyListView); - this.grouperQueueInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperQueueInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperQueueInformation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperQueueInformation.ForeColor = System.Drawing.Color.White; + this.grouperQueueInformation.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperQueueInformation.GroupImage = null; this.grouperQueueInformation.GroupTitle = "Queue Information"; this.grouperQueueInformation.Location = new System.Drawing.Point(640, 8); @@ -487,15 +487,15 @@ private void InitializeComponent() // // groupergrouperDefaultMessageTimeToLive // - this.groupergrouperDefaultMessageTimeToLive.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.groupergrouperDefaultMessageTimeToLive.BackgroundGradientColor = System.Drawing.Color.White; + this.groupergrouperDefaultMessageTimeToLive.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.groupergrouperDefaultMessageTimeToLive.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.groupergrouperDefaultMessageTimeToLive.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.groupergrouperDefaultMessageTimeToLive.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.groupergrouperDefaultMessageTimeToLive.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.groupergrouperDefaultMessageTimeToLive.BorderThickness = 1F; this.groupergrouperDefaultMessageTimeToLive.Controls.Add(this.tsDefaultMessageTimeToLive); - this.groupergrouperDefaultMessageTimeToLive.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.groupergrouperDefaultMessageTimeToLive.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.groupergrouperDefaultMessageTimeToLive.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.groupergrouperDefaultMessageTimeToLive.ForeColor = System.Drawing.Color.White; + this.groupergrouperDefaultMessageTimeToLive.ForeColor = System.Drawing.SystemColors.ControlText; this.groupergrouperDefaultMessageTimeToLive.GroupImage = null; this.groupergrouperDefaultMessageTimeToLive.GroupTitle = "Default Message Time To Live"; this.groupergrouperDefaultMessageTimeToLive.Location = new System.Drawing.Point(328, 96); @@ -522,15 +522,15 @@ private void InitializeComponent() // this.grouperQueueSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperQueueSettings.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperQueueSettings.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperQueueSettings.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperQueueSettings.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperQueueSettings.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperQueueSettings.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperQueueSettings.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperQueueSettings.BorderThickness = 1F; this.grouperQueueSettings.Controls.Add(this.checkedListBox); - this.grouperQueueSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperQueueSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperQueueSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperQueueSettings.ForeColor = System.Drawing.Color.White; + this.grouperQueueSettings.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperQueueSettings.GroupImage = null; this.grouperQueueSettings.GroupTitle = "Queue Settings"; this.grouperQueueSettings.Location = new System.Drawing.Point(328, 272); @@ -564,10 +564,10 @@ private void InitializeComponent() // this.grouperQueueProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperQueueProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperQueueProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperQueueProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperQueueProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperQueueProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperQueueProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperQueueProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperQueueProperties.BorderThickness = 1F; this.grouperQueueProperties.Controls.Add(this.btnOpenForwardDeadLetteredMessagesToForm); this.grouperQueueProperties.Controls.Add(this.lblForwardDeadLetteredMessagesTo); @@ -583,9 +583,9 @@ private void InitializeComponent() this.grouperQueueProperties.Controls.Add(this.txtForwardTo); this.grouperQueueProperties.Controls.Add(this.lblMaxDeliveryCount); this.grouperQueueProperties.Controls.Add(this.txtMaxDeliveryCount); - this.grouperQueueProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperQueueProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperQueueProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperQueueProperties.ForeColor = System.Drawing.Color.White; + this.grouperQueueProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperQueueProperties.GroupImage = null; this.grouperQueueProperties.GroupTitle = "Queue Properties"; this.grouperQueueProperties.Location = new System.Drawing.Point(16, 184); @@ -602,10 +602,10 @@ private void InitializeComponent() // btnOpenForwardDeadLetteredMessagesToForm // this.btnOpenForwardDeadLetteredMessagesToForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenForwardDeadLetteredMessagesToForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenForwardDeadLetteredMessagesToForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenForwardDeadLetteredMessagesToForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenForwardDeadLetteredMessagesToForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenForwardDeadLetteredMessagesToForm.Location = new System.Drawing.Point(256, 224); @@ -631,7 +631,7 @@ private void InitializeComponent() // this.txtForwardDeadLetteredMessagesTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtForwardDeadLetteredMessagesTo.BackColor = System.Drawing.SystemColors.Window; + this.txtForwardDeadLetteredMessagesTo.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtForwardDeadLetteredMessagesTo.Location = new System.Drawing.Point(16, 224); this.txtForwardDeadLetteredMessagesTo.Name = "txtForwardDeadLetteredMessagesTo"; this.txtForwardDeadLetteredMessagesTo.Size = new System.Drawing.Size(232, 20); @@ -650,9 +650,9 @@ private void InitializeComponent() // trackBarMaxQueueSize // this.trackBarMaxQueueSize.BackColor = System.Drawing.Color.Transparent; - this.trackBarMaxQueueSize.BorderColor = System.Drawing.Color.Black; + this.trackBarMaxQueueSize.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.trackBarMaxQueueSize.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.trackBarMaxQueueSize.ForeColor = System.Drawing.Color.Black; + this.trackBarMaxQueueSize.ForeColor = System.Drawing.SystemColors.ControlText; this.trackBarMaxQueueSize.IndentHeight = 6; this.trackBarMaxQueueSize.LargeChange = 1; this.trackBarMaxQueueSize.Location = new System.Drawing.Point(16, 40); @@ -676,7 +676,7 @@ private void InitializeComponent() // this.txtUserMetadata.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtUserMetadata.BackColor = System.Drawing.SystemColors.Window; + this.txtUserMetadata.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtUserMetadata.Location = new System.Drawing.Point(16, 136); this.txtUserMetadata.Name = "txtUserMetadata"; this.txtUserMetadata.Size = new System.Drawing.Size(232, 20); @@ -705,10 +705,10 @@ private void InitializeComponent() // btnOpenDescriptionForm // this.btnOpenDescriptionForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenDescriptionForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenDescriptionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenDescriptionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenDescriptionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenDescriptionForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenDescriptionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenDescriptionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenDescriptionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenDescriptionForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenDescriptionForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenDescriptionForm.Location = new System.Drawing.Point(256, 136); @@ -723,10 +723,10 @@ private void InitializeComponent() // btnOpenForwardToForm // this.btnOpenForwardToForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenForwardToForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenForwardToForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenForwardToForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenForwardToForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenForwardToForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenForwardToForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenForwardToForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenForwardToForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenForwardToForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenForwardToForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenForwardToForm.Location = new System.Drawing.Point(256, 180); @@ -752,7 +752,7 @@ private void InitializeComponent() // this.txtForwardTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtForwardTo.BackColor = System.Drawing.SystemColors.Window; + this.txtForwardTo.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtForwardTo.Location = new System.Drawing.Point(16, 180); this.txtForwardTo.Name = "txtForwardTo"; this.txtForwardTo.Size = new System.Drawing.Size(232, 20); @@ -775,7 +775,7 @@ private void InitializeComponent() this.txtMaxDeliveryCount.AllowSpace = false; this.txtMaxDeliveryCount.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtMaxDeliveryCount.BackColor = System.Drawing.SystemColors.Window; + this.txtMaxDeliveryCount.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtMaxDeliveryCount.IsZeroWhenEmpty = false; this.txtMaxDeliveryCount.Location = new System.Drawing.Point(16, 88); this.txtMaxDeliveryCount.Name = "txtMaxDeliveryCount"; @@ -784,15 +784,15 @@ private void InitializeComponent() // // grouperLockDuration // - this.grouperLockDuration.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperLockDuration.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperLockDuration.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperLockDuration.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperLockDuration.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperLockDuration.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperLockDuration.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperLockDuration.BorderThickness = 1F; this.grouperLockDuration.Controls.Add(this.tsLockDuration); - this.grouperLockDuration.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperLockDuration.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperLockDuration.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperLockDuration.ForeColor = System.Drawing.Color.White; + this.grouperLockDuration.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperLockDuration.GroupImage = null; this.grouperLockDuration.GroupTitle = "Lock Duration"; this.grouperLockDuration.Location = new System.Drawing.Point(328, 184); @@ -817,15 +817,15 @@ private void InitializeComponent() // // grouperDuplicateDetectionHistoryTimeWindow // - this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDuplicateDetectionHistoryTimeWindow.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDuplicateDetectionHistoryTimeWindow.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDuplicateDetectionHistoryTimeWindow.BorderThickness = 1F; this.grouperDuplicateDetectionHistoryTimeWindow.Controls.Add(this.tsDuplicateDetectionHistoryTimeWindow); - this.grouperDuplicateDetectionHistoryTimeWindow.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDuplicateDetectionHistoryTimeWindow.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDuplicateDetectionHistoryTimeWindow.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDuplicateDetectionHistoryTimeWindow.ForeColor = System.Drawing.Color.White; + this.grouperDuplicateDetectionHistoryTimeWindow.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDuplicateDetectionHistoryTimeWindow.GroupImage = null; this.grouperDuplicateDetectionHistoryTimeWindow.GroupTitle = "Duplicate Detection History Time Window"; this.grouperDuplicateDetectionHistoryTimeWindow.Location = new System.Drawing.Point(16, 96); @@ -850,16 +850,16 @@ private void InitializeComponent() // // grouperPath // - this.grouperPath.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperPath.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperPath.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperPath.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperPath.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperPath.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPath.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperPath.BorderThickness = 1F; this.grouperPath.Controls.Add(this.lblRelativeURI); this.grouperPath.Controls.Add(this.txtPath); - this.grouperPath.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPath.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperPath.ForeColor = System.Drawing.Color.White; + this.grouperPath.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperPath.GroupImage = null; this.grouperPath.GroupTitle = "Path"; this.grouperPath.Location = new System.Drawing.Point(16, 8); @@ -887,7 +887,7 @@ private void InitializeComponent() // this.txtPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtPath.BackColor = System.Drawing.SystemColors.Window; + this.txtPath.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtPath.Location = new System.Drawing.Point(16, 44); this.txtPath.Name = "txtPath"; @@ -896,7 +896,7 @@ private void InitializeComponent() // // tabPageAuthorization // - this.tabPageAuthorization.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageAuthorization.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageAuthorization.Controls.Add(this.grouperAuthorizationRuleList); this.tabPageAuthorization.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageAuthorization.Location = new System.Drawing.Point(4, 22); @@ -910,15 +910,15 @@ private void InitializeComponent() this.grouperAuthorizationRuleList.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.grouperAuthorizationRuleList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAuthorizationRuleList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAuthorizationRuleList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAuthorizationRuleList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAuthorizationRuleList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAuthorizationRuleList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAuthorizationRuleList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAuthorizationRuleList.BorderThickness = 1F; this.grouperAuthorizationRuleList.Controls.Add(this.authorizationRulesDataGridView); - this.grouperAuthorizationRuleList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAuthorizationRuleList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAuthorizationRuleList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAuthorizationRuleList.ForeColor = System.Drawing.Color.White; + this.grouperAuthorizationRuleList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAuthorizationRuleList.GroupImage = null; this.grouperAuthorizationRuleList.GroupTitle = "Authorization Rule List"; this.grouperAuthorizationRuleList.Location = new System.Drawing.Point(16, 8); @@ -940,7 +940,7 @@ private void InitializeComponent() this.authorizationRulesDataGridView.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.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.authorizationRulesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.authorizationRulesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.authorizationRulesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -965,7 +965,7 @@ private void InitializeComponent() // // tabPageMessages // - this.tabPageMessages.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageMessages.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageMessages.Controls.Add(this.messagesSplitContainer); this.tabPageMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageMessages.Location = new System.Drawing.Point(4, 22); @@ -1017,18 +1017,18 @@ private void InitializeComponent() // // grouperMessageList // - this.grouperMessageList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageList.BorderThickness = 1F; this.grouperMessageList.Controls.Add(this.pictFindMessages); this.grouperMessageList.Controls.Add(this.pictFindMessagesByDate); this.grouperMessageList.Controls.Add(this.messagesDataGridView); - this.grouperMessageList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageList.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageList.ForeColor = System.Drawing.Color.White; + this.grouperMessageList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageList.GroupImage = null; this.grouperMessageList.GroupTitle = "Message List"; this.grouperMessageList.Location = new System.Drawing.Point(0, 0); @@ -1075,7 +1075,7 @@ private void InitializeComponent() this.messagesDataGridView.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.messagesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.messagesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.messagesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.messagesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.messagesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1103,16 +1103,16 @@ private void InitializeComponent() // // grouperMessageText // - this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageText.BorderThickness = 1F; this.grouperMessageText.Controls.Add(this.txtMessageText); - this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageText.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageText.ForeColor = System.Drawing.Color.White; + this.grouperMessageText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageText.GroupImage = null; this.grouperMessageText.GroupTitle = "Message Text"; this.grouperMessageText.Location = new System.Drawing.Point(0, 0); @@ -1183,16 +1183,16 @@ private void InitializeComponent() // // grouperMessageSystemProperties // - this.grouperMessageSystemProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageSystemProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageSystemProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageSystemProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageSystemProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageSystemProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageSystemProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageSystemProperties.BorderThickness = 1F; this.grouperMessageSystemProperties.Controls.Add(this.messagePropertyGrid); - this.grouperMessageSystemProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageSystemProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageSystemProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageSystemProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageSystemProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageSystemProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageSystemProperties.GroupImage = null; this.grouperMessageSystemProperties.GroupTitle = "Message System Properties"; this.grouperMessageSystemProperties.Location = new System.Drawing.Point(0, 0); @@ -1212,7 +1212,7 @@ private void InitializeComponent() this.messagePropertyGrid.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.messagePropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.messagePropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.messagePropertyGrid.HelpVisible = false; this.messagePropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.messagePropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -1223,16 +1223,16 @@ private void InitializeComponent() // // grouperMessageCustomProperties // - this.grouperMessageCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageCustomProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageCustomProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageCustomProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageCustomProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageCustomProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageCustomProperties.BorderThickness = 1F; this.grouperMessageCustomProperties.Controls.Add(this.messageCustomPropertyGrid); - this.grouperMessageCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageCustomProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageCustomProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageCustomProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageCustomProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageCustomProperties.GroupImage = null; this.grouperMessageCustomProperties.GroupTitle = "Message Custom Properties"; this.grouperMessageCustomProperties.Location = new System.Drawing.Point(0, 0); @@ -1252,7 +1252,7 @@ private void InitializeComponent() this.messageCustomPropertyGrid.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.messageCustomPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.messageCustomPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.messageCustomPropertyGrid.CategoryForeColor = System.Drawing.SystemColors.InactiveCaptionText; this.messageCustomPropertyGrid.HelpVisible = false; this.messageCustomPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); @@ -1264,7 +1264,7 @@ private void InitializeComponent() // // tabPageDeadletter // - this.tabPageDeadletter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageDeadletter.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageDeadletter.Controls.Add(this.deadletterSplitContainer); this.tabPageDeadletter.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageDeadletter.Location = new System.Drawing.Point(4, 22); @@ -1316,18 +1316,18 @@ private void InitializeComponent() // // grouperDeadletterList // - this.grouperDeadletterList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDeadletterList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDeadletterList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDeadletterList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDeadletterList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDeadletterList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDeadletterList.BorderThickness = 1F; this.grouperDeadletterList.Controls.Add(this.pictFindDeadletter); this.grouperDeadletterList.Controls.Add(this.pictFindDeadletterByDate); this.grouperDeadletterList.Controls.Add(this.deadletterDataGridView); - this.grouperDeadletterList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDeadletterList.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperDeadletterList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDeadletterList.ForeColor = System.Drawing.Color.White; + this.grouperDeadletterList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDeadletterList.GroupImage = null; this.grouperDeadletterList.GroupTitle = "Message List"; this.grouperDeadletterList.Location = new System.Drawing.Point(0, 0); @@ -1374,7 +1374,7 @@ private void InitializeComponent() this.deadletterDataGridView.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.deadletterDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.deadletterDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.deadletterDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.deadletterDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.deadletterDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1402,16 +1402,16 @@ private void InitializeComponent() // // grouperDeadletterText // - this.grouperDeadletterText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDeadletterText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDeadletterText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDeadletterText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDeadletterText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDeadletterText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDeadletterText.BorderThickness = 1F; this.grouperDeadletterText.Controls.Add(this.txtDeadletterText); - this.grouperDeadletterText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDeadletterText.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperDeadletterText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDeadletterText.ForeColor = System.Drawing.Color.White; + this.grouperDeadletterText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDeadletterText.GroupImage = null; this.grouperDeadletterText.GroupTitle = "Message Text"; this.grouperDeadletterText.Location = new System.Drawing.Point(0, 0); @@ -1482,16 +1482,16 @@ private void InitializeComponent() // // grouperDeadletterSystemProperties // - this.grouperDeadletterSystemProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDeadletterSystemProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDeadletterSystemProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDeadletterSystemProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDeadletterSystemProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDeadletterSystemProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterSystemProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDeadletterSystemProperties.BorderThickness = 1F; this.grouperDeadletterSystemProperties.Controls.Add(this.deadletterPropertyGrid); - this.grouperDeadletterSystemProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterSystemProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDeadletterSystemProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperDeadletterSystemProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDeadletterSystemProperties.ForeColor = System.Drawing.Color.White; + this.grouperDeadletterSystemProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDeadletterSystemProperties.GroupImage = null; this.grouperDeadletterSystemProperties.GroupTitle = "Message System Properties"; this.grouperDeadletterSystemProperties.Location = new System.Drawing.Point(0, 0); @@ -1511,7 +1511,7 @@ private void InitializeComponent() this.deadletterPropertyGrid.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.deadletterPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.deadletterPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.deadletterPropertyGrid.HelpVisible = false; this.deadletterPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.deadletterPropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -1522,16 +1522,16 @@ private void InitializeComponent() // // grouperDeadletterCustomProperties // - this.grouperDeadletterCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDeadletterCustomProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDeadletterCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDeadletterCustomProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDeadletterCustomProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDeadletterCustomProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterCustomProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDeadletterCustomProperties.BorderThickness = 1F; this.grouperDeadletterCustomProperties.Controls.Add(this.deadletterCustomPropertyGrid); - this.grouperDeadletterCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDeadletterCustomProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperDeadletterCustomProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDeadletterCustomProperties.ForeColor = System.Drawing.Color.White; + this.grouperDeadletterCustomProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDeadletterCustomProperties.GroupImage = null; this.grouperDeadletterCustomProperties.GroupTitle = "Message Custom Properties"; this.grouperDeadletterCustomProperties.Location = new System.Drawing.Point(0, 0); @@ -1551,7 +1551,7 @@ private void InitializeComponent() this.deadletterCustomPropertyGrid.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.deadletterCustomPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.deadletterCustomPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.deadletterCustomPropertyGrid.CategoryForeColor = System.Drawing.SystemColors.InactiveCaptionText; this.deadletterCustomPropertyGrid.HelpVisible = false; this.deadletterCustomPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); @@ -1563,7 +1563,7 @@ private void InitializeComponent() // // tabPageTransferDeadletter // - this.tabPageTransferDeadletter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageTransferDeadletter.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageTransferDeadletter.Controls.Add(this.transferDeadletterSplitContainer); this.tabPageTransferDeadletter.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageTransferDeadletter.Location = new System.Drawing.Point(4, 22); @@ -1614,17 +1614,17 @@ private void InitializeComponent() // // grouperTransferDeadletterList // - this.grouperTransferDeadletterList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTransferDeadletterList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTransferDeadletterList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTransferDeadletterList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTransferDeadletterList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTransferDeadletterList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTransferDeadletterList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTransferDeadletterList.BorderThickness = 1F; this.grouperTransferDeadletterList.Controls.Add(this.pictureBox1); this.grouperTransferDeadletterList.Controls.Add(this.transferDeadletterDataGridView); - this.grouperTransferDeadletterList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTransferDeadletterList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTransferDeadletterList.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperTransferDeadletterList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTransferDeadletterList.ForeColor = System.Drawing.Color.White; + this.grouperTransferDeadletterList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTransferDeadletterList.GroupImage = null; this.grouperTransferDeadletterList.GroupTitle = "Message List"; this.grouperTransferDeadletterList.Location = new System.Drawing.Point(0, 0); @@ -1656,7 +1656,7 @@ private void InitializeComponent() this.transferDeadletterDataGridView.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.transferDeadletterDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.transferDeadletterDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.transferDeadletterDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.transferDeadletterDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.transferDeadletterDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1684,16 +1684,16 @@ private void InitializeComponent() // // grouperTransferDeadletterText // - this.grouperTransferDeadletterText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTransferDeadletterText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTransferDeadletterText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTransferDeadletterText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTransferDeadletterText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTransferDeadletterText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTransferDeadletterText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTransferDeadletterText.BorderThickness = 1F; this.grouperTransferDeadletterText.Controls.Add(this.txtTransferDeadletterText); - this.grouperTransferDeadletterText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTransferDeadletterText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTransferDeadletterText.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperTransferDeadletterText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTransferDeadletterText.ForeColor = System.Drawing.Color.White; + this.grouperTransferDeadletterText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTransferDeadletterText.GroupImage = null; this.grouperTransferDeadletterText.GroupTitle = "Message Text"; this.grouperTransferDeadletterText.Location = new System.Drawing.Point(0, 0); @@ -1764,16 +1764,16 @@ private void InitializeComponent() // // grouperTransferDeadletterSystemProperties // - this.grouperTransferDeadletterSystemProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTransferDeadletterSystemProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTransferDeadletterSystemProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTransferDeadletterSystemProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTransferDeadletterSystemProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTransferDeadletterSystemProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTransferDeadletterSystemProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTransferDeadletterSystemProperties.BorderThickness = 1F; this.grouperTransferDeadletterSystemProperties.Controls.Add(this.transferDeadletterPropertyGrid); - this.grouperTransferDeadletterSystemProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTransferDeadletterSystemProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTransferDeadletterSystemProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperTransferDeadletterSystemProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTransferDeadletterSystemProperties.ForeColor = System.Drawing.Color.White; + this.grouperTransferDeadletterSystemProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTransferDeadletterSystemProperties.GroupImage = null; this.grouperTransferDeadletterSystemProperties.GroupTitle = "Message System Properties"; this.grouperTransferDeadletterSystemProperties.Location = new System.Drawing.Point(0, 0); @@ -1793,7 +1793,7 @@ private void InitializeComponent() this.transferDeadletterPropertyGrid.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.transferDeadletterPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.transferDeadletterPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.transferDeadletterPropertyGrid.HelpVisible = false; this.transferDeadletterPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.transferDeadletterPropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -1804,16 +1804,16 @@ private void InitializeComponent() // // grouperTransferDeadletterCustomProperties // - this.grouperTransferDeadletterCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTransferDeadletterCustomProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTransferDeadletterCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTransferDeadletterCustomProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTransferDeadletterCustomProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTransferDeadletterCustomProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTransferDeadletterCustomProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTransferDeadletterCustomProperties.BorderThickness = 1F; this.grouperTransferDeadletterCustomProperties.Controls.Add(this.transferDeadletterCustomPropertyGrid); - this.grouperTransferDeadletterCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTransferDeadletterCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTransferDeadletterCustomProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperTransferDeadletterCustomProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTransferDeadletterCustomProperties.ForeColor = System.Drawing.Color.White; + this.grouperTransferDeadletterCustomProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTransferDeadletterCustomProperties.GroupImage = null; this.grouperTransferDeadletterCustomProperties.GroupTitle = "Message Custom Properties"; this.grouperTransferDeadletterCustomProperties.Location = new System.Drawing.Point(0, 0); @@ -1833,7 +1833,7 @@ private void InitializeComponent() this.transferDeadletterCustomPropertyGrid.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.transferDeadletterCustomPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.transferDeadletterCustomPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.transferDeadletterCustomPropertyGrid.CategoryForeColor = System.Drawing.SystemColors.InactiveCaptionText; this.transferDeadletterCustomPropertyGrid.HelpVisible = false; this.transferDeadletterCustomPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); @@ -1845,7 +1845,7 @@ private void InitializeComponent() // // tabPageSessions // - this.tabPageSessions.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageSessions.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageSessions.Controls.Add(this.sessionListStateSplitContainer); this.tabPageSessions.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageSessions.Location = new System.Drawing.Point(4, 22); @@ -1897,16 +1897,16 @@ private void InitializeComponent() // // grouperSessionList // - this.grouperSessionList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSessionList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSessionList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSessionList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSessionList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSessionList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSessionList.BorderThickness = 1F; this.grouperSessionList.Controls.Add(this.sessionsDataGridView); - this.grouperSessionList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSessionList.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperSessionList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSessionList.ForeColor = System.Drawing.Color.White; + this.grouperSessionList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSessionList.GroupImage = null; this.grouperSessionList.GroupTitle = "Session List"; this.grouperSessionList.Location = new System.Drawing.Point(0, 0); @@ -1929,7 +1929,7 @@ private void InitializeComponent() this.sessionsDataGridView.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.sessionsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.sessionsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.sessionsDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.sessionsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.sessionsDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1955,16 +1955,16 @@ private void InitializeComponent() // // grouperSessionState // - this.grouperSessionState.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSessionState.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSessionState.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSessionState.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSessionState.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSessionState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionState.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSessionState.BorderThickness = 1F; this.grouperSessionState.Controls.Add(this.txtSessionState); - this.grouperSessionState.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionState.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSessionState.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperSessionState.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSessionState.ForeColor = System.Drawing.Color.White; + this.grouperSessionState.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSessionState.GroupImage = null; this.grouperSessionState.GroupTitle = "Session State"; this.grouperSessionState.Location = new System.Drawing.Point(0, 0); @@ -1993,16 +1993,16 @@ private void InitializeComponent() // // grouperSessionProperties // - this.grouperSessionProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSessionProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSessionProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSessionProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSessionProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSessionProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSessionProperties.BorderThickness = 1F; this.grouperSessionProperties.Controls.Add(this.sessionPropertyGrid); - this.grouperSessionProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSessionProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperSessionProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSessionProperties.ForeColor = System.Drawing.Color.White; + this.grouperSessionProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSessionProperties.GroupImage = null; this.grouperSessionProperties.GroupTitle = "Session System Properties"; this.grouperSessionProperties.Location = new System.Drawing.Point(0, 0); @@ -2022,7 +2022,7 @@ private void InitializeComponent() this.sessionPropertyGrid.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.sessionPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.sessionPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.sessionPropertyGrid.HelpVisible = false; this.sessionPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.sessionPropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -2034,10 +2034,10 @@ private void InitializeComponent() // btnSessions // this.btnSessions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSessions.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnSessions.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSessions.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSessions.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnSessions.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnSessions.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnSessions.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnSessions.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnSessions.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSessions.ForeColor = System.Drawing.SystemColors.ControlText; this.btnSessions.Location = new System.Drawing.Point(358, 504); @@ -2051,10 +2051,10 @@ private void InitializeComponent() // btnMessages // this.btnMessages.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnMessages.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnMessages.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnMessages.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.btnMessages.Location = new System.Drawing.Point(438, 504); @@ -2068,10 +2068,10 @@ private void InitializeComponent() // btnDeadletter // this.btnDeadletter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnDeadletter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnDeadletter.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnDeadletter.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnDeadletter.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnDeadletter.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnDeadletter.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnDeadletter.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnDeadletter.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnDeadletter.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnDeadletter.ForeColor = System.Drawing.SystemColors.ControlText; this.btnDeadletter.Location = new System.Drawing.Point(518, 504); @@ -2268,10 +2268,10 @@ private void InitializeComponent() // btnPurgeMessages // this.btnPurgeMessages.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnPurgeMessages.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnPurgeMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnPurgeMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnPurgeMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnPurgeMessages.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnPurgeMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnPurgeMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnPurgeMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnPurgeMessages.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnPurgeMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.btnPurgeMessages.Location = new System.Drawing.Point(200, 504); @@ -2288,7 +2288,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.btnTransferDeadletterQueue); this.Controls.Add(this.btnPurgeMessages); this.Controls.Add(this.btnPurgeDeadletterQueueMessages); @@ -2535,3 +2535,4 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem selectAllSharedDeadletterMessagesToolStripMenuItem; } } + diff --git a/src/ServiceBusExplorer/Controls/HandleQueueControl.cs b/src/ServiceBusExplorer/Controls/HandleQueueControl.cs index d98c23e0..92fcbeb2 100644 --- a/src/ServiceBusExplorer/Controls/HandleQueueControl.cs +++ b/src/ServiceBusExplorer/Controls/HandleQueueControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team @@ -309,11 +309,10 @@ public HandleQueueControl(WriteToLogDelegate writeToLog, ServiceBusHelper servic this.duplicateQueue = duplicateQueue; InitializeComponent(); - btnCopyMessageBody = AddCopyBodyButton(grouperMessageText, txtMessageText); btnCopyDeadletterBody = AddCopyBodyButton(grouperDeadletterText, txtDeadletterText); btnCopyTransferDeadletterBody = AddCopyBodyButton(grouperTransferDeadletterText, txtTransferDeadletterText); - + ThemeManager.Apply(this); InitializeControls(initialCall: true); } #endregion @@ -539,6 +538,14 @@ static bool AreAllSelectedMessageScheduled(DataGridViewSelectedRowCollection sel private void InitializeControls(bool initialCall) { + var gridSelectionBackColor = ThemeManager.IsDark ? ThemeManager.Accent : Color.FromArgb(92, 125, 150); + var gridSelectionForeColor = ThemeManager.IsDark ? ThemeManager.AccentText : SystemColors.Window; + var gridRowHeaderSelectionBackColor = ThemeManager.IsDark ? ThemeManager.Accent : Color.FromArgb(153, 180, 209); + var gridRowsBackColor = ThemeManager.IsDark ? ThemeManager.SurfaceLight : SystemColors.Window; + var gridRowsForeColor = ThemeManager.IsDark ? ThemeManager.Foreground : SystemColors.ControlText; + var gridHeadersBackColor = ThemeManager.IsDark ? ThemeManager.Surface : Color.FromArgb(215, 228, 242); + var gridHeadersForeColor = ThemeManager.IsDark ? ThemeManager.Foreground : SystemColors.ControlText; + trackBarMaxQueueSize.Maximum = serviceBusHelper.IsCloudNamespace ? 5 : 11; if (this.premiumNamespace) @@ -595,25 +602,27 @@ private void InitializeControls(bool initialCall) authorizationRulesDataGridView.EnableHeadersVisualStyles = false; // Set the selection background color for all the cells. - authorizationRulesDataGridView.DefaultCellStyle.SelectionBackColor = Color.FromArgb(92, 125, 150); - authorizationRulesDataGridView.DefaultCellStyle.SelectionForeColor = SystemColors.Window; + authorizationRulesDataGridView.DefaultCellStyle.SelectionBackColor = gridSelectionBackColor; + authorizationRulesDataGridView.DefaultCellStyle.SelectionForeColor = gridSelectionForeColor; // Set RowHeadersDefaultCellStyle.SelectionBackColor so that its default // value won't override DataGridView.DefaultCellStyle.SelectionBackColor. - authorizationRulesDataGridView.RowHeadersDefaultCellStyle.SelectionBackColor = Color.FromArgb(153, 180, 209); + authorizationRulesDataGridView.RowHeadersDefaultCellStyle.SelectionBackColor = gridRowHeaderSelectionBackColor; // Set the background color for all rows and for alternating rows. // The value for alternating rows overrides the value for all rows. - authorizationRulesDataGridView.RowsDefaultCellStyle.BackColor = SystemColors.Window; - authorizationRulesDataGridView.RowsDefaultCellStyle.ForeColor = SystemColors.ControlText; + authorizationRulesDataGridView.RowsDefaultCellStyle.BackColor = gridRowsBackColor; + authorizationRulesDataGridView.RowsDefaultCellStyle.ForeColor = gridRowsForeColor; + authorizationRulesDataGridView.DefaultCellStyle.BackColor = gridRowsBackColor; + authorizationRulesDataGridView.DefaultCellStyle.ForeColor = gridRowsForeColor; //authorizationRulesDataGridView.AlternatingRowsDefaultCellStyle.BackColor = Color.White; //authorizationRulesDataGridView.AlternatingRowsDefaultCellStyle.ForeColor = SystemColors.ControlText; // Set the row and column header styles. - authorizationRulesDataGridView.RowHeadersDefaultCellStyle.BackColor = Color.FromArgb(215, 228, 242); - authorizationRulesDataGridView.RowHeadersDefaultCellStyle.ForeColor = SystemColors.ControlText; - authorizationRulesDataGridView.ColumnHeadersDefaultCellStyle.BackColor = Color.FromArgb(215, 228, 242); - authorizationRulesDataGridView.ColumnHeadersDefaultCellStyle.ForeColor = SystemColors.ControlText; + authorizationRulesDataGridView.RowHeadersDefaultCellStyle.BackColor = gridHeadersBackColor; + authorizationRulesDataGridView.RowHeadersDefaultCellStyle.ForeColor = gridHeadersForeColor; + authorizationRulesDataGridView.ColumnHeadersDefaultCellStyle.BackColor = gridHeadersBackColor; + authorizationRulesDataGridView.ColumnHeadersDefaultCellStyle.ForeColor = gridHeadersForeColor; authorizationRulesDataGridView.AutoGenerateColumns = false; if (authorizationRulesDataGridView.Columns.Count == 0) @@ -708,6 +717,11 @@ private void InitializeControls(bool initialCall) { ConfigureCreateUserInterface(); } + + if (ThemeManager.IsDark) + { + ThemeManager.Apply(this); + } } /// @@ -717,7 +731,8 @@ private void ConfigureReadUserInterface() { // Initialize textboxes txtPath.ReadOnly = true; - txtPath.BackColor = SystemColors.Window; + txtPath.BackColor = ThemeManager.IsDark ? ThemeManager.SurfaceLight : SystemColors.Window; + txtPath.ForeColor = ThemeManager.IsDark ? ThemeManager.Foreground : SystemColors.WindowText; txtPath.GotFocus += textBox_GotFocus; txtMessageText.ReadOnly = true; @@ -2791,7 +2806,10 @@ private void dataGridView_RowPostPaint(object sender, DataGridViewRowPostPaintEv } var headerBounds = new Rectangle(e.RowBounds.Left, e.RowBounds.Top, grid.RowHeadersWidth - 4, e.RowBounds.Height); - e.Graphics.DrawString(rowIdx, this.Font, SystemBrushes.ControlText, headerBounds, centerFormat); + using (var brush = new SolidBrush(ThemeManager.IsDark ? ThemeManager.ForegroundDim : SystemColors.ControlText)) + { + e.Graphics.DrawString(rowIdx, this.Font, brush, headerBounds, centerFormat); + } } private void dataGridView_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) @@ -3374,10 +3392,10 @@ async void cancelScheduledMessageToolStripMenuItem_Click(object sender, EventArg } - IEnumerable messages = messagesDataGridView.SelectedRows.Cast() + var messages = messagesDataGridView.SelectedRows.Cast() .Select(r => (BrokeredMessage)r.DataBoundItem).Where(m => m != null); - List sequenceNumbersToCancel = messages.Select(s => s.SequenceNumber).ToList(); + var sequenceNumbersToCancel = messages.Select(s => s.SequenceNumber).ToList(); using var waitCursorScope = new WaitCursorScope(thisForm); @@ -4429,3 +4447,4 @@ void RepairAndResubmitSharedDeadletterMessage(DataGridViewCellEventArgs e) } } } + diff --git a/src/ServiceBusExplorer/Controls/HandleRelayControl.Designer.cs b/src/ServiceBusExplorer/Controls/HandleRelayControl.Designer.cs index ac986309..2ae53e0b 100644 --- a/src/ServiceBusExplorer/Controls/HandleRelayControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HandleRelayControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class HandleRelayControl { @@ -62,7 +62,7 @@ private void InitializeComponent() // // tabPageDescription // - this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageDescription.Controls.Add(this.grouperRelaySettings); this.tabPageDescription.Controls.Add(this.grouperPath); this.tabPageDescription.Controls.Add(this.grouperRelayProperties); @@ -78,15 +78,15 @@ private void InitializeComponent() // this.grouperRelaySettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperRelaySettings.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperRelaySettings.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperRelaySettings.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperRelaySettings.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperRelaySettings.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperRelaySettings.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperRelaySettings.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperRelaySettings.BorderThickness = 1F; this.grouperRelaySettings.Controls.Add(this.checkedListBox); - this.grouperRelaySettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperRelaySettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperRelaySettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperRelaySettings.ForeColor = System.Drawing.Color.White; + this.grouperRelaySettings.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperRelaySettings.GroupImage = null; this.grouperRelaySettings.GroupTitle = "Relay Settings"; this.grouperRelaySettings.Location = new System.Drawing.Point(328, 96); @@ -121,16 +121,16 @@ private void InitializeComponent() // // grouperPath // - this.grouperPath.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperPath.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperPath.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperPath.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperPath.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperPath.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPath.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperPath.BorderThickness = 1F; this.grouperPath.Controls.Add(this.lblRelativeURI); this.grouperPath.Controls.Add(this.txtPath); - this.grouperPath.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPath.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperPath.ForeColor = System.Drawing.Color.White; + this.grouperPath.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperPath.GroupImage = null; this.grouperPath.GroupTitle = "Path"; this.grouperPath.Location = new System.Drawing.Point(16, 8); @@ -158,7 +158,7 @@ private void InitializeComponent() // this.txtPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtPath.BackColor = System.Drawing.SystemColors.Window; + this.txtPath.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtPath.Location = new System.Drawing.Point(16, 44); this.txtPath.Name = "txtPath"; @@ -169,19 +169,19 @@ private void InitializeComponent() // this.grouperRelayProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperRelayProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperRelayProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperRelayProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperRelayProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperRelayProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperRelayProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperRelayProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperRelayProperties.BorderThickness = 1F; this.grouperRelayProperties.Controls.Add(this.cboRelayType); this.grouperRelayProperties.Controls.Add(this.lblRelayType); this.grouperRelayProperties.Controls.Add(this.txtUserMetadata); this.grouperRelayProperties.Controls.Add(this.lblUserMetadata); this.grouperRelayProperties.Controls.Add(this.btnOpenDescriptionForm); - this.grouperRelayProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperRelayProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperRelayProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperRelayProperties.ForeColor = System.Drawing.Color.White; + this.grouperRelayProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperRelayProperties.GroupImage = null; this.grouperRelayProperties.GroupTitle = "Relay Properties"; this.grouperRelayProperties.Location = new System.Drawing.Point(16, 96); @@ -224,7 +224,7 @@ private void InitializeComponent() this.txtUserMetadata.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.txtUserMetadata.BackColor = System.Drawing.SystemColors.Window; + this.txtUserMetadata.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtUserMetadata.Location = new System.Drawing.Point(16, 88); this.txtUserMetadata.MaxLength = 0; this.txtUserMetadata.Multiline = true; @@ -245,10 +245,10 @@ private void InitializeComponent() // btnOpenDescriptionForm // this.btnOpenDescriptionForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenDescriptionForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenDescriptionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenDescriptionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenDescriptionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenDescriptionForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenDescriptionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenDescriptionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenDescriptionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenDescriptionForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenDescriptionForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenDescriptionForm.Location = new System.Drawing.Point(256, 88); @@ -267,15 +267,15 @@ private void InitializeComponent() this.grouperRelayInformation.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.grouperRelayInformation.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperRelayInformation.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperRelayInformation.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperRelayInformation.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperRelayInformation.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperRelayInformation.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperRelayInformation.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperRelayInformation.BorderThickness = 1F; this.grouperRelayInformation.Controls.Add(this.propertyListView); - this.grouperRelayInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperRelayInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperRelayInformation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperRelayInformation.ForeColor = System.Drawing.Color.White; + this.grouperRelayInformation.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperRelayInformation.GroupImage = null; this.grouperRelayInformation.GroupTitle = "Relay Information"; this.grouperRelayInformation.Location = new System.Drawing.Point(640, 8); @@ -338,7 +338,7 @@ private void InitializeComponent() // // tabPageAuthorization // - this.tabPageAuthorization.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageAuthorization.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageAuthorization.Controls.Add(this.grouperAuthorizationRuleList); this.tabPageAuthorization.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageAuthorization.Location = new System.Drawing.Point(4, 24); @@ -352,15 +352,15 @@ private void InitializeComponent() this.grouperAuthorizationRuleList.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.grouperAuthorizationRuleList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAuthorizationRuleList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAuthorizationRuleList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAuthorizationRuleList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAuthorizationRuleList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAuthorizationRuleList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAuthorizationRuleList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAuthorizationRuleList.BorderThickness = 1F; this.grouperAuthorizationRuleList.Controls.Add(this.authorizationRulesDataGridView); - this.grouperAuthorizationRuleList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAuthorizationRuleList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAuthorizationRuleList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAuthorizationRuleList.ForeColor = System.Drawing.Color.White; + this.grouperAuthorizationRuleList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAuthorizationRuleList.GroupImage = null; this.grouperAuthorizationRuleList.GroupTitle = "Authorization Rule List"; this.grouperAuthorizationRuleList.Location = new System.Drawing.Point(16, 8); @@ -382,7 +382,7 @@ private void InitializeComponent() this.authorizationRulesDataGridView.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.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.authorizationRulesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.authorizationRulesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.authorizationRulesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -406,10 +406,10 @@ private void InitializeComponent() // btnRefresh // this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRefresh.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRefresh.Location = new System.Drawing.Point(760, 504); @@ -425,10 +425,10 @@ private void InitializeComponent() // btnCancelUpdate // this.btnCancelUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancelUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancelUpdate.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancelUpdate.Location = new System.Drawing.Point(920, 504); @@ -444,10 +444,10 @@ private void InitializeComponent() // btnCreateDelete // this.btnCreateDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCreateDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCreateDelete.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCreateDelete.Location = new System.Drawing.Point(840, 504); @@ -464,7 +464,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.mainTabControl); this.Controls.Add(this.btnRefresh); this.Controls.Add(this.btnCancelUpdate); @@ -523,3 +523,4 @@ private void InitializeComponent() private System.Windows.Forms.ComboBox cboRelayType; } } + diff --git a/src/ServiceBusExplorer/Controls/HandleRelayControl.cs b/src/ServiceBusExplorer/Controls/HandleRelayControl.cs index 4fa8cd07..e4457400 100644 --- a/src/ServiceBusExplorer/Controls/HandleRelayControl.cs +++ b/src/ServiceBusExplorer/Controls/HandleRelayControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -119,6 +119,7 @@ public HandleRelayControl(WriteToLogDelegate writeToLog, ServiceBusHelper servic this.path = path; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); } #endregion @@ -219,7 +220,8 @@ private void InitializeControls() // Initialize textboxes txtPath.ReadOnly = true; - txtPath.BackColor = SystemColors.Window; + txtPath.BackColor = ThemeManager.IsDark ? ThemeManager.SurfaceLight : SystemColors.Window; + txtPath.ForeColor = ThemeManager.IsDark ? ThemeManager.Foreground : SystemColors.WindowText; txtPath.ForeColor = SystemColors.ControlText; txtPath.GotFocus += textBox_GotFocus; @@ -983,3 +985,4 @@ private void grouperRelayProperties_CustomPaint(PaintEventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/HandleRuleControl.Designer.cs b/src/ServiceBusExplorer/Controls/HandleRuleControl.Designer.cs index 5493749a..7ba925c0 100644 --- a/src/ServiceBusExplorer/Controls/HandleRuleControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HandleRuleControl.Designer.cs @@ -62,10 +62,10 @@ private void InitializeComponent() // btnCreateDelete // this.btnCreateDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCreateDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCreateDelete.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCreateDelete.Location = new System.Drawing.Point(800, 360); @@ -81,10 +81,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancel.Location = new System.Drawing.Point(880, 360); @@ -100,15 +100,15 @@ private void InitializeComponent() // grouperFilterType // this.grouperFilterType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.grouperFilterType.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperFilterType.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperFilterType.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperFilterType.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperFilterType.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperFilterType.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperFilterType.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperFilterType.BorderThickness = 1F; this.grouperFilterType.Controls.Add(this.checkBoxIsCorrelationFilter); - this.grouperFilterType.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperFilterType.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperFilterType.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperFilterType.ForeColor = System.Drawing.Color.White; + this.grouperFilterType.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperFilterType.GroupImage = null; this.grouperFilterType.GroupTitle = "Filter Type"; this.grouperFilterType.Location = new System.Drawing.Point(685, 8); @@ -140,10 +140,10 @@ private void InitializeComponent() this.grouperCorrelationFilter.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.grouperCorrelationFilter.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperCorrelationFilter.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperCorrelationFilter.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperCorrelationFilter.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperCorrelationFilter.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperCorrelationFilter.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCorrelationFilter.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperCorrelationFilter.BorderThickness = 1F; this.grouperCorrelationFilter.Controls.Add(this.txtCorrelationFilterTo); this.grouperCorrelationFilter.Controls.Add(this.lblCorrelationFilterTo); @@ -162,9 +162,9 @@ private void InitializeComponent() this.grouperCorrelationFilter.Controls.Add(this.txtCorrelationFilterContentType); this.grouperCorrelationFilter.Controls.Add(this.lblCorrelationFilterContentType); this.grouperCorrelationFilter.Controls.Add(this.authorizationRulesDataGridView); - this.grouperCorrelationFilter.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCorrelationFilter.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperCorrelationFilter.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperCorrelationFilter.ForeColor = System.Drawing.Color.White; + this.grouperCorrelationFilter.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperCorrelationFilter.GroupImage = null; this.grouperCorrelationFilter.GroupTitle = "Correlation Filter"; this.grouperCorrelationFilter.Location = new System.Drawing.Point(16, 96); @@ -334,7 +334,7 @@ private void InitializeComponent() // authorizationRulesDataGridView // this.authorizationRulesDataGridView.AllowUserToResizeRows = false; - this.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.authorizationRulesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.authorizationRulesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.authorizationRulesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -356,15 +356,15 @@ private void InitializeComponent() // this.grouperCreatedAt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperCreatedAt.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperCreatedAt.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperCreatedAt.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperCreatedAt.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperCreatedAt.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperCreatedAt.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCreatedAt.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperCreatedAt.BorderThickness = 1F; this.grouperCreatedAt.Controls.Add(this.txtCreatedAt); - this.grouperCreatedAt.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCreatedAt.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperCreatedAt.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperCreatedAt.ForeColor = System.Drawing.Color.White; + this.grouperCreatedAt.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperCreatedAt.GroupImage = null; this.grouperCreatedAt.GroupTitle = "Created At"; this.grouperCreatedAt.Location = new System.Drawing.Point(492, 8); @@ -382,7 +382,7 @@ private void InitializeComponent() // this.txtCreatedAt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtCreatedAt.BackColor = System.Drawing.SystemColors.Window; + this.txtCreatedAt.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtCreatedAt.Location = new System.Drawing.Point(16, 40); this.txtCreatedAt.Name = "txtCreatedAt"; this.txtCreatedAt.ReadOnly = true; @@ -392,15 +392,15 @@ private void InitializeComponent() // grouperIsDefault // this.grouperIsDefault.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.grouperIsDefault.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperIsDefault.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperIsDefault.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperIsDefault.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperIsDefault.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperIsDefault.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperIsDefault.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperIsDefault.BorderThickness = 1F; this.grouperIsDefault.Controls.Add(this.checkBoxDefault); - this.grouperIsDefault.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperIsDefault.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperIsDefault.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperIsDefault.ForeColor = System.Drawing.Color.White; + this.grouperIsDefault.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperIsDefault.GroupImage = null; this.grouperIsDefault.GroupTitle = "Is Default?"; this.grouperIsDefault.Location = new System.Drawing.Point(828, 8); @@ -431,15 +431,15 @@ private void InitializeComponent() this.grouperAction.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.grouperAction.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAction.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAction.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAction.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAction.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAction.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAction.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAction.BorderThickness = 1F; this.grouperAction.Controls.Add(this.txtSqlFilterAction); - this.grouperAction.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAction.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAction.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAction.ForeColor = System.Drawing.Color.White; + this.grouperAction.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAction.GroupImage = null; this.grouperAction.GroupTitle = "Action"; this.grouperAction.Location = new System.Drawing.Point(492, 96); @@ -458,7 +458,7 @@ private void InitializeComponent() this.txtSqlFilterAction.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.txtSqlFilterAction.BackColor = System.Drawing.SystemColors.Window; + this.txtSqlFilterAction.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtSqlFilterAction.Location = new System.Drawing.Point(16, 32); this.txtSqlFilterAction.Multiline = true; this.txtSqlFilterAction.Name = "txtSqlFilterAction"; @@ -471,15 +471,15 @@ private void InitializeComponent() this.grouperFilter.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.grouperFilter.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperFilter.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperFilter.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperFilter.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperFilter.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperFilter.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperFilter.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperFilter.BorderThickness = 1F; this.grouperFilter.Controls.Add(this.txtFilterExpression); - this.grouperFilter.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperFilter.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperFilter.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperFilter.ForeColor = System.Drawing.Color.White; + this.grouperFilter.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperFilter.GroupImage = null; this.grouperFilter.GroupTitle = "Filter"; this.grouperFilter.Location = new System.Drawing.Point(16, 96); @@ -498,7 +498,7 @@ private void InitializeComponent() this.txtFilterExpression.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.txtFilterExpression.BackColor = System.Drawing.SystemColors.Window; + this.txtFilterExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtFilterExpression.Location = new System.Drawing.Point(16, 32); this.txtFilterExpression.Multiline = true; this.txtFilterExpression.Name = "txtFilterExpression"; @@ -510,15 +510,15 @@ private void InitializeComponent() // this.grouperName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperName.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperName.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperName.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperName.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperName.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperName.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperName.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperName.BorderThickness = 1F; this.grouperName.Controls.Add(this.txtName); - this.grouperName.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperName.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperName.ForeColor = System.Drawing.Color.White; + this.grouperName.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperName.GroupImage = null; this.grouperName.GroupTitle = "Name"; this.grouperName.Location = new System.Drawing.Point(16, 8); @@ -536,7 +536,7 @@ private void InitializeComponent() // this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtName.BackColor = System.Drawing.SystemColors.Window; + this.txtName.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtName.Location = new System.Drawing.Point(16, 40); this.txtName.Name = "txtName"; this.txtName.Size = new System.Drawing.Size(428, 20); @@ -545,7 +545,7 @@ private void InitializeComponent() // HandleRuleControl // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.grouperFilterType); this.Controls.Add(this.grouperCorrelationFilter); this.Controls.Add(this.grouperCreatedAt); @@ -614,3 +614,4 @@ private void InitializeComponent() private System.Windows.Forms.DataGridView authorizationRulesDataGridView; } } + diff --git a/src/ServiceBusExplorer/Controls/HandleRuleControl.cs b/src/ServiceBusExplorer/Controls/HandleRuleControl.cs index abe84a46..c3871c81 100644 --- a/src/ServiceBusExplorer/Controls/HandleRuleControl.cs +++ b/src/ServiceBusExplorer/Controls/HandleRuleControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -84,6 +84,7 @@ public HandleRuleControl(WriteToLogDelegate writeToLog, ServiceBusHelper service this.ruleWrapper = ruleWrapper; this.isFirstRule = isFirstRule; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); InitializeData(); } @@ -459,3 +460,4 @@ protected override void Dispose(bool disposing) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/HandleSubscriptionControl.Designer.cs b/src/ServiceBusExplorer/Controls/HandleSubscriptionControl.Designer.cs index 2e2b04d2..185f6002 100644 --- a/src/ServiceBusExplorer/Controls/HandleSubscriptionControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HandleSubscriptionControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class HandleSubscriptionControl { @@ -197,10 +197,10 @@ private void InitializeComponent() // btnPurgeDeadletterQueueMessages // this.btnPurgeDeadletterQueueMessages.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnPurgeDeadletterQueueMessages.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnPurgeDeadletterQueueMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnPurgeDeadletterQueueMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnPurgeDeadletterQueueMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnPurgeDeadletterQueueMessages.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnPurgeDeadletterQueueMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnPurgeDeadletterQueueMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnPurgeDeadletterQueueMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnPurgeDeadletterQueueMessages.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnPurgeDeadletterQueueMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.btnPurgeDeadletterQueueMessages.Location = new System.Drawing.Point(362, 504); @@ -217,10 +217,10 @@ private void InitializeComponent() // btnRefresh // this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRefresh.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRefresh.Location = new System.Drawing.Point(680, 504); @@ -236,10 +236,10 @@ private void InitializeComponent() // btnChangeStatus // this.btnChangeStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnChangeStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnChangeStatus.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnChangeStatus.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnChangeStatus.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnChangeStatus.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnChangeStatus.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnChangeStatus.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnChangeStatus.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnChangeStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnChangeStatus.ForeColor = System.Drawing.SystemColors.ControlText; this.btnChangeStatus.Location = new System.Drawing.Point(759, 504); @@ -255,10 +255,10 @@ private void InitializeComponent() // btnCancelUpdate // this.btnCancelUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancelUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancelUpdate.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancelUpdate.Location = new System.Drawing.Point(918, 504); @@ -272,10 +272,10 @@ private void InitializeComponent() // btnCreateDelete // this.btnCreateDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCreateDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCreateDelete.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCreateDelete.Location = new System.Drawing.Point(838, 504); @@ -291,10 +291,10 @@ private void InitializeComponent() // btnDeadletter // this.btnDeadletter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnDeadletter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnDeadletter.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnDeadletter.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnDeadletter.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnDeadletter.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnDeadletter.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnDeadletter.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnDeadletter.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnDeadletter.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnDeadletter.ForeColor = System.Drawing.SystemColors.ControlText; this.btnDeadletter.Location = new System.Drawing.Point(600, 504); @@ -308,10 +308,10 @@ private void InitializeComponent() // btnMessages // this.btnMessages.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnMessages.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnMessages.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnMessages.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.btnMessages.Location = new System.Drawing.Point(520, 504); @@ -325,10 +325,10 @@ private void InitializeComponent() // btnSessions // this.btnSessions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSessions.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnSessions.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSessions.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSessions.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnSessions.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnSessions.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnSessions.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnSessions.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnSessions.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSessions.ForeColor = System.Drawing.SystemColors.ControlText; this.btnSessions.Location = new System.Drawing.Point(441, 504); @@ -359,7 +359,7 @@ private void InitializeComponent() // // tabPageDescription // - this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageDescription.Controls.Add(this.grouperAutoDeleteOnIdle); this.tabPageDescription.Controls.Add(this.groupergrouperDefaultMessageTimeToLive); this.tabPageDescription.Controls.Add(this.grouperName); @@ -377,15 +377,15 @@ private void InitializeComponent() // // grouperAutoDeleteOnIdle // - this.grouperAutoDeleteOnIdle.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAutoDeleteOnIdle.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAutoDeleteOnIdle.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAutoDeleteOnIdle.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAutoDeleteOnIdle.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAutoDeleteOnIdle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAutoDeleteOnIdle.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAutoDeleteOnIdle.BorderThickness = 1F; this.grouperAutoDeleteOnIdle.Controls.Add(this.tsAutoDeleteOnIdle); - this.grouperAutoDeleteOnIdle.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAutoDeleteOnIdle.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAutoDeleteOnIdle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAutoDeleteOnIdle.ForeColor = System.Drawing.Color.White; + this.grouperAutoDeleteOnIdle.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAutoDeleteOnIdle.GroupImage = null; this.grouperAutoDeleteOnIdle.GroupTitle = "Auto Delete On Idle"; this.grouperAutoDeleteOnIdle.Location = new System.Drawing.Point(328, 8); @@ -410,15 +410,15 @@ private void InitializeComponent() // // groupergrouperDefaultMessageTimeToLive // - this.groupergrouperDefaultMessageTimeToLive.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.groupergrouperDefaultMessageTimeToLive.BackgroundGradientColor = System.Drawing.Color.White; + this.groupergrouperDefaultMessageTimeToLive.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.groupergrouperDefaultMessageTimeToLive.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.groupergrouperDefaultMessageTimeToLive.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.groupergrouperDefaultMessageTimeToLive.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.groupergrouperDefaultMessageTimeToLive.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.groupergrouperDefaultMessageTimeToLive.BorderThickness = 1F; this.groupergrouperDefaultMessageTimeToLive.Controls.Add(this.tsDefaultMessageTimeToLive); - this.groupergrouperDefaultMessageTimeToLive.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.groupergrouperDefaultMessageTimeToLive.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.groupergrouperDefaultMessageTimeToLive.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.groupergrouperDefaultMessageTimeToLive.ForeColor = System.Drawing.Color.White; + this.groupergrouperDefaultMessageTimeToLive.ForeColor = System.Drawing.SystemColors.ControlText; this.groupergrouperDefaultMessageTimeToLive.GroupImage = null; this.groupergrouperDefaultMessageTimeToLive.GroupTitle = "Default Message Time To Live"; this.groupergrouperDefaultMessageTimeToLive.Location = new System.Drawing.Point(328, 96); @@ -443,16 +443,16 @@ private void InitializeComponent() // // grouperName // - this.grouperName.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperName.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperName.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperName.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperName.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperName.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperName.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperName.BorderThickness = 1F; this.grouperName.Controls.Add(this.lblRelativeURI); this.grouperName.Controls.Add(this.txtName); - this.grouperName.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperName.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperName.ForeColor = System.Drawing.Color.White; + this.grouperName.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperName.GroupImage = null; this.grouperName.GroupTitle = "Name"; this.grouperName.Location = new System.Drawing.Point(16, 8); @@ -480,7 +480,7 @@ private void InitializeComponent() // this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtName.BackColor = System.Drawing.SystemColors.Window; + this.txtName.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtName.Location = new System.Drawing.Point(16, 44); this.txtName.Name = "txtName"; @@ -489,10 +489,10 @@ private void InitializeComponent() // // grouperDefaultRule // - this.grouperDefaultRule.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDefaultRule.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDefaultRule.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDefaultRule.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDefaultRule.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDefaultRule.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDefaultRule.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDefaultRule.BorderThickness = 1F; this.grouperDefaultRule.Controls.Add(this.btnOpenActionForm); this.grouperDefaultRule.Controls.Add(this.btnOpenFilterForm); @@ -500,9 +500,9 @@ private void InitializeComponent() this.grouperDefaultRule.Controls.Add(this.lblFilter); this.grouperDefaultRule.Controls.Add(this.txtAction); this.grouperDefaultRule.Controls.Add(this.txtFilter); - this.grouperDefaultRule.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDefaultRule.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDefaultRule.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDefaultRule.ForeColor = System.Drawing.Color.White; + this.grouperDefaultRule.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDefaultRule.GroupImage = null; this.grouperDefaultRule.GroupTitle = "Default Rule"; this.grouperDefaultRule.Location = new System.Drawing.Point(328, 184); @@ -519,10 +519,10 @@ private void InitializeComponent() // btnOpenActionForm // this.btnOpenActionForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenActionForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenActionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenActionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenActionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenActionForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenActionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenActionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenActionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenActionForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenActionForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenActionForm.Location = new System.Drawing.Point(256, 88); @@ -537,10 +537,10 @@ private void InitializeComponent() // btnOpenFilterForm // this.btnOpenFilterForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenFilterForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenFilterForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFilterForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFilterForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenFilterForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenFilterForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenFilterForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenFilterForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenFilterForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenFilterForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenFilterForm.Location = new System.Drawing.Point(256, 44); @@ -576,7 +576,7 @@ private void InitializeComponent() // this.txtAction.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtAction.BackColor = System.Drawing.SystemColors.Window; + this.txtAction.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtAction.Location = new System.Drawing.Point(16, 88); this.txtAction.Name = "txtAction"; this.txtAction.Size = new System.Drawing.Size(232, 20); @@ -586,7 +586,7 @@ private void InitializeComponent() // this.txtFilter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtFilter.BackColor = System.Drawing.SystemColors.Window; + this.txtFilter.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtFilter.Location = new System.Drawing.Point(16, 44); this.txtFilter.Name = "txtFilter"; this.txtFilter.Size = new System.Drawing.Size(232, 20); @@ -598,15 +598,15 @@ private void InitializeComponent() this.grouperSubscriptionInformation.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.grouperSubscriptionInformation.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSubscriptionInformation.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSubscriptionInformation.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSubscriptionInformation.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSubscriptionInformation.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSubscriptionInformation.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSubscriptionInformation.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSubscriptionInformation.BorderThickness = 1F; this.grouperSubscriptionInformation.Controls.Add(this.propertyListView); - this.grouperSubscriptionInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSubscriptionInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSubscriptionInformation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSubscriptionInformation.ForeColor = System.Drawing.Color.White; + this.grouperSubscriptionInformation.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSubscriptionInformation.GroupImage = null; this.grouperSubscriptionInformation.GroupTitle = "Subscription Information"; this.grouperSubscriptionInformation.Location = new System.Drawing.Point(640, 8); @@ -655,10 +655,10 @@ private void InitializeComponent() // this.grouperSubscriptionProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperSubscriptionProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSubscriptionProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSubscriptionProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSubscriptionProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSubscriptionProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSubscriptionProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSubscriptionProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSubscriptionProperties.BorderThickness = 1F; this.grouperSubscriptionProperties.Controls.Add(this.btnOpenForwardDeadLetteredMessagesToForm); this.grouperSubscriptionProperties.Controls.Add(this.lblForwardDeadLetteredMessagesTo); @@ -671,9 +671,9 @@ private void InitializeComponent() this.grouperSubscriptionProperties.Controls.Add(this.label2); this.grouperSubscriptionProperties.Controls.Add(this.labelUserDescription); this.grouperSubscriptionProperties.Controls.Add(this.txtMaxDeliveryCount); - this.grouperSubscriptionProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSubscriptionProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSubscriptionProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSubscriptionProperties.ForeColor = System.Drawing.Color.White; + this.grouperSubscriptionProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSubscriptionProperties.GroupImage = null; this.grouperSubscriptionProperties.GroupTitle = "Subscription Properties"; this.grouperSubscriptionProperties.Location = new System.Drawing.Point(16, 184); @@ -690,10 +690,10 @@ private void InitializeComponent() // btnOpenForwardDeadLetteredMessagesToForm // this.btnOpenForwardDeadLetteredMessagesToForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenForwardDeadLetteredMessagesToForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenForwardDeadLetteredMessagesToForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenForwardDeadLetteredMessagesToForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenForwardDeadLetteredMessagesToForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenForwardDeadLetteredMessagesToForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenForwardDeadLetteredMessagesToForm.Location = new System.Drawing.Point(256, 176); @@ -719,7 +719,7 @@ private void InitializeComponent() // this.txtForwardDeadLetteredMessagesTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtForwardDeadLetteredMessagesTo.BackColor = System.Drawing.SystemColors.Window; + this.txtForwardDeadLetteredMessagesTo.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtForwardDeadLetteredMessagesTo.Location = new System.Drawing.Point(16, 176); this.txtForwardDeadLetteredMessagesTo.Name = "txtForwardDeadLetteredMessagesTo"; this.txtForwardDeadLetteredMessagesTo.Size = new System.Drawing.Size(232, 20); @@ -728,10 +728,10 @@ private void InitializeComponent() // btnOpenDescriptionForm // this.btnOpenDescriptionForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenDescriptionForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenDescriptionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenDescriptionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenDescriptionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenDescriptionForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenDescriptionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenDescriptionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenDescriptionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenDescriptionForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenDescriptionForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenDescriptionForm.Location = new System.Drawing.Point(256, 88); @@ -747,7 +747,7 @@ private void InitializeComponent() // this.txtUserMetadata.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtUserMetadata.BackColor = System.Drawing.SystemColors.Window; + this.txtUserMetadata.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtUserMetadata.Location = new System.Drawing.Point(16, 88); this.txtUserMetadata.Name = "txtUserMetadata"; this.txtUserMetadata.Size = new System.Drawing.Size(232, 20); @@ -756,10 +756,10 @@ private void InitializeComponent() // btnOpenForwardToForm // this.btnOpenForwardToForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenForwardToForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenForwardToForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenForwardToForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenForwardToForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenForwardToForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenForwardToForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenForwardToForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenForwardToForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenForwardToForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenForwardToForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenForwardToForm.Location = new System.Drawing.Point(256, 132); @@ -785,7 +785,7 @@ private void InitializeComponent() // this.txtForwardTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtForwardTo.BackColor = System.Drawing.SystemColors.Window; + this.txtForwardTo.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtForwardTo.Location = new System.Drawing.Point(16, 132); this.txtForwardTo.Name = "txtForwardTo"; this.txtForwardTo.Size = new System.Drawing.Size(232, 20); @@ -818,7 +818,7 @@ private void InitializeComponent() this.txtMaxDeliveryCount.AllowSpace = false; this.txtMaxDeliveryCount.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtMaxDeliveryCount.BackColor = System.Drawing.SystemColors.Window; + this.txtMaxDeliveryCount.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtMaxDeliveryCount.IsZeroWhenEmpty = false; this.txtMaxDeliveryCount.Location = new System.Drawing.Point(16, 44); this.txtMaxDeliveryCount.Name = "txtMaxDeliveryCount"; @@ -827,15 +827,15 @@ private void InitializeComponent() // // grouperLockDuration // - this.grouperLockDuration.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperLockDuration.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperLockDuration.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperLockDuration.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperLockDuration.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperLockDuration.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperLockDuration.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperLockDuration.BorderThickness = 1F; this.grouperLockDuration.Controls.Add(this.tsLockDuration); - this.grouperLockDuration.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperLockDuration.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperLockDuration.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperLockDuration.ForeColor = System.Drawing.Color.White; + this.grouperLockDuration.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperLockDuration.GroupImage = null; this.grouperLockDuration.GroupTitle = "Lock Duration"; this.grouperLockDuration.Location = new System.Drawing.Point(16, 96); @@ -862,15 +862,15 @@ private void InitializeComponent() // this.grouperSubscriptionSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperSubscriptionSettings.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSubscriptionSettings.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSubscriptionSettings.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSubscriptionSettings.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSubscriptionSettings.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSubscriptionSettings.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSubscriptionSettings.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSubscriptionSettings.BorderThickness = 1F; this.grouperSubscriptionSettings.Controls.Add(this.checkedListBox); - this.grouperSubscriptionSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSubscriptionSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSubscriptionSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSubscriptionSettings.ForeColor = System.Drawing.Color.White; + this.grouperSubscriptionSettings.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSubscriptionSettings.GroupImage = null; this.grouperSubscriptionSettings.GroupTitle = "Subscription Settings"; this.grouperSubscriptionSettings.Location = new System.Drawing.Point(328, 312); @@ -907,7 +907,7 @@ private void InitializeComponent() // // tabPageMessages // - this.tabPageMessages.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageMessages.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageMessages.Controls.Add(this.messagesSplitContainer); this.tabPageMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageMessages.Location = new System.Drawing.Point(4, 24); @@ -959,18 +959,18 @@ private void InitializeComponent() // // grouperMessageList // - this.grouperMessageList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageList.BorderThickness = 1F; this.grouperMessageList.Controls.Add(this.pictFindMessages); this.grouperMessageList.Controls.Add(this.pictFindMessagesByDate); this.grouperMessageList.Controls.Add(this.messagesDataGridView); - this.grouperMessageList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageList.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageList.ForeColor = System.Drawing.Color.White; + this.grouperMessageList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageList.GroupImage = null; this.grouperMessageList.GroupTitle = "Message List"; this.grouperMessageList.Location = new System.Drawing.Point(0, 0); @@ -1017,7 +1017,7 @@ private void InitializeComponent() this.messagesDataGridView.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.messagesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.messagesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.messagesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.messagesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.messagesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1045,16 +1045,16 @@ private void InitializeComponent() // // grouperMessageText // - this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageText.BorderThickness = 1F; this.grouperMessageText.Controls.Add(this.txtMessageText); - this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageText.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageText.ForeColor = System.Drawing.Color.White; + this.grouperMessageText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageText.GroupImage = null; this.grouperMessageText.GroupTitle = "Message Text"; this.grouperMessageText.Location = new System.Drawing.Point(0, 0); @@ -1123,16 +1123,16 @@ private void InitializeComponent() // // grouperMessageProperties // - this.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageProperties.BorderThickness = 1F; this.grouperMessageProperties.Controls.Add(this.messagePropertyGrid); - this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageProperties.GroupImage = null; this.grouperMessageProperties.GroupTitle = "Message System Properties"; this.grouperMessageProperties.Location = new System.Drawing.Point(0, 0); @@ -1151,7 +1151,7 @@ private void InitializeComponent() this.messagePropertyGrid.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.messagePropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.messagePropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.messagePropertyGrid.HelpVisible = false; this.messagePropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.messagePropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -1162,16 +1162,16 @@ private void InitializeComponent() // // grouperMessageCustomProperties // - this.grouperMessageCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageCustomProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageCustomProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageCustomProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageCustomProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageCustomProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageCustomProperties.BorderThickness = 1F; this.grouperMessageCustomProperties.Controls.Add(this.messageCustomPropertyGrid); - this.grouperMessageCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageCustomProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageCustomProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageCustomProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageCustomProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageCustomProperties.GroupImage = null; this.grouperMessageCustomProperties.GroupTitle = "Message Custom Properties"; this.grouperMessageCustomProperties.Location = new System.Drawing.Point(0, 0); @@ -1190,7 +1190,7 @@ private void InitializeComponent() this.messageCustomPropertyGrid.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.messageCustomPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.messageCustomPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.messageCustomPropertyGrid.HelpVisible = false; this.messageCustomPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.messageCustomPropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -1201,7 +1201,7 @@ private void InitializeComponent() // // tabPageDeadletter // - this.tabPageDeadletter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageDeadletter.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageDeadletter.Controls.Add(this.deadletterSplitContainer); this.tabPageDeadletter.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageDeadletter.Location = new System.Drawing.Point(4, 24); @@ -1253,18 +1253,18 @@ private void InitializeComponent() // // grouperDeadletterList // - this.grouperDeadletterList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDeadletterList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDeadletterList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDeadletterList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDeadletterList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDeadletterList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDeadletterList.BorderThickness = 1F; this.grouperDeadletterList.Controls.Add(this.pictFindDeadletter); this.grouperDeadletterList.Controls.Add(this.pictFindDeadletterByDate); this.grouperDeadletterList.Controls.Add(this.deadletterDataGridView); - this.grouperDeadletterList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDeadletterList.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperDeadletterList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDeadletterList.ForeColor = System.Drawing.Color.White; + this.grouperDeadletterList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDeadletterList.GroupImage = null; this.grouperDeadletterList.GroupTitle = "Message List"; this.grouperDeadletterList.Location = new System.Drawing.Point(0, 0); @@ -1311,7 +1311,7 @@ private void InitializeComponent() this.deadletterDataGridView.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.deadletterDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.deadletterDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.deadletterDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.deadletterDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.deadletterDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1339,16 +1339,16 @@ private void InitializeComponent() // // grouperDeadletterText // - this.grouperDeadletterText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDeadletterText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDeadletterText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDeadletterText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDeadletterText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDeadletterText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDeadletterText.BorderThickness = 1F; this.grouperDeadletterText.Controls.Add(this.txtDeadletterText); - this.grouperDeadletterText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDeadletterText.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperDeadletterText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDeadletterText.ForeColor = System.Drawing.Color.White; + this.grouperDeadletterText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDeadletterText.GroupImage = null; this.grouperDeadletterText.GroupTitle = "Message Text"; this.grouperDeadletterText.Location = new System.Drawing.Point(0, 0); @@ -1418,16 +1418,16 @@ private void InitializeComponent() // // grouperDeadletterSystemProperties // - this.grouperDeadletterSystemProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDeadletterSystemProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDeadletterSystemProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDeadletterSystemProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDeadletterSystemProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDeadletterSystemProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterSystemProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDeadletterSystemProperties.BorderThickness = 1F; this.grouperDeadletterSystemProperties.Controls.Add(this.deadletterPropertyGrid); - this.grouperDeadletterSystemProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterSystemProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDeadletterSystemProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperDeadletterSystemProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDeadletterSystemProperties.ForeColor = System.Drawing.Color.White; + this.grouperDeadletterSystemProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDeadletterSystemProperties.GroupImage = null; this.grouperDeadletterSystemProperties.GroupTitle = "Message System Properties"; this.grouperDeadletterSystemProperties.Location = new System.Drawing.Point(0, 0); @@ -1447,7 +1447,7 @@ private void InitializeComponent() this.deadletterPropertyGrid.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.deadletterPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.deadletterPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.deadletterPropertyGrid.HelpVisible = false; this.deadletterPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.deadletterPropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -1458,16 +1458,16 @@ private void InitializeComponent() // // grouperDeadletterCustomProperties // - this.grouperDeadletterCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDeadletterCustomProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDeadletterCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDeadletterCustomProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDeadletterCustomProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDeadletterCustomProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterCustomProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDeadletterCustomProperties.BorderThickness = 1F; this.grouperDeadletterCustomProperties.Controls.Add(this.deadletterCustomPropertyGrid); - this.grouperDeadletterCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDeadletterCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDeadletterCustomProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperDeadletterCustomProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDeadletterCustomProperties.ForeColor = System.Drawing.Color.White; + this.grouperDeadletterCustomProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDeadletterCustomProperties.GroupImage = null; this.grouperDeadletterCustomProperties.GroupTitle = "Message Custom Properties"; this.grouperDeadletterCustomProperties.Location = new System.Drawing.Point(0, 0); @@ -1487,7 +1487,7 @@ private void InitializeComponent() this.deadletterCustomPropertyGrid.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.deadletterCustomPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.deadletterCustomPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.deadletterCustomPropertyGrid.HelpVisible = false; this.deadletterCustomPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.deadletterCustomPropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -1498,7 +1498,7 @@ private void InitializeComponent() // // tabPageSessions // - this.tabPageSessions.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageSessions.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageSessions.Controls.Add(this.sessionsSplitContainer); this.tabPageSessions.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageSessions.Location = new System.Drawing.Point(4, 24); @@ -1550,16 +1550,16 @@ private void InitializeComponent() // // grouperSessionList // - this.grouperSessionList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSessionList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSessionList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSessionList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSessionList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSessionList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSessionList.BorderThickness = 1F; this.grouperSessionList.Controls.Add(this.sessionsDataGridView); - this.grouperSessionList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSessionList.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperSessionList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSessionList.ForeColor = System.Drawing.Color.White; + this.grouperSessionList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSessionList.GroupImage = null; this.grouperSessionList.GroupTitle = "Session List"; this.grouperSessionList.Location = new System.Drawing.Point(0, 0); @@ -1582,7 +1582,7 @@ private void InitializeComponent() this.sessionsDataGridView.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.sessionsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.sessionsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.sessionsDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.sessionsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.sessionsDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -1608,16 +1608,16 @@ private void InitializeComponent() // // grouperSessionState // - this.grouperSessionState.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSessionState.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSessionState.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSessionState.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSessionState.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSessionState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionState.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSessionState.BorderThickness = 1F; this.grouperSessionState.Controls.Add(this.txtSessionState); - this.grouperSessionState.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionState.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSessionState.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperSessionState.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSessionState.ForeColor = System.Drawing.Color.White; + this.grouperSessionState.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSessionState.GroupImage = null; this.grouperSessionState.GroupTitle = "Session State"; this.grouperSessionState.Location = new System.Drawing.Point(0, 0); @@ -1646,16 +1646,16 @@ private void InitializeComponent() // // grouperSessionProperties // - this.grouperSessionProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSessionProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSessionProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSessionProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSessionProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSessionProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSessionProperties.BorderThickness = 1F; this.grouperSessionProperties.Controls.Add(this.sessionPropertyGrid); - this.grouperSessionProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSessionProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSessionProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperSessionProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSessionProperties.ForeColor = System.Drawing.Color.White; + this.grouperSessionProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSessionProperties.GroupImage = null; this.grouperSessionProperties.GroupTitle = "Session System Properties"; this.grouperSessionProperties.Location = new System.Drawing.Point(0, 0); @@ -1675,7 +1675,7 @@ private void InitializeComponent() this.sessionPropertyGrid.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.sessionPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.sessionPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.sessionPropertyGrid.HelpVisible = false; this.sessionPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.sessionPropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -1811,10 +1811,10 @@ private void InitializeComponent() // btnPurgeMessages // this.btnPurgeMessages.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnPurgeMessages.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnPurgeMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnPurgeMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnPurgeMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnPurgeMessages.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnPurgeMessages.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnPurgeMessages.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnPurgeMessages.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnPurgeMessages.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnPurgeMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.btnPurgeMessages.Location = new System.Drawing.Point(282, 504); @@ -1831,7 +1831,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.btnPurgeMessages); this.Controls.Add(this.btnPurgeDeadletterQueueMessages); this.Controls.Add(this.mainTabControl); @@ -2031,3 +2031,4 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem resubmitMessageToolStripMenuItem; } } + diff --git a/src/ServiceBusExplorer/Controls/HandleSubscriptionControl.cs b/src/ServiceBusExplorer/Controls/HandleSubscriptionControl.cs index 17c30194..000e6281 100644 --- a/src/ServiceBusExplorer/Controls/HandleSubscriptionControl.cs +++ b/src/ServiceBusExplorer/Controls/HandleSubscriptionControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -207,10 +207,9 @@ public HandleSubscriptionControl(WriteToLogDelegate writeToLog, ServiceBusHelper this.duplicateExistingSubscription = duplicateExistingSubscription; InitializeComponent(); - btnCopyMessageBody = AddCopyBodyButton(grouperMessageText, txtMessageText); btnCopyDeadletterBody = AddCopyBodyButton(grouperDeadletterText, txtDeadletterText); - + ThemeManager.Apply(this); InitializeControls(); } #endregion @@ -2998,3 +2997,4 @@ void RemoveDeadletterDataGridRows(IEnumerable sequenceNumbersToRemove) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/HandleTopicControl.Designer.cs b/src/ServiceBusExplorer/Controls/HandleTopicControl.Designer.cs index 84e5bbd1..e4dcd746 100644 --- a/src/ServiceBusExplorer/Controls/HandleTopicControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HandleTopicControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class HandleTopicControl { @@ -73,7 +73,7 @@ private void InitializeComponent() // // tabPageDescription // - this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageDescription.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageDescription.Controls.Add(this.grouperAutoDeleteOnIdle); this.tabPageDescription.Controls.Add(this.groupergrouperDefaultMessageTimeToLive); this.tabPageDescription.Controls.Add(this.grouperTopicSettings); @@ -90,15 +90,15 @@ private void InitializeComponent() // // grouperAutoDeleteOnIdle // - this.grouperAutoDeleteOnIdle.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAutoDeleteOnIdle.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAutoDeleteOnIdle.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAutoDeleteOnIdle.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAutoDeleteOnIdle.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAutoDeleteOnIdle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAutoDeleteOnIdle.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAutoDeleteOnIdle.BorderThickness = 1F; this.grouperAutoDeleteOnIdle.Controls.Add(this.tsAutoDeleteOnIdle); - this.grouperAutoDeleteOnIdle.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAutoDeleteOnIdle.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAutoDeleteOnIdle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAutoDeleteOnIdle.ForeColor = System.Drawing.Color.White; + this.grouperAutoDeleteOnIdle.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAutoDeleteOnIdle.GroupImage = null; this.grouperAutoDeleteOnIdle.GroupTitle = "Auto Delete On Idle"; this.grouperAutoDeleteOnIdle.Location = new System.Drawing.Point(16, 96); @@ -122,15 +122,15 @@ private void InitializeComponent() // // groupergrouperDefaultMessageTimeToLive // - this.groupergrouperDefaultMessageTimeToLive.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.groupergrouperDefaultMessageTimeToLive.BackgroundGradientColor = System.Drawing.Color.White; + this.groupergrouperDefaultMessageTimeToLive.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.groupergrouperDefaultMessageTimeToLive.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.groupergrouperDefaultMessageTimeToLive.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.groupergrouperDefaultMessageTimeToLive.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.groupergrouperDefaultMessageTimeToLive.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.groupergrouperDefaultMessageTimeToLive.BorderThickness = 1F; this.groupergrouperDefaultMessageTimeToLive.Controls.Add(this.tsDefaultMessageTimeToLive); - this.groupergrouperDefaultMessageTimeToLive.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.groupergrouperDefaultMessageTimeToLive.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.groupergrouperDefaultMessageTimeToLive.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.groupergrouperDefaultMessageTimeToLive.ForeColor = System.Drawing.Color.White; + this.groupergrouperDefaultMessageTimeToLive.ForeColor = System.Drawing.SystemColors.ControlText; this.groupergrouperDefaultMessageTimeToLive.GroupImage = null; this.groupergrouperDefaultMessageTimeToLive.GroupTitle = "Default Message Time To Live"; this.groupergrouperDefaultMessageTimeToLive.Location = new System.Drawing.Point(328, 96); @@ -156,15 +156,15 @@ private void InitializeComponent() // this.grouperTopicSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperTopicSettings.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTopicSettings.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTopicSettings.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTopicSettings.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTopicSettings.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTopicSettings.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTopicSettings.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTopicSettings.BorderThickness = 1F; this.grouperTopicSettings.Controls.Add(this.checkedListBox); - this.grouperTopicSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTopicSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTopicSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTopicSettings.ForeColor = System.Drawing.Color.White; + this.grouperTopicSettings.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTopicSettings.GroupImage = null; this.grouperTopicSettings.GroupTitle = "Topic Settings"; this.grouperTopicSettings.Location = new System.Drawing.Point(328, 272); @@ -196,16 +196,16 @@ private void InitializeComponent() // // grouperPath // - this.grouperPath.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperPath.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperPath.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperPath.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperPath.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperPath.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPath.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperPath.BorderThickness = 1F; this.grouperPath.Controls.Add(this.lblRelativeURI); this.grouperPath.Controls.Add(this.txtPath); - this.grouperPath.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPath.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperPath.ForeColor = System.Drawing.Color.White; + this.grouperPath.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperPath.GroupImage = null; this.grouperPath.GroupTitle = "Path"; this.grouperPath.Location = new System.Drawing.Point(16, 8); @@ -233,7 +233,7 @@ private void InitializeComponent() // this.txtPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtPath.BackColor = System.Drawing.SystemColors.Window; + this.txtPath.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtPath.Location = new System.Drawing.Point(16, 44); this.txtPath.Name = "txtPath"; @@ -242,15 +242,15 @@ private void InitializeComponent() // // grouperDuplicateDetectionHistoryTimeWindow // - this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperDuplicateDetectionHistoryTimeWindow.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperDuplicateDetectionHistoryTimeWindow.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDuplicateDetectionHistoryTimeWindow.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperDuplicateDetectionHistoryTimeWindow.BorderThickness = 1F; this.grouperDuplicateDetectionHistoryTimeWindow.Controls.Add(this.tsDuplicateDetectionHistoryTimeWindow); - this.grouperDuplicateDetectionHistoryTimeWindow.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperDuplicateDetectionHistoryTimeWindow.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperDuplicateDetectionHistoryTimeWindow.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperDuplicateDetectionHistoryTimeWindow.ForeColor = System.Drawing.Color.White; + this.grouperDuplicateDetectionHistoryTimeWindow.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperDuplicateDetectionHistoryTimeWindow.GroupImage = null; this.grouperDuplicateDetectionHistoryTimeWindow.GroupTitle = "Duplicate Detection History Time Window"; this.grouperDuplicateDetectionHistoryTimeWindow.Location = new System.Drawing.Point(328, 184); @@ -276,10 +276,10 @@ private void InitializeComponent() // this.grouperTopicProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperTopicProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTopicProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTopicProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTopicProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTopicProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTopicProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTopicProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTopicProperties.BorderThickness = 1F; this.grouperTopicProperties.Controls.Add(this.lblMaxTopicSizeInGB); this.grouperTopicProperties.Controls.Add(this.trackBarMaxTopicSize); @@ -287,9 +287,9 @@ private void InitializeComponent() this.grouperTopicProperties.Controls.Add(this.lblUserMetadata); this.grouperTopicProperties.Controls.Add(this.btnOpenDescriptionForm); this.grouperTopicProperties.Controls.Add(this.lblMaxTopicSize); - this.grouperTopicProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTopicProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTopicProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTopicProperties.ForeColor = System.Drawing.Color.White; + this.grouperTopicProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTopicProperties.GroupImage = null; this.grouperTopicProperties.GroupTitle = "Topic Properties"; this.grouperTopicProperties.Location = new System.Drawing.Point(16, 184); @@ -316,9 +316,9 @@ private void InitializeComponent() // trackBarMaxTopicSize // this.trackBarMaxTopicSize.BackColor = System.Drawing.Color.Transparent; - this.trackBarMaxTopicSize.BorderColor = System.Drawing.Color.Black; + this.trackBarMaxTopicSize.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.trackBarMaxTopicSize.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.trackBarMaxTopicSize.ForeColor = System.Drawing.Color.Black; + this.trackBarMaxTopicSize.ForeColor = System.Drawing.SystemColors.ControlText; this.trackBarMaxTopicSize.IndentHeight = 6; this.trackBarMaxTopicSize.LargeChange = 1; this.trackBarMaxTopicSize.Location = new System.Drawing.Point(8, 40); @@ -343,7 +343,7 @@ private void InitializeComponent() this.txtUserMetadata.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.txtUserMetadata.BackColor = System.Drawing.SystemColors.Window; + this.txtUserMetadata.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtUserMetadata.Location = new System.Drawing.Point(16, 88); this.txtUserMetadata.MaxLength = 0; this.txtUserMetadata.Multiline = true; @@ -364,10 +364,10 @@ private void InitializeComponent() // btnOpenDescriptionForm // this.btnOpenDescriptionForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenDescriptionForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenDescriptionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenDescriptionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenDescriptionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenDescriptionForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenDescriptionForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenDescriptionForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenDescriptionForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenDescriptionForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenDescriptionForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenDescriptionForm.Location = new System.Drawing.Point(256, 88); @@ -396,15 +396,15 @@ private void InitializeComponent() this.grouperTopicInformation.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.grouperTopicInformation.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTopicInformation.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTopicInformation.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTopicInformation.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTopicInformation.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTopicInformation.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTopicInformation.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTopicInformation.BorderThickness = 1F; this.grouperTopicInformation.Controls.Add(this.propertyListView); - this.grouperTopicInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTopicInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTopicInformation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTopicInformation.ForeColor = System.Drawing.Color.White; + this.grouperTopicInformation.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTopicInformation.GroupImage = null; this.grouperTopicInformation.GroupTitle = "Topic Information"; this.grouperTopicInformation.Location = new System.Drawing.Point(640, 8); @@ -467,7 +467,7 @@ private void InitializeComponent() // // tabPageAuthorization // - this.tabPageAuthorization.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageAuthorization.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageAuthorization.Controls.Add(this.grouperAuthorizationRuleList); this.tabPageAuthorization.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageAuthorization.Location = new System.Drawing.Point(4, 24); @@ -481,15 +481,15 @@ private void InitializeComponent() this.grouperAuthorizationRuleList.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.grouperAuthorizationRuleList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperAuthorizationRuleList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperAuthorizationRuleList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperAuthorizationRuleList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperAuthorizationRuleList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperAuthorizationRuleList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAuthorizationRuleList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperAuthorizationRuleList.BorderThickness = 1F; this.grouperAuthorizationRuleList.Controls.Add(this.authorizationRulesDataGridView); - this.grouperAuthorizationRuleList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperAuthorizationRuleList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperAuthorizationRuleList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperAuthorizationRuleList.ForeColor = System.Drawing.Color.White; + this.grouperAuthorizationRuleList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperAuthorizationRuleList.GroupImage = null; this.grouperAuthorizationRuleList.GroupTitle = "Authorization Rule List"; this.grouperAuthorizationRuleList.Location = new System.Drawing.Point(16, 8); @@ -511,7 +511,7 @@ private void InitializeComponent() this.authorizationRulesDataGridView.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.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.authorizationRulesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.authorizationRulesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.authorizationRulesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.authorizationRulesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -535,10 +535,10 @@ private void InitializeComponent() // btnRefresh // this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRefresh.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRefresh.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRefresh.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRefresh.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRefresh.ForeColor = System.Drawing.SystemColors.ControlText; this.btnRefresh.Location = new System.Drawing.Point(680, 504); @@ -554,10 +554,10 @@ private void InitializeComponent() // btnChangeStatus // this.btnChangeStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnChangeStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnChangeStatus.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnChangeStatus.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnChangeStatus.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnChangeStatus.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnChangeStatus.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnChangeStatus.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnChangeStatus.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnChangeStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnChangeStatus.ForeColor = System.Drawing.SystemColors.ControlText; this.btnChangeStatus.Location = new System.Drawing.Point(760, 504); @@ -573,10 +573,10 @@ private void InitializeComponent() // btnCancelUpdate // this.btnCancelUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancelUpdate.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancelUpdate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancelUpdate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancelUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancelUpdate.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancelUpdate.Location = new System.Drawing.Point(920, 504); @@ -592,10 +592,10 @@ private void InitializeComponent() // btnCreateDelete // this.btnCreateDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCreateDelete.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCreateDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCreateDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCreateDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCreateDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCreateDelete.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCreateDelete.Location = new System.Drawing.Point(840, 504); @@ -612,7 +612,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.mainTabControl); this.Controls.Add(this.btnRefresh); this.Controls.Add(this.btnChangeStatus); @@ -683,3 +683,4 @@ private void InitializeComponent() private TimeSpanControl tsDuplicateDetectionHistoryTimeWindow; } } + diff --git a/src/ServiceBusExplorer/Controls/HandleTopicControl.cs b/src/ServiceBusExplorer/Controls/HandleTopicControl.cs index 9ebc8052..91ece2ee 100644 --- a/src/ServiceBusExplorer/Controls/HandleTopicControl.cs +++ b/src/ServiceBusExplorer/Controls/HandleTopicControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -163,6 +163,7 @@ public HandleTopicControl(WriteToLogDelegate writeToLog, ServiceBusHelper servic this.path = path; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(initialCall: true); } #endregion @@ -276,7 +277,8 @@ private void InitializeControls(bool initialCall) // Initialize textboxes txtPath.ReadOnly = true; - txtPath.BackColor = SystemColors.Window; + txtPath.BackColor = ThemeManager.IsDark ? ThemeManager.SurfaceLight : SystemColors.Window; + txtPath.ForeColor = ThemeManager.IsDark ? ThemeManager.Foreground : SystemColors.WindowText; txtPath.GotFocus += textBox_GotFocus; trackBarMaxTopicSize.Enabled = false; @@ -1187,3 +1189,4 @@ protected override void Dispose(bool disposing) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/HeaderPanel.Designer.cs b/src/ServiceBusExplorer/Controls/HeaderPanel.Designer.cs index 52c8f801..f3a29532 100644 --- a/src/ServiceBusExplorer/Controls/HeaderPanel.Designer.cs +++ b/src/ServiceBusExplorer/Controls/HeaderPanel.Designer.cs @@ -32,7 +32,7 @@ private void InitializeComponent() // // OutlookPanelEx // - this.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Margin = new System.Windows.Forms.Padding(5, 4, 5, 4); this.Name = "OutlookPanelEx"; this.Size = new System.Drawing.Size(224, 172); @@ -44,3 +44,4 @@ private void InitializeComponent() #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/ListenerControl.Designer.cs b/src/ServiceBusExplorer/Controls/ListenerControl.Designer.cs index 8b2c12ab..683e8d56 100644 --- a/src/ServiceBusExplorer/Controls/ListenerControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/ListenerControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class ListenerControl { @@ -124,10 +124,10 @@ private void InitializeComponent() // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnClose.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClose.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClose.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClose.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClose.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClose.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClose.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClose.Location = new System.Drawing.Point(920, 504); @@ -143,10 +143,10 @@ private void InitializeComponent() // btnStart // this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnStart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnStart.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnStart.ForeColor = System.Drawing.SystemColors.ControlText; this.btnStart.Location = new System.Drawing.Point(840, 504); @@ -178,7 +178,7 @@ private void InitializeComponent() // // tabPageListener // - this.tabPageListener.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageListener.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageListener.Controls.Add(this.grouperStatistics); this.tabPageListener.Controls.Add(this.chart); this.tabPageListener.Controls.Add(this.grouperEntityInformation); @@ -193,10 +193,10 @@ private void InitializeComponent() // grouperStatistics // this.grouperStatistics.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.grouperStatistics.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperStatistics.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperStatistics.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperStatistics.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperStatistics.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperStatistics.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperStatistics.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperStatistics.BorderThickness = 1F; this.grouperStatistics.Controls.Add(this.cboMessageSizePerSecond); this.grouperStatistics.Controls.Add(this.cboAverageDuration); @@ -209,9 +209,9 @@ private void InitializeComponent() this.grouperStatistics.Controls.Add(this.lblMessagesTotal); this.grouperStatistics.Controls.Add(this.txtMessagesPerSecond); this.grouperStatistics.Controls.Add(this.lblMessagesPerSecond); - this.grouperStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperStatistics.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperStatistics.ForeColor = System.Drawing.Color.White; + this.grouperStatistics.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperStatistics.GroupImage = null; this.grouperStatistics.GroupTitle = "Statistics"; this.grouperStatistics.Location = new System.Drawing.Point(640, 8); @@ -433,15 +433,15 @@ private void InitializeComponent() // this.grouperEntityInformation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperEntityInformation.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperEntityInformation.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperEntityInformation.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperEntityInformation.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperEntityInformation.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperEntityInformation.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEntityInformation.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperEntityInformation.BorderThickness = 1F; this.grouperEntityInformation.Controls.Add(this.propertyListView); - this.grouperEntityInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEntityInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperEntityInformation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperEntityInformation.ForeColor = System.Drawing.Color.White; + this.grouperEntityInformation.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperEntityInformation.GroupImage = null; this.grouperEntityInformation.GroupTitle = "Queue Information"; this.grouperEntityInformation.Location = new System.Drawing.Point(640, 136); @@ -490,10 +490,10 @@ private void InitializeComponent() // this.grouperOptions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperOptions.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperOptions.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperOptions.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperOptions.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperOptions.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperOptions.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperOptions.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperOptions.BorderThickness = 1F; this.grouperOptions.Controls.Add(this.txtMessageWaitTimeout); this.grouperOptions.Controls.Add(this.lblMessageWaitTimeout); @@ -512,9 +512,9 @@ private void InitializeComponent() this.grouperOptions.Controls.Add(this.lblRefreshInformation); this.grouperOptions.Controls.Add(this.txtMaxConcurrentCalls); this.grouperOptions.Controls.Add(this.lblMaxConcurrentCalls); - this.grouperOptions.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperOptions.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperOptions.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperOptions.ForeColor = System.Drawing.Color.White; + this.grouperOptions.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperOptions.GroupImage = null; this.grouperOptions.GroupTitle = "Options"; this.grouperOptions.Location = new System.Drawing.Point(16, 328); @@ -737,7 +737,7 @@ private void InitializeComponent() // // tabPageMessages // - this.tabPageMessages.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageMessages.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageMessages.Controls.Add(this.messagesSplitContainer); this.tabPageMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageMessages.Location = new System.Drawing.Point(4, 22); @@ -789,17 +789,17 @@ private void InitializeComponent() // // grouperMessageList // - this.grouperMessageList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageList.BorderThickness = 1F; this.grouperMessageList.Controls.Add(this.pictFindMessages); this.grouperMessageList.Controls.Add(this.messagesDataGridView); - this.grouperMessageList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageList.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageList.ForeColor = System.Drawing.Color.White; + this.grouperMessageList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageList.GroupImage = null; this.grouperMessageList.GroupTitle = "Message List"; this.grouperMessageList.Location = new System.Drawing.Point(0, 0); @@ -834,7 +834,7 @@ private void InitializeComponent() this.messagesDataGridView.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.messagesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.messagesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.messagesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.messagesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.messagesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -861,16 +861,16 @@ private void InitializeComponent() // // grouperMessageText // - this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageText.BorderThickness = 1F; this.grouperMessageText.Controls.Add(this.txtMessageText); - this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageText.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageText.ForeColor = System.Drawing.Color.White; + this.grouperMessageText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageText.GroupImage = null; this.grouperMessageText.GroupTitle = "Message Text"; this.grouperMessageText.Location = new System.Drawing.Point(0, 0); @@ -937,16 +937,16 @@ private void InitializeComponent() // // grouperMessageSystemProperties // - this.grouperMessageSystemProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageSystemProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageSystemProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageSystemProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageSystemProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageSystemProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageSystemProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageSystemProperties.BorderThickness = 1F; this.grouperMessageSystemProperties.Controls.Add(this.messagePropertyGrid); - this.grouperMessageSystemProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageSystemProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageSystemProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageSystemProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageSystemProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageSystemProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageSystemProperties.GroupImage = null; this.grouperMessageSystemProperties.GroupTitle = "Message System Properties"; this.grouperMessageSystemProperties.Location = new System.Drawing.Point(0, 0); @@ -966,7 +966,7 @@ private void InitializeComponent() this.messagePropertyGrid.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.messagePropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.messagePropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.messagePropertyGrid.HelpVisible = false; this.messagePropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.messagePropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -977,16 +977,16 @@ private void InitializeComponent() // // grouperMessageCustomProperties // - this.grouperMessageCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageCustomProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageCustomProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageCustomProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageCustomProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageCustomProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageCustomProperties.BorderThickness = 1F; this.grouperMessageCustomProperties.Controls.Add(this.messageCustomPropertyGrid); - this.grouperMessageCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageCustomProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageCustomProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageCustomProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageCustomProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageCustomProperties.GroupImage = null; this.grouperMessageCustomProperties.GroupTitle = "Message Custom Properties"; this.grouperMessageCustomProperties.Location = new System.Drawing.Point(0, 0); @@ -1006,7 +1006,7 @@ private void InitializeComponent() this.messageCustomPropertyGrid.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.messageCustomPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.messageCustomPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.messageCustomPropertyGrid.HelpVisible = false; this.messageCustomPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.messageCustomPropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -1071,10 +1071,10 @@ private void InitializeComponent() // btnClear // this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnClear.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClear.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClear.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClear.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClear.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClear.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClear.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClear.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClear.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClear.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClear.Location = new System.Drawing.Point(760, 504); @@ -1129,7 +1129,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.cboReceiverInspector); this.Controls.Add(this.lblReceiverInspector); this.Controls.Add(this.btnClear); @@ -1247,3 +1247,4 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem resubmitMessageToolStripMenuItem; } } + diff --git a/src/ServiceBusExplorer/Controls/ListenerControl.cs b/src/ServiceBusExplorer/Controls/ListenerControl.cs index 0d573b9a..67de8d59 100644 --- a/src/ServiceBusExplorer/Controls/ListenerControl.cs +++ b/src/ServiceBusExplorer/Controls/ListenerControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -195,6 +195,7 @@ public ListenerControl(WriteToLogDelegate writeToLog, var encoderFactory = element.CreateMessageEncoderFactory(); encoder = encoderFactory.Encoder; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); Disposed += ListenerControl_Disposed; if (entityDescription is SubscriptionDescription) @@ -1800,3 +1801,4 @@ private string CreateFileName() #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/PartitionListenerControl.Designer.cs b/src/ServiceBusExplorer/Controls/PartitionListenerControl.Designer.cs index cd1a4bb1..634669b2 100644 --- a/src/ServiceBusExplorer/Controls/PartitionListenerControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/PartitionListenerControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class PartitionListenerControl { @@ -122,10 +122,10 @@ private void InitializeComponent() // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnClose.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClose.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClose.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClose.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClose.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClose.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClose.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClose.Location = new System.Drawing.Point(920, 504); @@ -141,10 +141,10 @@ private void InitializeComponent() // btnStart // this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnStart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnStart.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnStart.ForeColor = System.Drawing.SystemColors.ControlText; this.btnStart.Location = new System.Drawing.Point(840, 504); @@ -176,7 +176,7 @@ private void InitializeComponent() // // tabPageListener // - this.tabPageListener.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageListener.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageListener.Controls.Add(this.grouperStatistics); this.tabPageListener.Controls.Add(this.chart); this.tabPageListener.Controls.Add(this.grouperPartitionInformation); @@ -191,10 +191,10 @@ private void InitializeComponent() // grouperStatistics // this.grouperStatistics.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.grouperStatistics.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperStatistics.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperStatistics.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperStatistics.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperStatistics.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperStatistics.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperStatistics.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperStatistics.BorderThickness = 1F; this.grouperStatistics.Controls.Add(this.cboMessageSizePerSecond); this.grouperStatistics.Controls.Add(this.cboAverageDuration); @@ -207,9 +207,9 @@ private void InitializeComponent() this.grouperStatistics.Controls.Add(this.lblEventDataTotal); this.grouperStatistics.Controls.Add(this.txtEventDataPerSecond); this.grouperStatistics.Controls.Add(this.lblEventDataPerSecond); - this.grouperStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperStatistics.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperStatistics.ForeColor = System.Drawing.Color.White; + this.grouperStatistics.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperStatistics.GroupImage = null; this.grouperStatistics.GroupTitle = "Statistics"; this.grouperStatistics.Location = new System.Drawing.Point(640, 8); @@ -428,18 +428,18 @@ private void InitializeComponent() // this.grouperPartitionInformation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperPartitionInformation.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperPartitionInformation.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperPartitionInformation.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperPartitionInformation.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperPartitionInformation.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperPartitionInformation.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPartitionInformation.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperPartitionInformation.BorderThickness = 1F; this.grouperPartitionInformation.Controls.Add(this.lblPartitionInformation); this.grouperPartitionInformation.Controls.Add(this.lblPartition); this.grouperPartitionInformation.Controls.Add(this.cboPartition); this.grouperPartitionInformation.Controls.Add(this.propertyListView); - this.grouperPartitionInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPartitionInformation.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperPartitionInformation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperPartitionInformation.ForeColor = System.Drawing.Color.White; + this.grouperPartitionInformation.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperPartitionInformation.GroupImage = null; this.grouperPartitionInformation.GroupTitle = "Partition Information"; this.grouperPartitionInformation.Location = new System.Drawing.Point(640, 136); @@ -522,10 +522,10 @@ private void InitializeComponent() // this.grouperOptions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperOptions.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperOptions.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperOptions.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperOptions.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperOptions.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperOptions.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperOptions.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperOptions.BorderThickness = 1F; this.grouperOptions.Controls.Add(this.lblStartingDateTimeUtc); this.grouperOptions.Controls.Add(this.pickerStartingDateTimeUtc); @@ -541,9 +541,9 @@ private void InitializeComponent() this.grouperOptions.Controls.Add(this.checkBoxVerbose); this.grouperOptions.Controls.Add(this.txtRefreshInformation); this.grouperOptions.Controls.Add(this.lblRefreshInformation); - this.grouperOptions.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperOptions.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperOptions.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperOptions.ForeColor = System.Drawing.Color.White; + this.grouperOptions.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperOptions.GroupImage = null; this.grouperOptions.GroupTitle = "Options"; this.grouperOptions.Location = new System.Drawing.Point(16, 328); @@ -725,7 +725,7 @@ private void InitializeComponent() // // tabPageEventData // - this.tabPageEventData.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageEventData.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageEventData.Controls.Add(this.eventDataSplitContainer); this.tabPageEventData.ForeColor = System.Drawing.SystemColors.ControlText; this.tabPageEventData.Location = new System.Drawing.Point(4, 22); @@ -777,16 +777,16 @@ private void InitializeComponent() // // grouperMessageList // - this.grouperMessageList.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageList.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageList.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageList.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageList.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageList.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageList.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageList.BorderThickness = 1F; this.grouperMessageList.Controls.Add(this.eventDataDataGridView); - this.grouperMessageList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageList.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageList.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageList.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageList.ForeColor = System.Drawing.Color.White; + this.grouperMessageList.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageList.GroupImage = null; this.grouperMessageList.GroupTitle = "Events List"; this.grouperMessageList.Location = new System.Drawing.Point(0, 0); @@ -809,7 +809,7 @@ private void InitializeComponent() this.eventDataDataGridView.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.eventDataDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.eventDataDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.eventDataDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.eventDataDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.eventDataDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -836,16 +836,16 @@ private void InitializeComponent() // // grouperMessageText // - this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageText.BorderThickness = 1F; this.grouperMessageText.Controls.Add(this.txtMessageText); - this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageText.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageText.ForeColor = System.Drawing.Color.White; + this.grouperMessageText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageText.GroupImage = null; this.grouperMessageText.GroupTitle = "Event Text"; this.grouperMessageText.Location = new System.Drawing.Point(0, 0); @@ -915,16 +915,16 @@ private void InitializeComponent() // // grouperMessageProperties // - this.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageProperties.BorderThickness = 1F; this.grouperMessageProperties.Controls.Add(this.eventDataPropertyGrid); - this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageProperties.GroupImage = null; this.grouperMessageProperties.GroupTitle = "Event System Properties"; this.grouperMessageProperties.Location = new System.Drawing.Point(0, 0); @@ -943,7 +943,7 @@ private void InitializeComponent() this.eventDataPropertyGrid.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.eventDataPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.eventDataPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.eventDataPropertyGrid.HelpVisible = false; this.eventDataPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.eventDataPropertyGrid.Location = new System.Drawing.Point(16, 32); @@ -954,16 +954,16 @@ private void InitializeComponent() // // grouperEventDataCustomProperties // - this.grouperEventDataCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperEventDataCustomProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperEventDataCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperEventDataCustomProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperEventDataCustomProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperEventDataCustomProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEventDataCustomProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperEventDataCustomProperties.BorderThickness = 1F; this.grouperEventDataCustomProperties.Controls.Add(this.eventDataPropertyListView); - this.grouperEventDataCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEventDataCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperEventDataCustomProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperEventDataCustomProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperEventDataCustomProperties.ForeColor = System.Drawing.Color.White; + this.grouperEventDataCustomProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperEventDataCustomProperties.GroupImage = null; this.grouperEventDataCustomProperties.GroupTitle = "Event Custom Properties"; this.grouperEventDataCustomProperties.Location = new System.Drawing.Point(0, 0); @@ -1047,10 +1047,10 @@ private void InitializeComponent() // btnClear // this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnClear.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClear.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClear.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClear.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClear.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClear.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClear.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClear.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClear.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClear.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClear.Location = new System.Drawing.Point(760, 504); @@ -1105,7 +1105,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.cboReceiverInspector); this.Controls.Add(this.lblReceiverInspector); this.Controls.Add(this.btnClear); @@ -1222,3 +1222,4 @@ private void InitializeComponent() private System.Windows.Forms.ColumnHeader columnHeader2; } } + diff --git a/src/ServiceBusExplorer/Controls/PartitionListenerControl.cs b/src/ServiceBusExplorer/Controls/PartitionListenerControl.cs index b9eee34e..5a84dba7 100644 --- a/src/ServiceBusExplorer/Controls/PartitionListenerControl.cs +++ b/src/ServiceBusExplorer/Controls/PartitionListenerControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -191,6 +191,7 @@ public PartitionListenerControl(WriteToLogDelegate writeToLog, } partitionCount = partitionRuntumeInformationList.Count; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); Disposed += ListenerControl_Disposed; } @@ -222,6 +223,7 @@ public PartitionListenerControl(WriteToLogDelegate writeToLog, } partitionCount = partitionRuntumeInformationList.Count; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); Disposed += ListenerControl_Disposed; } @@ -1602,3 +1604,4 @@ private string CreateFileName() #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/StandardValueEditorUI.cs b/src/ServiceBusExplorer/Controls/StandardValueEditorUI.cs index 01ff8423..5da03a1f 100644 --- a/src/ServiceBusExplorer/Controls/StandardValueEditorUI.cs +++ b/src/ServiceBusExplorer/Controls/StandardValueEditorUI.cs @@ -55,6 +55,7 @@ public TagItem(StandardValueAttribute item) public StandardValueEditorUI() { InitializeComponent(); + ThemeManager.Apply(this); } public void SetData(ITypeDescriptorContext context, IWindowsFormsEditorService editorService, object value) @@ -475,3 +476,4 @@ private bool IsZero(Type enumDataType, object value) } } + diff --git a/src/ServiceBusExplorer/Controls/TestEventHubControl.Designer.cs b/src/ServiceBusExplorer/Controls/TestEventHubControl.Designer.cs index 2eafff9f..ce41a6f2 100644 --- a/src/ServiceBusExplorer/Controls/TestEventHubControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/TestEventHubControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class TestEventHubControl { @@ -137,10 +137,10 @@ private void InitializeComponent() // btnStart // this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnStart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnStart.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnStart.ForeColor = System.Drawing.SystemColors.ControlText; this.btnStart.Location = new System.Drawing.Point(840, 392); @@ -156,10 +156,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancel.Location = new System.Drawing.Point(920, 392); @@ -191,7 +191,7 @@ private void InitializeComponent() // // mainTabMessagePage // - this.mainTabMessagePage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabMessagePage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabMessagePage.Controls.Add(this.splitContainer); this.mainTabMessagePage.ForeColor = System.Drawing.SystemColors.ControlText; this.mainTabMessagePage.Location = new System.Drawing.Point(4, 24); @@ -239,7 +239,7 @@ private void InitializeComponent() // // tabMessagePage // - this.tabMessagePage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabMessagePage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabMessagePage.Controls.Add(this.grouperMessageFormat); this.tabMessagePage.Controls.Add(this.grouperMessageText); this.tabMessagePage.ForeColor = System.Drawing.SystemColors.ControlText; @@ -253,15 +253,15 @@ private void InitializeComponent() // this.grouperMessageFormat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperMessageFormat.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageFormat.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageFormat.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageFormat.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageFormat.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageFormat.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFormat.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageFormat.BorderThickness = 1F; this.grouperMessageFormat.Controls.Add(this.cboMessageFormat); - this.grouperMessageFormat.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFormat.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageFormat.ForeColor = System.Drawing.Color.White; + this.grouperMessageFormat.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageFormat.GroupImage = null; this.grouperMessageFormat.GroupTitle = "Event Format"; this.grouperMessageFormat.Location = new System.Drawing.Point(16, 208); @@ -294,15 +294,15 @@ private void InitializeComponent() this.grouperMessageText.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.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageText.BorderThickness = 1F; this.grouperMessageText.Controls.Add(this.txtMessageText); - this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageText.ForeColor = System.Drawing.Color.White; + this.grouperMessageText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageText.GroupImage = null; this.grouperMessageText.GroupTitle = "Event Text"; this.grouperMessageText.Location = new System.Drawing.Point(16, 8); @@ -353,7 +353,7 @@ private void InitializeComponent() // // tabFilesPage // - this.tabFilesPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabFilesPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabFilesPage.Controls.Add(this.label2); this.tabFilesPage.Controls.Add(this.grouperMessageFiles); this.tabFilesPage.ForeColor = System.Drawing.SystemColors.ControlText; @@ -380,10 +380,10 @@ private void InitializeComponent() this.grouperMessageFiles.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.grouperMessageFiles.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageFiles.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageFiles.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageFiles.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageFiles.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageFiles.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFiles.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageFiles.BorderThickness = 1F; this.grouperMessageFiles.Controls.Add(this.radioButtonBinaryFile); this.grouperMessageFiles.Controls.Add(this.radioButtonJsonTemplate); @@ -391,9 +391,9 @@ private void InitializeComponent() this.grouperMessageFiles.Controls.Add(this.radioButtonTextFile); this.grouperMessageFiles.Controls.Add(this.checkBoxFileName); this.grouperMessageFiles.Controls.Add(this.messageFileListView); - this.grouperMessageFiles.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFiles.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageFiles.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageFiles.ForeColor = System.Drawing.Color.White; + this.grouperMessageFiles.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageFiles.GroupImage = null; this.grouperMessageFiles.GroupTitle = "Message Files"; this.grouperMessageFiles.Location = new System.Drawing.Point(16, 69); @@ -508,7 +508,7 @@ private void InitializeComponent() // // tabGeneratorPage // - this.tabGeneratorPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabGeneratorPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabGeneratorPage.Controls.Add(this.grouperEventDataGenerator); this.tabGeneratorPage.Location = new System.Drawing.Point(4, 24); this.tabGeneratorPage.Name = "tabGeneratorPage"; @@ -521,18 +521,18 @@ private void InitializeComponent() this.grouperEventDataGenerator.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.grouperEventDataGenerator.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperEventDataGenerator.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperEventDataGenerator.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperEventDataGenerator.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperEventDataGenerator.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperEventDataGenerator.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEventDataGenerator.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperEventDataGenerator.BorderThickness = 1F; this.grouperEventDataGenerator.Controls.Add(this.lblRegistration); this.grouperEventDataGenerator.Controls.Add(this.eventDataGeneratorPropertyGrid); this.grouperEventDataGenerator.Controls.Add(this.cboEventDataGeneratorType); this.grouperEventDataGenerator.Controls.Add(this.lblRegistrationType); - this.grouperEventDataGenerator.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEventDataGenerator.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperEventDataGenerator.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperEventDataGenerator.ForeColor = System.Drawing.Color.White; + this.grouperEventDataGenerator.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperEventDataGenerator.GroupImage = null; this.grouperEventDataGenerator.GroupTitle = "Event Data Generator"; this.grouperEventDataGenerator.Location = new System.Drawing.Point(16, 8); @@ -562,7 +562,7 @@ private void InitializeComponent() this.eventDataGeneratorPropertyGrid.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.eventDataGeneratorPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.eventDataGeneratorPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.eventDataGeneratorPropertyGrid.HelpBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.eventDataGeneratorPropertyGrid.HelpVisible = false; this.eventDataGeneratorPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); @@ -599,15 +599,15 @@ private void InitializeComponent() // this.grouperPartitionKey.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperPartitionKey.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperPartitionKey.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperPartitionKey.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperPartitionKey.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperPartitionKey.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperPartitionKey.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPartitionKey.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperPartitionKey.BorderThickness = 1F; this.grouperPartitionKey.Controls.Add(this.txtPartitionKey); - this.grouperPartitionKey.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPartitionKey.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperPartitionKey.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperPartitionKey.ForeColor = System.Drawing.Color.White; + this.grouperPartitionKey.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperPartitionKey.GroupImage = null; this.grouperPartitionKey.GroupTitle = "Partition Key"; this.grouperPartitionKey.Location = new System.Drawing.Point(0, 232); @@ -626,7 +626,7 @@ private void InitializeComponent() // this.txtPartitionKey.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtPartitionKey.BackColor = System.Drawing.SystemColors.Window; + this.txtPartitionKey.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtPartitionKey.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtPartitionKey.Location = new System.Drawing.Point(16, 32); this.txtPartitionKey.Name = "txtPartitionKey"; @@ -638,15 +638,15 @@ private void InitializeComponent() this.grouperMessageProperties.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.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageProperties.BorderThickness = 1F; this.grouperMessageProperties.Controls.Add(this.propertiesDataGridView); - this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageProperties.GroupImage = null; this.grouperMessageProperties.GroupTitle = "Event Properties"; this.grouperMessageProperties.Location = new System.Drawing.Point(0, 32); @@ -666,7 +666,7 @@ private void InitializeComponent() this.propertiesDataGridView.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.propertiesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.propertiesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.propertiesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.propertiesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.propertiesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -682,7 +682,7 @@ private void InitializeComponent() // // mainTabSenderPage // - this.mainTabSenderPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabSenderPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabSenderPage.Controls.Add(this.grouperSender); this.mainTabSenderPage.ForeColor = System.Drawing.SystemColors.ControlText; this.mainTabSenderPage.Location = new System.Drawing.Point(4, 24); @@ -697,10 +697,10 @@ private void InitializeComponent() this.grouperSender.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.grouperSender.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSender.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSender.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSender.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSender.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSender.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSender.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSender.BorderThickness = 1F; this.grouperSender.Controls.Add(this.checkBoxNoPartitionKey); this.grouperSender.Controls.Add(this.txtSendBatchSize); @@ -721,9 +721,9 @@ private void InitializeComponent() this.grouperSender.Controls.Add(this.checkBoxSenderVerboseLogging); this.grouperSender.Controls.Add(this.lblSendTaskCount); this.grouperSender.Controls.Add(this.lblCount); - this.grouperSender.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSender.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSender.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSender.ForeColor = System.Drawing.Color.White; + this.grouperSender.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSender.GroupImage = null; this.grouperSender.GroupTitle = "Configuration"; this.grouperSender.Location = new System.Drawing.Point(16, 8); @@ -955,7 +955,7 @@ private void InitializeComponent() // // tabPageGraph // - this.tabPageGraph.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageGraph.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageGraph.Controls.Add(this.grouperSenderStatistics); this.tabPageGraph.Controls.Add(this.chart); this.tabPageGraph.ForeColor = System.Drawing.SystemColors.ControlText; @@ -970,15 +970,15 @@ private void InitializeComponent() // this.grouperSenderStatistics.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperSenderStatistics.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSenderStatistics.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSenderStatistics.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSenderStatistics.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSenderStatistics.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSenderStatistics.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSenderStatistics.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSenderStatistics.BorderThickness = 1F; this.grouperSenderStatistics.Controls.Add(this.senderLayoutPanel); - this.grouperSenderStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSenderStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSenderStatistics.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSenderStatistics.ForeColor = System.Drawing.Color.White; + this.grouperSenderStatistics.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSenderStatistics.GroupImage = null; this.grouperSenderStatistics.GroupTitle = "Sender"; this.grouperSenderStatistics.Location = new System.Drawing.Point(16, 8); @@ -1346,10 +1346,10 @@ private void InitializeComponent() // btnOpenFile // this.btnOpenFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenFile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenFile.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFile.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFile.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenFile.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenFile.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenFile.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenFile.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenFile.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenFile.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenFile.Location = new System.Drawing.Point(760, 392); @@ -1365,10 +1365,10 @@ private void InitializeComponent() // btnSelectFiles // this.btnSelectFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSelectFiles.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnSelectFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSelectFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSelectFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnSelectFiles.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnSelectFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnSelectFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnSelectFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnSelectFiles.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSelectFiles.ForeColor = System.Drawing.SystemColors.ControlText; this.btnSelectFiles.Location = new System.Drawing.Point(600, 392); @@ -1382,11 +1382,11 @@ private void InitializeComponent() // btnClearFiles // this.btnClearFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnClearFiles.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnClearFiles.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnClearFiles.Enabled = false; - this.btnClearFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClearFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClearFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClearFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClearFiles.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClearFiles.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClearFiles.Location = new System.Drawing.Point(679, 392); @@ -1401,7 +1401,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.btnClearFiles); this.Controls.Add(this.btnSelectFiles); this.Controls.Add(this.btnOpenFile); @@ -1532,3 +1532,4 @@ private void InitializeComponent() private System.Windows.Forms.Label label2; } } + diff --git a/src/ServiceBusExplorer/Controls/TestEventHubControl.cs b/src/ServiceBusExplorer/Controls/TestEventHubControl.cs index 5972d1f9..5ef51184 100644 --- a/src/ServiceBusExplorer/Controls/TestEventHubControl.cs +++ b/src/ServiceBusExplorer/Controls/TestEventHubControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -148,6 +148,7 @@ public TestEventHubControl(MainForm mainForm, this.eventHubDescription = eventHubDescription; this.partitionDescription = partitionDescription; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); } #endregion @@ -1372,3 +1373,4 @@ private void grouperPartitionKey_CustomPaint(PaintEventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/TestQueueControl.Designer.cs b/src/ServiceBusExplorer/Controls/TestQueueControl.Designer.cs index cbcbe73f..6b35aa60 100644 --- a/src/ServiceBusExplorer/Controls/TestQueueControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/TestQueueControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class TestQueueControl { @@ -230,10 +230,10 @@ private void InitializeComponent() // btnStart // this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnStart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnStart.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnStart.ForeColor = System.Drawing.SystemColors.ControlText; this.btnStart.Location = new System.Drawing.Point(840, 438); @@ -249,10 +249,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancel.Location = new System.Drawing.Point(920, 438); @@ -285,7 +285,7 @@ private void InitializeComponent() // // mainTabMessagePage // - this.mainTabMessagePage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabMessagePage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabMessagePage.Controls.Add(this.splitContainer); this.mainTabMessagePage.ForeColor = System.Drawing.SystemColors.ControlText; this.mainTabMessagePage.Location = new System.Drawing.Point(4, 24); @@ -332,7 +332,7 @@ private void InitializeComponent() // // tabMessagePage // - this.tabMessagePage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabMessagePage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabMessagePage.Controls.Add(this.grouperMessageFormat); this.tabMessagePage.Controls.Add(this.grouperMessageText); this.tabMessagePage.ForeColor = System.Drawing.SystemColors.ControlText; @@ -346,15 +346,15 @@ private void InitializeComponent() // this.grouperMessageFormat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperMessageFormat.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageFormat.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageFormat.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageFormat.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageFormat.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageFormat.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFormat.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageFormat.BorderThickness = 1F; this.grouperMessageFormat.Controls.Add(this.cboMessageFormat); - this.grouperMessageFormat.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFormat.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageFormat.ForeColor = System.Drawing.Color.White; + this.grouperMessageFormat.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageFormat.GroupImage = null; this.grouperMessageFormat.GroupTitle = "Message Format"; this.grouperMessageFormat.Location = new System.Drawing.Point(17, 256); @@ -387,15 +387,15 @@ private void InitializeComponent() this.grouperMessageText.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.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageText.BorderThickness = 1F; this.grouperMessageText.Controls.Add(this.txtMessageText); - this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageText.ForeColor = System.Drawing.Color.White; + this.grouperMessageText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageText.GroupImage = null; this.grouperMessageText.GroupTitle = "Message Text"; this.grouperMessageText.Location = new System.Drawing.Point(17, 8); @@ -446,7 +446,7 @@ private void InitializeComponent() // // tabFilesPage // - this.tabFilesPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabFilesPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabFilesPage.Controls.Add(this.label2); this.tabFilesPage.Controls.Add(this.grouperMessageFiles); this.tabFilesPage.ForeColor = System.Drawing.SystemColors.ControlText; @@ -473,10 +473,10 @@ private void InitializeComponent() this.grouperMessageFiles.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.grouperMessageFiles.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageFiles.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageFiles.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageFiles.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageFiles.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageFiles.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFiles.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageFiles.BorderThickness = 1F; this.grouperMessageFiles.Controls.Add(this.radioButtonBinaryFile); this.grouperMessageFiles.Controls.Add(this.radioButtonXmlTemplate); @@ -484,9 +484,9 @@ private void InitializeComponent() this.grouperMessageFiles.Controls.Add(this.radioButtonTextFile); this.grouperMessageFiles.Controls.Add(this.checkBoxFileName); this.grouperMessageFiles.Controls.Add(this.messageFileListView); - this.grouperMessageFiles.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFiles.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageFiles.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageFiles.ForeColor = System.Drawing.Color.White; + this.grouperMessageFiles.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageFiles.GroupImage = null; this.grouperMessageFiles.GroupTitle = "Message Files"; this.grouperMessageFiles.Location = new System.Drawing.Point(16, 81); @@ -603,7 +603,7 @@ private void InitializeComponent() // // tabGeneratorPage // - this.tabGeneratorPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabGeneratorPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabGeneratorPage.Controls.Add(this.grouperBrokeredMessageGenerator); this.tabGeneratorPage.Location = new System.Drawing.Point(4, 24); this.tabGeneratorPage.Name = "tabGeneratorPage"; @@ -616,18 +616,18 @@ private void InitializeComponent() this.grouperBrokeredMessageGenerator.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.grouperBrokeredMessageGenerator.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperBrokeredMessageGenerator.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperBrokeredMessageGenerator.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperBrokeredMessageGenerator.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperBrokeredMessageGenerator.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperBrokeredMessageGenerator.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperBrokeredMessageGenerator.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperBrokeredMessageGenerator.BorderThickness = 1F; this.grouperBrokeredMessageGenerator.Controls.Add(this.lblRegistration); this.grouperBrokeredMessageGenerator.Controls.Add(this.brokeredMessageGeneratorPropertyGrid); this.grouperBrokeredMessageGenerator.Controls.Add(this.cboBrokeredMessageGeneratorType); this.grouperBrokeredMessageGenerator.Controls.Add(this.lblRegistrationType); - this.grouperBrokeredMessageGenerator.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperBrokeredMessageGenerator.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperBrokeredMessageGenerator.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperBrokeredMessageGenerator.ForeColor = System.Drawing.Color.White; + this.grouperBrokeredMessageGenerator.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperBrokeredMessageGenerator.GroupImage = null; this.grouperBrokeredMessageGenerator.GroupTitle = "Message Generator"; this.grouperBrokeredMessageGenerator.Location = new System.Drawing.Point(17, 14); @@ -657,7 +657,7 @@ private void InitializeComponent() this.brokeredMessageGeneratorPropertyGrid.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.brokeredMessageGeneratorPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.brokeredMessageGeneratorPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.brokeredMessageGeneratorPropertyGrid.CategoryForeColor = System.Drawing.SystemColors.InactiveCaptionText; this.brokeredMessageGeneratorPropertyGrid.HelpBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.brokeredMessageGeneratorPropertyGrid.HelpVisible = false; @@ -693,16 +693,16 @@ private void InitializeComponent() // // grouperMessageProperties // - this.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageProperties.BorderThickness = 1F; this.grouperMessageProperties.Controls.Add(this.propertiesDataGridView); - this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageProperties.GroupImage = null; this.grouperMessageProperties.GroupTitle = "Message Properties"; this.grouperMessageProperties.Location = new System.Drawing.Point(0, 0); @@ -722,7 +722,7 @@ private void InitializeComponent() this.propertiesDataGridView.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.propertiesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.propertiesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.propertiesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.propertiesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.propertiesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -738,7 +738,7 @@ private void InitializeComponent() // // mainTabSenderPage // - this.mainTabSenderPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabSenderPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabSenderPage.Controls.Add(this.senderEnabledCheckBox); this.mainTabSenderPage.Controls.Add(this.grouperSender); this.mainTabSenderPage.Controls.Add(this.grouperMessage); @@ -769,10 +769,10 @@ private void InitializeComponent() // this.grouperSender.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperSender.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSender.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSender.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSender.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSender.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSender.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSender.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSender.BorderThickness = 1F; this.grouperSender.Controls.Add(this.checkBoxSendNewFactory); this.grouperSender.Controls.Add(this.cboSenderInspector); @@ -798,9 +798,9 @@ private void InitializeComponent() this.grouperSender.Controls.Add(this.cboBodyType); this.grouperSender.Controls.Add(this.lblSendTaskCount); this.grouperSender.Controls.Add(this.lblCount); - this.grouperSender.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSender.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSender.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSender.ForeColor = System.Drawing.Color.White; + this.grouperSender.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSender.GroupImage = null; this.grouperSender.GroupTitle = "Configuration"; this.grouperSender.Location = new System.Drawing.Point(624, 24); @@ -1086,10 +1086,10 @@ private void InitializeComponent() this.grouperMessage.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.grouperMessage.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessage.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessage.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessage.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessage.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessage.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessage.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessage.BorderThickness = 1F; this.grouperMessage.Controls.Add(this.checkBoxForcePersistence); this.grouperMessage.Controls.Add(this.lblForcePersistence); @@ -1113,9 +1113,9 @@ private void InitializeComponent() this.grouperMessage.Controls.Add(this.txtLabel); this.grouperMessage.Controls.Add(this.lblMessageId); this.grouperMessage.Controls.Add(this.txtMessageId); - this.grouperMessage.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessage.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessage.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessage.ForeColor = System.Drawing.Color.White; + this.grouperMessage.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessage.GroupImage = null; this.grouperMessage.GroupTitle = "Message"; this.grouperMessage.Location = new System.Drawing.Point(16, 24); @@ -1335,7 +1335,7 @@ private void InitializeComponent() // // mainTabReceiverPage // - this.mainTabReceiverPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabReceiverPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabReceiverPage.Controls.Add(this.receiverEnabledCheckBox); this.mainTabReceiverPage.Controls.Add(this.grouperReceiver); this.mainTabReceiverPage.ForeColor = System.Drawing.SystemColors.ControlText; @@ -1365,10 +1365,10 @@ private void InitializeComponent() this.grouperReceiver.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.grouperReceiver.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperReceiver.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperReceiver.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperReceiver.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperReceiver.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperReceiver.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiver.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperReceiver.BorderThickness = 1F; this.grouperReceiver.Controls.Add(this.checkBoxReceiveNewFactory); this.grouperReceiver.Controls.Add(this.cboReceiverInspector); @@ -1401,9 +1401,9 @@ private void InitializeComponent() this.grouperReceiver.Controls.Add(this.checkBoxReceiverVerboseLogging); this.grouperReceiver.Controls.Add(this.checkBoxReceiverCommitTransaction); this.grouperReceiver.Controls.Add(this.checkBoxEnableReceiverLogging); - this.grouperReceiver.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiver.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperReceiver.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperReceiver.ForeColor = System.Drawing.Color.White; + this.grouperReceiver.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperReceiver.GroupImage = null; this.grouperReceiver.GroupTitle = "Configuration"; this.grouperReceiver.Location = new System.Drawing.Point(16, 24); @@ -1779,7 +1779,7 @@ private void InitializeComponent() // // tabPageGraph // - this.tabPageGraph.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageGraph.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageGraph.Controls.Add(this.grouperReceiverStatistics); this.tabPageGraph.Controls.Add(this.grouperSenderStatistics); this.tabPageGraph.Controls.Add(this.chart); @@ -1795,15 +1795,15 @@ private void InitializeComponent() // this.grouperReceiverStatistics.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperReceiverStatistics.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperReceiverStatistics.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperReceiverStatistics.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperReceiverStatistics.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperReceiverStatistics.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperReceiverStatistics.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiverStatistics.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperReceiverStatistics.BorderThickness = 1F; this.grouperReceiverStatistics.Controls.Add(this.receiverLayoutPanel); - this.grouperReceiverStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiverStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperReceiverStatistics.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperReceiverStatistics.ForeColor = System.Drawing.Color.White; + this.grouperReceiverStatistics.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperReceiverStatistics.GroupImage = null; this.grouperReceiverStatistics.GroupTitle = "Receiver"; this.grouperReceiverStatistics.Location = new System.Drawing.Point(824, 8); @@ -2090,15 +2090,15 @@ private void InitializeComponent() // this.grouperSenderStatistics.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperSenderStatistics.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSenderStatistics.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSenderStatistics.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSenderStatistics.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSenderStatistics.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSenderStatistics.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSenderStatistics.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSenderStatistics.BorderThickness = 1F; this.grouperSenderStatistics.Controls.Add(this.senderLayoutPanel); - this.grouperSenderStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSenderStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSenderStatistics.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSenderStatistics.ForeColor = System.Drawing.Color.White; + this.grouperSenderStatistics.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSenderStatistics.GroupImage = null; this.grouperSenderStatistics.GroupTitle = "Sender"; this.grouperSenderStatistics.Location = new System.Drawing.Point(16, 8); @@ -2481,10 +2481,10 @@ private void InitializeComponent() // btnOpenFile // this.btnOpenFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenFile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenFile.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFile.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFile.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenFile.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenFile.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenFile.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenFile.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenFile.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenFile.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenFile.Location = new System.Drawing.Point(760, 438); @@ -2500,10 +2500,10 @@ private void InitializeComponent() // btnSelectFiles // this.btnSelectFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSelectFiles.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnSelectFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSelectFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSelectFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnSelectFiles.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnSelectFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnSelectFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnSelectFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnSelectFiles.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSelectFiles.ForeColor = System.Drawing.SystemColors.ControlText; this.btnSelectFiles.Location = new System.Drawing.Point(600, 438); @@ -2517,11 +2517,11 @@ private void InitializeComponent() // btnClearFiles // this.btnClearFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnClearFiles.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnClearFiles.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnClearFiles.Enabled = false; - this.btnClearFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClearFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClearFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClearFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClearFiles.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClearFiles.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClearFiles.Location = new System.Drawing.Point(679, 438); @@ -2536,7 +2536,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.btnClearFiles); this.Controls.Add(this.btnSelectFiles); this.Controls.Add(this.btnOpenFile); @@ -2762,3 +2762,4 @@ private void InitializeComponent() private System.Windows.Forms.Label label2; } } + diff --git a/src/ServiceBusExplorer/Controls/TestQueueControl.cs b/src/ServiceBusExplorer/Controls/TestQueueControl.cs index e569f7e6..01823557 100644 --- a/src/ServiceBusExplorer/Controls/TestQueueControl.cs +++ b/src/ServiceBusExplorer/Controls/TestQueueControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -223,6 +223,7 @@ public TestQueueControl(MainForm mainForm, controlHelper = new TestControlHelper(mainForm, writeToLog, stopLog, startLog, serviceBusHelper); this.queueDescription = queueDescription; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); } #endregion @@ -2185,3 +2186,4 @@ private void cboMessageFormat_SelectedIndexChanged(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/TestRelayControl.Designer.cs b/src/ServiceBusExplorer/Controls/TestRelayControl.Designer.cs index 73d52f4a..975c52a2 100644 --- a/src/ServiceBusExplorer/Controls/TestRelayControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/TestRelayControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class TestRelayControl { @@ -109,10 +109,10 @@ private void InitializeComponent() // btnStart // this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnStart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnStart.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnStart.ForeColor = System.Drawing.SystemColors.ControlText; this.btnStart.Location = new System.Drawing.Point(840, 438); @@ -128,10 +128,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancel.Location = new System.Drawing.Point(920, 438); @@ -163,7 +163,7 @@ private void InitializeComponent() // // mainTabMessagePage // - this.mainTabMessagePage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabMessagePage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabMessagePage.Controls.Add(this.splitContainer); this.mainTabMessagePage.ForeColor = System.Drawing.SystemColors.ControlText; this.mainTabMessagePage.Location = new System.Drawing.Point(4, 24); @@ -198,15 +198,15 @@ private void InitializeComponent() // this.grouperMessageFormat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperMessageFormat.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageFormat.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageFormat.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageFormat.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageFormat.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageFormat.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFormat.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageFormat.BorderThickness = 1F; this.grouperMessageFormat.Controls.Add(this.cboMessageFormat); - this.grouperMessageFormat.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFormat.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageFormat.ForeColor = System.Drawing.Color.White; + this.grouperMessageFormat.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageFormat.GroupImage = null; this.grouperMessageFormat.GroupTitle = "Message Format"; this.grouperMessageFormat.Location = new System.Drawing.Point(0, 296); @@ -239,15 +239,15 @@ private void InitializeComponent() this.grouperMessageText.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.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageText.BorderThickness = 1F; this.grouperMessageText.Controls.Add(this.txtMessageText); - this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageText.ForeColor = System.Drawing.Color.White; + this.grouperMessageText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageText.GroupImage = null; this.grouperMessageText.GroupTitle = "Message Text"; this.grouperMessageText.Location = new System.Drawing.Point(0, 0); @@ -301,15 +301,15 @@ private void InitializeComponent() this.grouperMessageHeaders.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.grouperMessageHeaders.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageHeaders.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageHeaders.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageHeaders.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageHeaders.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageHeaders.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageHeaders.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageHeaders.BorderThickness = 1F; this.grouperMessageHeaders.Controls.Add(this.headersDataGridView); - this.grouperMessageHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageHeaders.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageHeaders.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageHeaders.ForeColor = System.Drawing.Color.White; + this.grouperMessageHeaders.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageHeaders.GroupImage = null; this.grouperMessageHeaders.GroupTitle = "Message Headers"; this.grouperMessageHeaders.Location = new System.Drawing.Point(0, 0); @@ -329,7 +329,7 @@ private void InitializeComponent() this.headersDataGridView.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.headersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.headersDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.headersDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.headersDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.headersDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -345,7 +345,7 @@ private void InitializeComponent() // // mainTabSenderPage // - this.mainTabSenderPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabSenderPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabSenderPage.Controls.Add(this.grouperConfiguration); this.mainTabSenderPage.Controls.Add(this.grouperBinding); this.mainTabSenderPage.ForeColor = System.Drawing.SystemColors.ControlText; @@ -360,10 +360,10 @@ private void InitializeComponent() // this.grouperConfiguration.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperConfiguration.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperConfiguration.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperConfiguration.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperConfiguration.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperConfiguration.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperConfiguration.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperConfiguration.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperConfiguration.BorderThickness = 1F; this.grouperConfiguration.Controls.Add(this.txtAction); this.grouperConfiguration.Controls.Add(this.lblAction); @@ -375,9 +375,9 @@ private void InitializeComponent() this.grouperConfiguration.Controls.Add(this.txtSendTaskCount); this.grouperConfiguration.Controls.Add(this.txtMessageCount); this.grouperConfiguration.Controls.Add(this.lblCount); - this.grouperConfiguration.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperConfiguration.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperConfiguration.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperConfiguration.ForeColor = System.Drawing.Color.White; + this.grouperConfiguration.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperConfiguration.GroupImage = null; this.grouperConfiguration.GroupTitle = "Configuration"; this.grouperConfiguration.Location = new System.Drawing.Point(16, 8); @@ -498,16 +498,16 @@ private void InitializeComponent() this.grouperBinding.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.grouperBinding.BackgroundColor = System.Drawing.Color.Transparent; - this.grouperBinding.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperBinding.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperBinding.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperBinding.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperBinding.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperBinding.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperBinding.BorderThickness = 1F; this.grouperBinding.Controls.Add(this.cboBinding); this.grouperBinding.Controls.Add(this.bindingSplitContainer); - this.grouperBinding.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperBinding.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperBinding.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperBinding.ForeColor = System.Drawing.Color.White; + this.grouperBinding.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperBinding.GroupImage = null; this.grouperBinding.GroupTitle = "Binding"; this.grouperBinding.Location = new System.Drawing.Point(280, 8); @@ -576,7 +576,7 @@ private void InitializeComponent() // // bindingPropertyGrid // - this.bindingPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.bindingPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.bindingPropertyGrid.Dock = System.Windows.Forms.DockStyle.Fill; this.bindingPropertyGrid.HelpVisible = false; this.bindingPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); @@ -588,7 +588,7 @@ private void InitializeComponent() // // mainTabStatisticsPage // - this.mainTabStatisticsPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabStatisticsPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabStatisticsPage.Controls.Add(this.grouperSenderStatistics); this.mainTabStatisticsPage.Controls.Add(this.chart); this.mainTabStatisticsPage.ForeColor = System.Drawing.SystemColors.ControlText; @@ -603,15 +603,15 @@ private void InitializeComponent() // this.grouperSenderStatistics.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperSenderStatistics.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSenderStatistics.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSenderStatistics.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSenderStatistics.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSenderStatistics.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSenderStatistics.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSenderStatistics.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSenderStatistics.BorderThickness = 1F; this.grouperSenderStatistics.Controls.Add(this.mainTableLayoutPanel); - this.grouperSenderStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSenderStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSenderStatistics.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSenderStatistics.ForeColor = System.Drawing.Color.White; + this.grouperSenderStatistics.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSenderStatistics.GroupImage = null; this.grouperSenderStatistics.GroupTitle = "Sender"; this.grouperSenderStatistics.Location = new System.Drawing.Point(16, 8); @@ -983,10 +983,10 @@ private void InitializeComponent() // btnOpenFile // this.btnOpenFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenFile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenFile.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFile.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFile.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenFile.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenFile.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenFile.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenFile.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenFile.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenFile.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenFile.Location = new System.Drawing.Point(760, 438); @@ -1003,7 +1003,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.btnOpenFile); this.Controls.Add(this.mainTabControl); this.Controls.Add(this.btnCancel); @@ -1101,3 +1101,4 @@ private void InitializeComponent() private FastColoredTextBoxNS.FastColoredTextBox txtMessageText; } } + diff --git a/src/ServiceBusExplorer/Controls/TestRelayControl.cs b/src/ServiceBusExplorer/Controls/TestRelayControl.cs index ef934169..aa4b05a0 100644 --- a/src/ServiceBusExplorer/Controls/TestRelayControl.cs +++ b/src/ServiceBusExplorer/Controls/TestRelayControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -119,6 +119,7 @@ public TestRelayControl(MainForm mainForm, controlHelper = new TestControlHelper(mainForm, writeToLog, stopLog, startLog, serviceBusHelper); this.relayDescription = relayDescription; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); } #endregion @@ -1219,3 +1220,4 @@ private void cboMessageFormat_SelectedIndexChanged(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/TestSubscriptionControl.Designer.cs b/src/ServiceBusExplorer/Controls/TestSubscriptionControl.Designer.cs index 122efb87..3a831635 100644 --- a/src/ServiceBusExplorer/Controls/TestSubscriptionControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/TestSubscriptionControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class TestSubscriptionControl { @@ -97,10 +97,10 @@ private void InitializeComponent() // btnStart // this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnStart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnStart.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnStart.ForeColor = System.Drawing.SystemColors.ControlText; this.btnStart.Location = new System.Drawing.Point(840, 438); @@ -116,10 +116,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancel.Location = new System.Drawing.Point(920, 438); @@ -150,7 +150,7 @@ private void InitializeComponent() // // mainTabReceiverPage // - this.mainTabReceiverPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabReceiverPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabReceiverPage.Controls.Add(this.grouperReceiver); this.mainTabReceiverPage.ForeColor = System.Drawing.SystemColors.ControlText; this.mainTabReceiverPage.Location = new System.Drawing.Point(4, 24); @@ -164,10 +164,10 @@ private void InitializeComponent() this.grouperReceiver.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.grouperReceiver.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperReceiver.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperReceiver.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperReceiver.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperReceiver.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperReceiver.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiver.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperReceiver.BorderThickness = 1F; this.grouperReceiver.Controls.Add(this.cboReceiverInspector); this.grouperReceiver.Controls.Add(this.lblReceiverInspector); @@ -199,9 +199,9 @@ private void InitializeComponent() this.grouperReceiver.Controls.Add(this.checkBoxReceiverVerboseLogging); this.grouperReceiver.Controls.Add(this.checkBoxReceiverCommitTransaction); this.grouperReceiver.Controls.Add(this.checkBoxEnableReceiverLogging); - this.grouperReceiver.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiver.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperReceiver.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperReceiver.ForeColor = System.Drawing.Color.White; + this.grouperReceiver.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperReceiver.GroupImage = null; this.grouperReceiver.GroupTitle = "Configuration"; this.grouperReceiver.Location = new System.Drawing.Point(16, 24); @@ -565,7 +565,7 @@ private void InitializeComponent() // // tabPageGraph // - this.tabPageGraph.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageGraph.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageGraph.Controls.Add(this.grouperReceiverStatistics); this.tabPageGraph.Controls.Add(this.chart); this.tabPageGraph.ForeColor = System.Drawing.SystemColors.ControlText; @@ -580,15 +580,15 @@ private void InitializeComponent() // this.grouperReceiverStatistics.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperReceiverStatistics.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperReceiverStatistics.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperReceiverStatistics.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperReceiverStatistics.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperReceiverStatistics.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperReceiverStatistics.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiverStatistics.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperReceiverStatistics.BorderThickness = 1F; this.grouperReceiverStatistics.Controls.Add(this.receiverLayoutPanel); - this.grouperReceiverStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiverStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperReceiverStatistics.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperReceiverStatistics.ForeColor = System.Drawing.Color.White; + this.grouperReceiverStatistics.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperReceiverStatistics.GroupImage = null; this.grouperReceiverStatistics.GroupTitle = "Receiver"; this.grouperReceiverStatistics.Location = new System.Drawing.Point(16, 8); @@ -957,7 +957,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.mainTabControl); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnStart); @@ -1043,3 +1043,4 @@ private void InitializeComponent() private System.Windows.Forms.Label lblReceiverInspector; } } + diff --git a/src/ServiceBusExplorer/Controls/TestSubscriptionControl.cs b/src/ServiceBusExplorer/Controls/TestSubscriptionControl.cs index 65b8a903..714c9da5 100644 --- a/src/ServiceBusExplorer/Controls/TestSubscriptionControl.cs +++ b/src/ServiceBusExplorer/Controls/TestSubscriptionControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -124,6 +124,7 @@ public TestSubscriptionControl(MainForm mainForm, controlHelper = new TestControlHelper(mainForm, writeToLog, stopLog, startLog, serviceBusHelper); this.subscriptionWrapper = subscriptionWrapper; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); } #endregion @@ -916,3 +917,4 @@ protected override void Dispose(bool disposing) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/TestTopicControl.Designer.cs b/src/ServiceBusExplorer/Controls/TestTopicControl.Designer.cs index 8f1a3542..ffa8841d 100644 --- a/src/ServiceBusExplorer/Controls/TestTopicControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/TestTopicControl.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { partial class TestTopicControl { @@ -232,10 +232,10 @@ private void InitializeComponent() // btnStart // this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnStart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnStart.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnStart.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnStart.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnStart.ForeColor = System.Drawing.SystemColors.ControlText; this.btnStart.Location = new System.Drawing.Point(840, 438); @@ -251,10 +251,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.ForeColor = System.Drawing.SystemColors.ControlText; this.btnCancel.Location = new System.Drawing.Point(920, 438); @@ -287,7 +287,7 @@ private void InitializeComponent() // // mainTabMessagePage // - this.mainTabMessagePage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabMessagePage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabMessagePage.Controls.Add(this.splitContainer); this.mainTabMessagePage.ForeColor = System.Drawing.SystemColors.ControlText; this.mainTabMessagePage.Location = new System.Drawing.Point(4, 24); @@ -334,7 +334,7 @@ private void InitializeComponent() // // tabMessagePage // - this.tabMessagePage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabMessagePage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabMessagePage.Controls.Add(this.grouperMessageFormat); this.tabMessagePage.Controls.Add(this.grouperMessageText); this.tabMessagePage.ForeColor = System.Drawing.SystemColors.ControlText; @@ -348,15 +348,15 @@ private void InitializeComponent() // this.grouperMessageFormat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperMessageFormat.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageFormat.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageFormat.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageFormat.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageFormat.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageFormat.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFormat.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageFormat.BorderThickness = 1F; this.grouperMessageFormat.Controls.Add(this.cboMessageFormat); - this.grouperMessageFormat.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFormat.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageFormat.ForeColor = System.Drawing.Color.White; + this.grouperMessageFormat.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageFormat.GroupImage = null; this.grouperMessageFormat.GroupTitle = "Message Format"; this.grouperMessageFormat.Location = new System.Drawing.Point(17, 258); @@ -389,15 +389,15 @@ private void InitializeComponent() this.grouperMessageText.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.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageText.BorderThickness = 1F; this.grouperMessageText.Controls.Add(this.txtMessageText); - this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageText.ForeColor = System.Drawing.Color.White; + this.grouperMessageText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageText.GroupImage = null; this.grouperMessageText.GroupTitle = "Message Text"; this.grouperMessageText.Location = new System.Drawing.Point(17, 10); @@ -448,7 +448,7 @@ private void InitializeComponent() // // tabFilesPage // - this.tabFilesPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabFilesPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabFilesPage.Controls.Add(this.label2); this.tabFilesPage.Controls.Add(this.grouperMessageFiles); this.tabFilesPage.ForeColor = System.Drawing.SystemColors.ControlText; @@ -475,10 +475,10 @@ private void InitializeComponent() this.grouperMessageFiles.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.grouperMessageFiles.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageFiles.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageFiles.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageFiles.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageFiles.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageFiles.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFiles.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageFiles.BorderThickness = 1F; this.grouperMessageFiles.Controls.Add(this.radioButtonBinaryFile); this.grouperMessageFiles.Controls.Add(this.radioButtonJsonTemplate); @@ -486,9 +486,9 @@ private void InitializeComponent() this.grouperMessageFiles.Controls.Add(this.radioButtonTextFile); this.grouperMessageFiles.Controls.Add(this.checkBoxFileName); this.grouperMessageFiles.Controls.Add(this.messageFileListView); - this.grouperMessageFiles.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageFiles.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageFiles.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageFiles.ForeColor = System.Drawing.Color.White; + this.grouperMessageFiles.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageFiles.GroupImage = null; this.grouperMessageFiles.GroupTitle = "Message Files"; this.grouperMessageFiles.Location = new System.Drawing.Point(16, 78); @@ -603,7 +603,7 @@ private void InitializeComponent() // // tabGeneratorPage // - this.tabGeneratorPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabGeneratorPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabGeneratorPage.Controls.Add(this.grouperBrokeredMessageGenerator); this.tabGeneratorPage.Location = new System.Drawing.Point(4, 24); this.tabGeneratorPage.Name = "tabGeneratorPage"; @@ -616,18 +616,18 @@ private void InitializeComponent() this.grouperBrokeredMessageGenerator.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.grouperBrokeredMessageGenerator.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperBrokeredMessageGenerator.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperBrokeredMessageGenerator.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperBrokeredMessageGenerator.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperBrokeredMessageGenerator.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperBrokeredMessageGenerator.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperBrokeredMessageGenerator.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperBrokeredMessageGenerator.BorderThickness = 1F; this.grouperBrokeredMessageGenerator.Controls.Add(this.lblRegistration); this.grouperBrokeredMessageGenerator.Controls.Add(this.brokeredMessageGeneratorPropertyGrid); this.grouperBrokeredMessageGenerator.Controls.Add(this.cboBrokeredMessageGeneratorType); this.grouperBrokeredMessageGenerator.Controls.Add(this.lblRegistrationType); - this.grouperBrokeredMessageGenerator.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperBrokeredMessageGenerator.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperBrokeredMessageGenerator.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperBrokeredMessageGenerator.ForeColor = System.Drawing.Color.White; + this.grouperBrokeredMessageGenerator.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperBrokeredMessageGenerator.GroupImage = null; this.grouperBrokeredMessageGenerator.GroupTitle = "Message Generator"; this.grouperBrokeredMessageGenerator.Location = new System.Drawing.Point(17, 14); @@ -657,7 +657,7 @@ private void InitializeComponent() this.brokeredMessageGeneratorPropertyGrid.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.brokeredMessageGeneratorPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.brokeredMessageGeneratorPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.brokeredMessageGeneratorPropertyGrid.HelpBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.brokeredMessageGeneratorPropertyGrid.HelpVisible = false; this.brokeredMessageGeneratorPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); @@ -692,16 +692,16 @@ private void InitializeComponent() // // grouperMessageProperties // - this.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageProperties.BorderThickness = 1F; this.grouperMessageProperties.Controls.Add(this.propertiesDataGridView); - this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageProperties.GroupImage = null; this.grouperMessageProperties.GroupTitle = "Message Properties"; this.grouperMessageProperties.Location = new System.Drawing.Point(0, 0); @@ -721,7 +721,7 @@ private void InitializeComponent() this.propertiesDataGridView.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.propertiesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.propertiesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.propertiesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.propertiesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.propertiesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -737,7 +737,7 @@ private void InitializeComponent() // // mainTabSenderPage // - this.mainTabSenderPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabSenderPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabSenderPage.Controls.Add(this.senderEnabledCheckBox); this.mainTabSenderPage.Controls.Add(this.grouperSender); this.mainTabSenderPage.Controls.Add(this.grouperMessage); @@ -768,10 +768,10 @@ private void InitializeComponent() // this.grouperSender.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperSender.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSender.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSender.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSender.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSender.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSender.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSender.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSender.BorderThickness = 1F; this.grouperSender.Controls.Add(this.checkBoxSendNewFactory); this.grouperSender.Controls.Add(this.cboSenderInspector); @@ -797,9 +797,9 @@ private void InitializeComponent() this.grouperSender.Controls.Add(this.cboBodyType); this.grouperSender.Controls.Add(this.lblSendTaskCount); this.grouperSender.Controls.Add(this.lblCount); - this.grouperSender.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSender.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSender.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSender.ForeColor = System.Drawing.Color.White; + this.grouperSender.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSender.GroupImage = null; this.grouperSender.GroupTitle = "Configuration"; this.grouperSender.Location = new System.Drawing.Point(624, 24); @@ -1086,10 +1086,10 @@ private void InitializeComponent() this.grouperMessage.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.grouperMessage.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessage.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessage.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessage.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessage.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessage.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessage.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessage.BorderThickness = 1F; this.grouperMessage.Controls.Add(this.checkBoxForcePersistence); this.grouperMessage.Controls.Add(this.lblForcePersistence); @@ -1113,9 +1113,9 @@ private void InitializeComponent() this.grouperMessage.Controls.Add(this.txtLabel); this.grouperMessage.Controls.Add(this.lblMessageId); this.grouperMessage.Controls.Add(this.txtMessageId); - this.grouperMessage.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessage.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessage.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessage.ForeColor = System.Drawing.Color.White; + this.grouperMessage.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessage.GroupImage = null; this.grouperMessage.GroupTitle = "Message"; this.grouperMessage.Location = new System.Drawing.Point(16, 24); @@ -1336,7 +1336,7 @@ private void InitializeComponent() // // mainTabReceiverPage // - this.mainTabReceiverPage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainTabReceiverPage.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainTabReceiverPage.Controls.Add(this.receiverEnabledCheckBox); this.mainTabReceiverPage.Controls.Add(this.grouperReceiver); this.mainTabReceiverPage.ForeColor = System.Drawing.SystemColors.ControlText; @@ -1366,10 +1366,10 @@ private void InitializeComponent() this.grouperReceiver.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.grouperReceiver.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperReceiver.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperReceiver.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperReceiver.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperReceiver.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperReceiver.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiver.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperReceiver.BorderThickness = 1F; this.grouperReceiver.Controls.Add(this.checkBoxReceiveNewFactory); this.grouperReceiver.Controls.Add(this.cboReceiverInspector); @@ -1404,9 +1404,9 @@ private void InitializeComponent() this.grouperReceiver.Controls.Add(this.checkBoxReceiverVerboseLogging); this.grouperReceiver.Controls.Add(this.checkBoxReceiverCommitTransaction); this.grouperReceiver.Controls.Add(this.checkBoxEnableReceiverLogging); - this.grouperReceiver.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiver.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperReceiver.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperReceiver.ForeColor = System.Drawing.Color.White; + this.grouperReceiver.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperReceiver.GroupImage = null; this.grouperReceiver.GroupTitle = "Configuration"; this.grouperReceiver.Location = new System.Drawing.Point(16, 24); @@ -1805,7 +1805,7 @@ private void InitializeComponent() // // tabPageGraph // - this.tabPageGraph.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageGraph.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageGraph.Controls.Add(this.grouperReceiverStatistics); this.tabPageGraph.Controls.Add(this.grouperSenderStatistics); this.tabPageGraph.Controls.Add(this.chart); @@ -1821,15 +1821,15 @@ private void InitializeComponent() // this.grouperReceiverStatistics.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.grouperReceiverStatistics.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperReceiverStatistics.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperReceiverStatistics.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperReceiverStatistics.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperReceiverStatistics.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperReceiverStatistics.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiverStatistics.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperReceiverStatistics.BorderThickness = 1F; this.grouperReceiverStatistics.Controls.Add(this.receiverLayoutPanel); - this.grouperReceiverStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiverStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperReceiverStatistics.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperReceiverStatistics.ForeColor = System.Drawing.Color.White; + this.grouperReceiverStatistics.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperReceiverStatistics.GroupImage = null; this.grouperReceiverStatistics.GroupTitle = "Receiver"; this.grouperReceiverStatistics.Location = new System.Drawing.Point(824, 8); @@ -2116,15 +2116,15 @@ private void InitializeComponent() // this.grouperSenderStatistics.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grouperSenderStatistics.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperSenderStatistics.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSenderStatistics.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSenderStatistics.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSenderStatistics.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSenderStatistics.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSenderStatistics.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSenderStatistics.BorderThickness = 1F; this.grouperSenderStatistics.Controls.Add(this.senderLayoutPanel); - this.grouperSenderStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSenderStatistics.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSenderStatistics.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSenderStatistics.ForeColor = System.Drawing.Color.White; + this.grouperSenderStatistics.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSenderStatistics.GroupImage = null; this.grouperSenderStatistics.GroupTitle = "Sender"; this.grouperSenderStatistics.Location = new System.Drawing.Point(16, 8); @@ -2507,10 +2507,10 @@ private void InitializeComponent() // btnOpenFile // this.btnOpenFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenFile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenFile.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFile.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFile.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenFile.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenFile.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenFile.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenFile.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenFile.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenFile.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenFile.Location = new System.Drawing.Point(760, 438); @@ -2526,11 +2526,11 @@ private void InitializeComponent() // btnClearFiles // this.btnClearFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnClearFiles.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnClearFiles.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnClearFiles.Enabled = false; - this.btnClearFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClearFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClearFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClearFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClearFiles.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClearFiles.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClearFiles.Location = new System.Drawing.Point(680, 438); @@ -2544,10 +2544,10 @@ private void InitializeComponent() // btnSelectFiles // this.btnSelectFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSelectFiles.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnSelectFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSelectFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSelectFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnSelectFiles.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnSelectFiles.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnSelectFiles.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnSelectFiles.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnSelectFiles.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSelectFiles.ForeColor = System.Drawing.SystemColors.ControlText; this.btnSelectFiles.Location = new System.Drawing.Point(601, 438); @@ -2562,7 +2562,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.Controls.Add(this.btnClearFiles); this.Controls.Add(this.btnSelectFiles); this.Controls.Add(this.btnOpenFile); @@ -2790,3 +2790,4 @@ private void InitializeComponent() private System.Windows.Forms.Label label2; } } + diff --git a/src/ServiceBusExplorer/Controls/TestTopicControl.cs b/src/ServiceBusExplorer/Controls/TestTopicControl.cs index ce5eed9f..4eb18431 100644 --- a/src/ServiceBusExplorer/Controls/TestTopicControl.cs +++ b/src/ServiceBusExplorer/Controls/TestTopicControl.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -226,6 +226,7 @@ public TestTopicControl(MainForm mainForm, this.topic = topic; this.subscriptionList = subscriptionList; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); } #endregion @@ -2188,3 +2189,4 @@ private void cboMessageFormat_SelectedIndexChanged(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Controls/TimeSpanControl.Designer.cs b/src/ServiceBusExplorer/Controls/TimeSpanControl.Designer.cs index 346e435d..dec9cf8a 100644 --- a/src/ServiceBusExplorer/Controls/TimeSpanControl.Designer.cs +++ b/src/ServiceBusExplorer/Controls/TimeSpanControl.Designer.cs @@ -1,4 +1,4 @@ - + namespace ServiceBusExplorer.Controls { partial class TimeSpanControl @@ -96,7 +96,7 @@ private void InitializeComponent() this.txtMilliseconds.AllowDecimal = false; this.txtMilliseconds.AllowNegative = false; this.txtMilliseconds.AllowSpace = false; - this.txtMilliseconds.BackColor = System.Drawing.SystemColors.Window; + this.txtMilliseconds.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtMilliseconds.IsZeroWhenEmpty = true; this.txtMilliseconds.Location = new System.Drawing.Point(223, 19); this.txtMilliseconds.Name = "txtMilliseconds"; @@ -108,7 +108,7 @@ private void InitializeComponent() this.txtSeconds.AllowDecimal = false; this.txtSeconds.AllowNegative = false; this.txtSeconds.AllowSpace = false; - this.txtSeconds.BackColor = System.Drawing.SystemColors.Window; + this.txtSeconds.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtSeconds.IsZeroWhenEmpty = true; this.txtSeconds.Location = new System.Drawing.Point(168, 19); this.txtSeconds.Name = "txtSeconds"; @@ -120,7 +120,7 @@ private void InitializeComponent() this.txtMinutes.AllowDecimal = false; this.txtMinutes.AllowNegative = false; this.txtMinutes.AllowSpace = false; - this.txtMinutes.BackColor = System.Drawing.SystemColors.Window; + this.txtMinutes.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtMinutes.IsZeroWhenEmpty = true; this.txtMinutes.Location = new System.Drawing.Point(113, 19); this.txtMinutes.Name = "txtMinutes"; @@ -132,7 +132,7 @@ private void InitializeComponent() this.txtHours.AllowDecimal = false; this.txtHours.AllowNegative = false; this.txtHours.AllowSpace = false; - this.txtHours.BackColor = System.Drawing.SystemColors.Window; + this.txtHours.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtHours.IsZeroWhenEmpty = true; this.txtHours.Location = new System.Drawing.Point(58, 19); this.txtHours.Name = "txtHours"; @@ -144,7 +144,7 @@ private void InitializeComponent() this.txtDays.AllowDecimal = false; this.txtDays.AllowNegative = false; this.txtDays.AllowSpace = false; - this.txtDays.BackColor = System.Drawing.SystemColors.Window; + this.txtDays.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtDays.IsZeroWhenEmpty = true; this.txtDays.Location = new System.Drawing.Point(3, 19); this.txtDays.Name = "txtDays"; @@ -186,3 +186,4 @@ private void InitializeComponent() private NumericTextBox txtDays; } } + diff --git a/src/ServiceBusExplorer/Controls/TimeSpanControl.cs b/src/ServiceBusExplorer/Controls/TimeSpanControl.cs index abb60b1b..72390a40 100644 --- a/src/ServiceBusExplorer/Controls/TimeSpanControl.cs +++ b/src/ServiceBusExplorer/Controls/TimeSpanControl.cs @@ -1,6 +1,7 @@ -namespace ServiceBusExplorer.Controls +namespace ServiceBusExplorer.Controls { - using System; + using ServiceBusExplorer.Helpers; +using System; using System.Globalization; using System.Windows.Forms; @@ -18,6 +19,7 @@ public partial class TimeSpanControl : UserControl public TimeSpanControl() { InitializeComponent(); + ThemeManager.Apply(this); } public bool IsFilled => txtDays.IsFilled || txtHours.IsFilled || txtMinutes.IsFilled || txtSeconds.IsFilled || txtMilliseconds.IsFilled; @@ -88,3 +90,4 @@ public TimeSpan? TimeSpanValue } } } + diff --git a/src/ServiceBusExplorer/Forms/AboutForm.cs b/src/ServiceBusExplorer/Forms/AboutForm.cs index fec7b041..ba4d8927 100644 --- a/src/ServiceBusExplorer/Forms/AboutForm.cs +++ b/src/ServiceBusExplorer/Forms/AboutForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -56,6 +56,7 @@ public partial class AboutForm : Form public AboutForm() { InitializeComponent(); + ThemeManager.Apply(this); //This form is double buffered SetStyle( @@ -450,3 +451,4 @@ public Shape this[int index] } } } + diff --git a/src/ServiceBusExplorer/Forms/ChangeQueueStatusForm.Designer.cs b/src/ServiceBusExplorer/Forms/ChangeQueueStatusForm.Designer.cs index 46655033..ecacbb66 100644 --- a/src/ServiceBusExplorer/Forms/ChangeQueueStatusForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/ChangeQueueStatusForm.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Forms +namespace ServiceBusExplorer.Forms { partial class ChangeQueueStatusForm { @@ -83,7 +83,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(315, 119); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnOk); @@ -105,3 +105,4 @@ private void InitializeComponent() private System.Windows.Forms.Button btnCancel; } } + diff --git a/src/ServiceBusExplorer/Forms/ChangeQueueStatusForm.cs b/src/ServiceBusExplorer/Forms/ChangeQueueStatusForm.cs index f2faaf60..8d56f784 100644 --- a/src/ServiceBusExplorer/Forms/ChangeQueueStatusForm.cs +++ b/src/ServiceBusExplorer/Forms/ChangeQueueStatusForm.cs @@ -1,4 +1,5 @@ -using Microsoft.ServiceBus.Messaging; +using ServiceBusExplorer.Helpers; +using Microsoft.ServiceBus.Messaging; using System; using System.IO; using System.Windows.Forms; @@ -12,6 +13,7 @@ public partial class ChangeQueueStatusForm : Form public ChangeQueueStatusForm(EntityStatus entityCurrentStatus) { InitializeComponent(); + ThemeManager.Apply(this); SetSelected(entityCurrentStatus); } @@ -39,3 +41,4 @@ private void btnCancel_Click(object sender, EventArgs e) } } } + diff --git a/src/ServiceBusExplorer/Forms/ChangeStatusForm.Designer.cs b/src/ServiceBusExplorer/Forms/ChangeStatusForm.Designer.cs index 8c1f680d..d72b18e7 100644 --- a/src/ServiceBusExplorer/Forms/ChangeStatusForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/ChangeStatusForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -64,10 +64,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(144, 72); this.btnOk.Name = "btnOk"; @@ -82,10 +82,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(224, 72); this.btnCancel.Name = "btnCancel"; @@ -101,7 +101,7 @@ private void InitializeComponent() // this.mainPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mainPanel.BackColor = System.Drawing.SystemColors.Window; + this.mainPanel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainPanel.Controls.Add(this.lblMessage); this.mainPanel.Controls.Add(this.pictureBox1); this.mainPanel.Location = new System.Drawing.Point(0, 0); @@ -132,7 +132,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(312, 108); this.Controls.Add(this.mainPanel); this.Controls.Add(this.btnCancel); @@ -159,4 +159,4 @@ private void InitializeComponent() private System.Windows.Forms.Label lblMessage; private System.Windows.Forms.PictureBox pictureBox1; } -} \ No newline at end of file +} diff --git a/src/ServiceBusExplorer/Forms/ChangeStatusForm.cs b/src/ServiceBusExplorer/Forms/ChangeStatusForm.cs index f12e3116..6336231a 100644 --- a/src/ServiceBusExplorer/Forms/ChangeStatusForm.cs +++ b/src/ServiceBusExplorer/Forms/ChangeStatusForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -21,6 +21,7 @@ #region Using Directives +using ServiceBusExplorer.Helpers; using System; using System.Drawing; using System.Windows.Forms; @@ -46,6 +47,7 @@ public partial class ChangeStatusForm : Form public ChangeStatusForm(string entityName, string entityType, EntityStatus desiredStatus) { InitializeComponent(); + ThemeManager.Apply(this); if (desiredStatus == EntityStatus.Active) { @@ -102,3 +104,4 @@ private void mainPanel_Paint(object sender, PaintEventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/ClipboardForm.Designer.cs b/src/ServiceBusExplorer/Forms/ClipboardForm.Designer.cs index 10f60ba1..66bc5307 100644 --- a/src/ServiceBusExplorer/Forms/ClipboardForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/ClipboardForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -64,10 +64,10 @@ private void InitializeComponent() // btnCopy // this.btnCopy.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCopy.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCopy.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCopy.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCopy.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCopy.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCopy.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCopy.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCopy.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCopy.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCopy.Location = new System.Drawing.Point(144, 72); this.btnCopy.Name = "btnCopy"; @@ -82,10 +82,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(224, 72); this.btnCancel.Name = "btnCancel"; @@ -101,7 +101,7 @@ private void InitializeComponent() // this.mainPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mainPanel.BackColor = System.Drawing.SystemColors.Window; + this.mainPanel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainPanel.Controls.Add(this.lblUrl); this.mainPanel.Controls.Add(this.pictureBox1); this.mainPanel.Location = new System.Drawing.Point(0, 0); @@ -132,7 +132,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(312, 108); this.Controls.Add(this.mainPanel); this.Controls.Add(this.btnCancel); @@ -159,4 +159,4 @@ private void InitializeComponent() private System.Windows.Forms.Label lblUrl; private System.Windows.Forms.PictureBox pictureBox1; } -} \ No newline at end of file +} diff --git a/src/ServiceBusExplorer/Forms/ClipboardForm.cs b/src/ServiceBusExplorer/Forms/ClipboardForm.cs index 8b1b29cd..8594a709 100644 --- a/src/ServiceBusExplorer/Forms/ClipboardForm.cs +++ b/src/ServiceBusExplorer/Forms/ClipboardForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -21,6 +21,7 @@ #region Using Directives +using ServiceBusExplorer.Helpers; using System; using System.Drawing; using System.Windows.Forms; @@ -35,6 +36,7 @@ public partial class ClipboardForm : Form public ClipboardForm(string url) { InitializeComponent(); + ThemeManager.Apply(this); lblUrl.Text = string.Format(url); Width = lblUrl.Width + 80; } @@ -78,3 +80,4 @@ private void mainPanel_Paint(object sender, PaintEventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/CollectionEditorForm.Designer.cs b/src/ServiceBusExplorer/Forms/CollectionEditorForm.Designer.cs index 55317119..d5ee34ce 100644 --- a/src/ServiceBusExplorer/Forms/CollectionEditorForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/CollectionEditorForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -68,10 +68,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(264, 248); this.btnOk.Name = "btnOk"; @@ -86,10 +86,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(344, 248); this.btnCancel.Name = "btnCancel"; @@ -106,15 +106,15 @@ private void InitializeComponent() this.grouperCaption.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.grouperCaption.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperCaption.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperCaption.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperCaption.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperCaption.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperCaption.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCaption.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperCaption.BorderThickness = 1F; this.grouperCaption.Controls.Add(this.dataGridView); - this.grouperCaption.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCaption.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperCaption.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperCaption.ForeColor = System.Drawing.Color.White; + this.grouperCaption.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperCaption.GroupImage = null; this.grouperCaption.GroupTitle = "Caption"; this.grouperCaption.Location = new System.Drawing.Point(16, 16); @@ -135,7 +135,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.dataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.dataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.dataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -152,7 +152,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(432, 281); this.Controls.Add(this.grouperCaption); this.Controls.Add(this.btnCancel); @@ -176,4 +176,4 @@ private void InitializeComponent() private System.Windows.Forms.DataGridView dataGridView; private System.Windows.Forms.BindingSource bindingSource; } -} \ No newline at end of file +} diff --git a/src/ServiceBusExplorer/Forms/CollectionEditorForm.cs b/src/ServiceBusExplorer/Forms/CollectionEditorForm.cs index 547567f1..206751b3 100644 --- a/src/ServiceBusExplorer/Forms/CollectionEditorForm.cs +++ b/src/ServiceBusExplorer/Forms/CollectionEditorForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -21,6 +21,7 @@ #region Using Directives +using ServiceBusExplorer.Helpers; using System; using System.Drawing; using System.Linq; @@ -43,6 +44,7 @@ public partial class CollectionEditorForm : Form public CollectionEditorForm(string text, string groupTitle, object value) { InitializeComponent(); + ThemeManager.Apply(this); Text = text; Value = value; grouperCaption.GroupTitle = string.IsNullOrWhiteSpace(groupTitle) ? DefaultLabel : groupTitle; @@ -193,3 +195,4 @@ private void dataGridView_DataError(object sender, DataGridViewDataErrorEventArg #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/ConnectForm.cs b/src/ServiceBusExplorer/Forms/ConnectForm.cs index 6d141e37..c7b59352 100644 --- a/src/ServiceBusExplorer/Forms/ConnectForm.cs +++ b/src/ServiceBusExplorer/Forms/ConnectForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team @@ -106,6 +106,7 @@ public partial class ConnectForm : Form public ConnectForm(ServiceBusHelper serviceBusHelper, ConfigFileUse configFileUse) { InitializeComponent(); + ThemeManager.Apply(this); this.configFileUse = configFileUse; SetConfigFileUseLabelText(lblConfigFileUse); @@ -765,3 +766,4 @@ private void btnDelete_Click(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/ConnectForm.designer.cs b/src/ServiceBusExplorer/Forms/ConnectForm.designer.cs index 3d4c0086..03c41209 100644 --- a/src/ServiceBusExplorer/Forms/ConnectForm.designer.cs +++ b/src/ServiceBusExplorer/Forms/ConnectForm.designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -109,10 +109,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(616, 443); this.btnOk.Name = "btnOk"; @@ -127,10 +127,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(696, 443); this.btnCancel.Name = "btnCancel"; @@ -145,14 +145,14 @@ private void InitializeComponent() // btnClearSubscriptionFilterExpression // this.btnClearSubscriptionFilterExpression.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnClearSubscriptionFilterExpression.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnClearSubscriptionFilterExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnClearSubscriptionFilterExpression.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.btnClearSubscriptionFilterExpression.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearSubscriptionFilterExpression.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearSubscriptionFilterExpression.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClearSubscriptionFilterExpression.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClearSubscriptionFilterExpression.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClearSubscriptionFilterExpression.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClearSubscriptionFilterExpression.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClearSubscriptionFilterExpression.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); - this.btnClearSubscriptionFilterExpression.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(92)))), ((int)(((byte)(125)))), ((int)(((byte)(150))))); + this.btnClearSubscriptionFilterExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClearSubscriptionFilterExpression.Location = new System.Drawing.Point(328, 190); this.btnClearSubscriptionFilterExpression.Name = "btnClearSubscriptionFilterExpression"; this.btnClearSubscriptionFilterExpression.Size = new System.Drawing.Size(24, 21); @@ -168,14 +168,14 @@ private void InitializeComponent() // btnClearTopicFilterExpression // this.btnClearTopicFilterExpression.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnClearTopicFilterExpression.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnClearTopicFilterExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnClearTopicFilterExpression.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.btnClearTopicFilterExpression.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearTopicFilterExpression.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearTopicFilterExpression.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClearTopicFilterExpression.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClearTopicFilterExpression.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClearTopicFilterExpression.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClearTopicFilterExpression.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClearTopicFilterExpression.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); - this.btnClearTopicFilterExpression.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(92)))), ((int)(((byte)(125)))), ((int)(((byte)(150))))); + this.btnClearTopicFilterExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClearTopicFilterExpression.Location = new System.Drawing.Point(328, 142); this.btnClearTopicFilterExpression.Name = "btnClearTopicFilterExpression"; this.btnClearTopicFilterExpression.Size = new System.Drawing.Size(24, 21); @@ -191,14 +191,14 @@ private void InitializeComponent() // btnClearQueueFilterExpression // this.btnClearQueueFilterExpression.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnClearQueueFilterExpression.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnClearQueueFilterExpression.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnClearQueueFilterExpression.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.btnClearQueueFilterExpression.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearQueueFilterExpression.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClearQueueFilterExpression.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClearQueueFilterExpression.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClearQueueFilterExpression.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClearQueueFilterExpression.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClearQueueFilterExpression.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClearQueueFilterExpression.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); - this.btnClearQueueFilterExpression.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(92)))), ((int)(((byte)(125)))), ((int)(((byte)(150))))); + this.btnClearQueueFilterExpression.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClearQueueFilterExpression.Location = new System.Drawing.Point(328, 94); this.btnClearQueueFilterExpression.Name = "btnClearQueueFilterExpression"; this.btnClearQueueFilterExpression.Size = new System.Drawing.Size(24, 21); @@ -214,10 +214,10 @@ private void InitializeComponent() // btnOpenSubscriptionFilterForm // this.btnOpenSubscriptionFilterForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenSubscriptionFilterForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenSubscriptionFilterForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenSubscriptionFilterForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenSubscriptionFilterForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenSubscriptionFilterForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenSubscriptionFilterForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenSubscriptionFilterForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenSubscriptionFilterForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenSubscriptionFilterForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenSubscriptionFilterForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenSubscriptionFilterForm.Location = new System.Drawing.Point(296, 190); @@ -246,10 +246,10 @@ private void InitializeComponent() // btnOpenTopicFilterForm // this.btnOpenTopicFilterForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenTopicFilterForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenTopicFilterForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenTopicFilterForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenTopicFilterForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenTopicFilterForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenTopicFilterForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenTopicFilterForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenTopicFilterForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenTopicFilterForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenTopicFilterForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenTopicFilterForm.Location = new System.Drawing.Point(296, 142); @@ -267,10 +267,10 @@ private void InitializeComponent() // btnOpenQueueFilterForm // this.btnOpenQueueFilterForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenQueueFilterForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenQueueFilterForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenQueueFilterForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenQueueFilterForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenQueueFilterForm.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenQueueFilterForm.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenQueueFilterForm.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenQueueFilterForm.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenQueueFilterForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenQueueFilterForm.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenQueueFilterForm.Location = new System.Drawing.Point(296, 94); @@ -371,10 +371,10 @@ private void InitializeComponent() // btnSave // this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSave.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSave.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnSave.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnSave.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnSave.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSave.Location = new System.Drawing.Point(536, 443); this.btnSave.Name = "btnSave"; @@ -390,10 +390,10 @@ private void InitializeComponent() // btnRename // this.btnRename.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnRename.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnRename.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRename.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnRename.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnRename.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnRename.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnRename.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnRename.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnRename.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnRename.Location = new System.Drawing.Point(16, 443); this.btnRename.Name = "btnRename"; @@ -407,10 +407,10 @@ private void InitializeComponent() // btnDelete // this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnDelete.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnDelete.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnDelete.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnDelete.Location = new System.Drawing.Point(94, 443); this.btnDelete.Name = "btnDelete"; @@ -423,15 +423,15 @@ private void InitializeComponent() // // grouperConfigFileUse // - this.grouperConfigFileUse.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperConfigFileUse.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperConfigFileUse.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperConfigFileUse.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperConfigFileUse.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperConfigFileUse.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperConfigFileUse.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperConfigFileUse.BorderThickness = 1F; this.grouperConfigFileUse.Controls.Add(this.lblConfigFileUse); - this.grouperConfigFileUse.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperConfigFileUse.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperConfigFileUse.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperConfigFileUse.ForeColor = System.Drawing.Color.White; + this.grouperConfigFileUse.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperConfigFileUse.GroupImage = null; this.grouperConfigFileUse.GroupTitle = "Configuration File for Connections and Settings"; this.grouperConfigFileUse.Location = new System.Drawing.Point(16, 344); @@ -458,10 +458,10 @@ private void InitializeComponent() // // grouperFilters // - this.grouperFilters.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperFilters.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperFilters.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperFilters.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperFilters.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperFilters.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperFilters.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperFilters.BorderThickness = 1F; this.grouperFilters.Controls.Add(this.lblSelectedEntities); this.grouperFilters.Controls.Add(this.cboSelectedEntities); @@ -477,9 +477,9 @@ private void InitializeComponent() this.grouperFilters.Controls.Add(this.lblQueueFilterExpression); this.grouperFilters.Controls.Add(this.txtTopicFilterExpression); this.grouperFilters.Controls.Add(this.lblTopicFilterExpression); - this.grouperFilters.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperFilters.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperFilters.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperFilters.ForeColor = System.Drawing.Color.White; + this.grouperFilters.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperFilters.GroupImage = null; this.grouperFilters.GroupTitle = "Filter Expressions"; this.grouperFilters.Location = new System.Drawing.Point(16, 104); @@ -549,10 +549,10 @@ private void InitializeComponent() // // grouperServiceBusNamespaceSettings // - this.grouperServiceBusNamespaceSettings.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperServiceBusNamespaceSettings.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperServiceBusNamespaceSettings.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperServiceBusNamespaceSettings.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperServiceBusNamespaceSettings.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperServiceBusNamespaceSettings.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperServiceBusNamespaceSettings.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperServiceBusNamespaceSettings.BorderThickness = 1F; this.grouperServiceBusNamespaceSettings.Controls.Add(this.useAmqpWebSocketsCheckBox); this.grouperServiceBusNamespaceSettings.Controls.Add(this.lblNewSdkTransportType); @@ -570,9 +570,9 @@ private void InitializeComponent() this.grouperServiceBusNamespaceSettings.Controls.Add(this.lblNamespace); this.grouperServiceBusNamespaceSettings.Controls.Add(this.txtEntityPath); this.grouperServiceBusNamespaceSettings.Controls.Add(this.lblEntityPath); - this.grouperServiceBusNamespaceSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperServiceBusNamespaceSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperServiceBusNamespaceSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperServiceBusNamespaceSettings.ForeColor = System.Drawing.Color.White; + this.grouperServiceBusNamespaceSettings.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperServiceBusNamespaceSettings.GroupImage = null; this.grouperServiceBusNamespaceSettings.GroupTitle = "Connection Settings"; this.grouperServiceBusNamespaceSettings.Location = new System.Drawing.Point(400, 24); @@ -712,15 +712,15 @@ private void InitializeComponent() // // grouperServiceBusNamespaces // - this.grouperServiceBusNamespaces.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperServiceBusNamespaces.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperServiceBusNamespaces.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperServiceBusNamespaces.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperServiceBusNamespaces.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperServiceBusNamespaces.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperServiceBusNamespaces.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperServiceBusNamespaces.BorderThickness = 1F; this.grouperServiceBusNamespaces.Controls.Add(this.cboServiceBusNamespace); - this.grouperServiceBusNamespaces.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperServiceBusNamespaces.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperServiceBusNamespaces.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperServiceBusNamespaces.ForeColor = System.Drawing.Color.White; + this.grouperServiceBusNamespaces.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperServiceBusNamespaces.GroupImage = null; this.grouperServiceBusNamespaces.GroupTitle = "Service Bus Namespaces"; this.grouperServiceBusNamespaces.Location = new System.Drawing.Point(16, 24); @@ -739,7 +739,7 @@ private void InitializeComponent() // this.cboServiceBusNamespace.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.cboServiceBusNamespace.BackColor = System.Drawing.SystemColors.Window; + this.cboServiceBusNamespace.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.cboServiceBusNamespace.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboServiceBusNamespace.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.cboServiceBusNamespace.FormattingEnabled = true; @@ -753,7 +753,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(784, 477); this.Controls.Add(this.grouperConfigFileUse); this.Controls.Add(this.btnDelete); @@ -833,3 +833,4 @@ private void InitializeComponent() private System.Windows.Forms.CheckBox useAmqpWebSocketsCheckBox; } } + diff --git a/src/ServiceBusExplorer/Forms/ContainerForm.Designer.cs b/src/ServiceBusExplorer/Forms/ContainerForm.Designer.cs index 2fab7980..9b97424d 100644 --- a/src/ServiceBusExplorer/Forms/ContainerForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/ContainerForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -126,11 +126,11 @@ private void InitializeComponent() // panelMain // this.panelMain.AutoScroll = true; - this.panelMain.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.panelMain.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.panelMain.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelMain.ForeColor = System.Drawing.SystemColors.Window; - this.panelMain.HeaderColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(205)))), ((int)(((byte)(219))))); - this.panelMain.HeaderColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.panelMain.ForeColor = System.Drawing.SystemColors.ControlText; + this.panelMain.HeaderColor1 = System.Drawing.Color.FromArgb(42, 42, 42); + this.panelMain.HeaderColor2 = System.Drawing.Color.FromArgb(33, 33, 33); this.panelMain.HeaderFont = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold); this.panelMain.HeaderHeight = 24; this.panelMain.HeaderText = "Entity"; @@ -146,12 +146,12 @@ private void InitializeComponent() // panelLog // this.panelLog.AutoScroll = true; - this.panelLog.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.panelLog.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.panelLog.Controls.Add(this.lstLog); this.panelLog.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelLog.ForeColor = System.Drawing.SystemColors.Window; - this.panelLog.HeaderColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(205)))), ((int)(((byte)(219))))); - this.panelLog.HeaderColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.panelLog.ForeColor = System.Drawing.SystemColors.ControlText; + this.panelLog.HeaderColor1 = System.Drawing.Color.FromArgb(42, 42, 42); + this.panelLog.HeaderColor2 = System.Drawing.Color.FromArgb(33, 33, 33); this.panelLog.HeaderFont = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold); this.panelLog.HeaderHeight = 24; this.panelLog.HeaderText = "Log"; @@ -445,7 +445,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(1040, 753); this.Controls.Add(this.logoPictureBox); this.Controls.Add(this.mainMenuStrip); @@ -511,9 +511,5 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripSeparator toolStripSeparator29; private System.Windows.Forms.ToolStripMenuItem saveAllToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem saveSelectedToolStripMenuItem; - - - - } -} \ No newline at end of file +} diff --git a/src/ServiceBusExplorer/Forms/ContainerForm.cs b/src/ServiceBusExplorer/Forms/ContainerForm.cs index a025d614..11be4055 100644 --- a/src/ServiceBusExplorer/Forms/ContainerForm.cs +++ b/src/ServiceBusExplorer/Forms/ContainerForm.cs @@ -1,4 +1,5 @@ -#region Copyright +#region Copyright + //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -17,6 +18,7 @@ // KIND, EITHER EXPRESS OR IMPLIED. SEE THE LICENSE FOR THE SPECIFIC LANGUAGE GOVERNING // PERMISSIONS AND LIMITATIONS UNDER THE LICENSE. //======================================================================================= + #endregion #region Using Directives @@ -43,12 +45,13 @@ namespace ServiceBusExplorer.Forms { using Enums; - using ServiceBusExplorer.UIHelpers; + using UIHelpers; using ServiceBusExplorer.Utilities.Helpers; public sealed partial class ContainerForm : Form { #region Private Constants + //*************************** // Formats //*************************** @@ -93,9 +96,11 @@ public sealed partial class ContainerForm : Form //*************************** private const int ControlMinWidth = 816; private const int ControlMinHeight = 345; + #endregion #region Private Fields + private readonly MainForm mainForm; private readonly TestQueueControl testQueueControl; private readonly TestTopicControl testTopicControl; @@ -106,16 +111,20 @@ public sealed partial class ContainerForm : Form private readonly int mainSplitterDistance; private BlockingCollection logCollection = new BlockingCollection(); private CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(); + // ReSharper disable once NotAccessedField.Local private Task logTask; + #endregion #region Public Constructors + public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, FormTypeEnum formType, QueueDescription queueDescription) { try { InitializeComponent(); + ThemeManager.Apply(this); Task.Factory.StartNew(AsyncWriteToLog).ContinueWith(t => { if (t.IsFaulted && t.Exception != null) @@ -148,11 +157,11 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, FormT else { testQueueControl = new TestQueueControl(mainForm, WriteToLog, StopLog, StartLog, new ServiceBusHelper(WriteToLog, serviceBusHelper), queueDescription) - { - Location = new Point(1, panelMain.HeaderHeight + 1), - Size = new Size(panelMain.Size.Width - 3, panelMain.Size.Height - 26), - Anchor = AnchorStyles.Bottom | AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right - }; + { + Location = new Point(1, panelMain.HeaderHeight + 1), + Size = new Size(panelMain.Size.Width - 3, panelMain.Size.Height - 26), + Anchor = AnchorStyles.Bottom | AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right + }; if (formType == FormTypeEnum.Send) @@ -162,11 +171,11 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, FormT testQueueControl.senderEnabledCheckBox.Checked = true; testQueueControl.senderEnabledCheckBox.Visible = false; testQueueControl.grouperMessage.Location = new Point(testQueueControl.grouperMessage.Location.X, 8); - testQueueControl.grouperMessage.Size = new Size(testQueueControl.grouperMessage.Size.Width, - testQueueControl.grouperMessage.Size.Height + 16); + testQueueControl.grouperMessage.Size = new Size(testQueueControl.grouperMessage.Size.Width, + testQueueControl.grouperMessage.Size.Height + 16); testQueueControl.grouperSender.Location = new Point(testQueueControl.grouperSender.Location.X, 8); testQueueControl.grouperSender.Size = new Size(testQueueControl.grouperSender.Size.Width, - testQueueControl.grouperSender.Size.Height + 16); + testQueueControl.grouperSender.Size.Height + 16); Text = string.Format(SendMessagesFormat, queueDescription.Path); } else @@ -184,6 +193,7 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, FormT panelMain.HeaderText = string.Format(HeaderTextTestQueueFormat, queueDescription.Path); panelMain.Controls.Add(testQueueControl); } + SetStyle(ControlStyles.ResizeRedraw, true); } finally @@ -198,6 +208,7 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, FormT try { InitializeComponent(); + ThemeManager.Apply(this); Task.Factory.StartNew(AsyncWriteToLog).ContinueWith(t => { if (t.IsFaulted && t.Exception != null) @@ -213,11 +224,11 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, FormT panelMain.BackColor = SystemColors.GradientInactiveCaption; testTopicControl = new TestTopicControl(mainForm, WriteToLog, StopLog, StartLog, new ServiceBusHelper(WriteToLog, serviceBusHelper), topicDescription, subscriptionList) - { - Location = new Point(1, panelMain.HeaderHeight + 1), - Size = new Size(panelMain.Size.Width - 3, panelMain.Size.Height - 26), - Anchor = AnchorStyles.Bottom | AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right - }; + { + Location = new Point(1, panelMain.HeaderHeight + 1), + Size = new Size(panelMain.Size.Width - 3, panelMain.Size.Height - 26), + Anchor = AnchorStyles.Bottom | AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right + }; if (formType == FormTypeEnum.Send) @@ -228,10 +239,10 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, FormT testTopicControl.senderEnabledCheckBox.Visible = false; testTopicControl.grouperMessage.Location = new Point(testTopicControl.grouperMessage.Location.X, 8); testTopicControl.grouperMessage.Size = new Size(testTopicControl.grouperMessage.Size.Width, - testTopicControl.grouperMessage.Size.Height + 16); + testTopicControl.grouperMessage.Size.Height + 16); testTopicControl.grouperSender.Location = new Point(testTopicControl.grouperSender.Location.X, 8); testTopicControl.grouperSender.Size = new Size(testTopicControl.grouperSender.Size.Width, - testTopicControl.grouperSender.Size.Height + 16); + testTopicControl.grouperSender.Size.Height + 16); Text = string.Format(SendMessagesFormat, topicDescription.Path); } else @@ -262,6 +273,7 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, FormT try { InitializeComponent(); + ThemeManager.Apply(this); Task.Factory.StartNew(AsyncWriteToLog).ContinueWith(t => { if (t.IsFaulted && t.Exception != null) @@ -309,6 +321,7 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, FormT panelMain.HeaderText = string.Format(HeaderTextTestSubscriptionFormat, subscriptionWrapper.SubscriptionDescription.Name); panelMain.Controls.Add(testSubscriptionControl); } + SetStyle(ControlStyles.ResizeRedraw, true); } finally @@ -323,6 +336,7 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, Event try { InitializeComponent(); + ThemeManager.Apply(this); Task.Factory.StartNew(AsyncWriteToLog).ContinueWith(t => { if (t.IsFaulted && t.Exception != null) @@ -355,11 +369,11 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, Event testEventHubControl.btnCancel.Click += BtnCancelOnClick; testEventHubControl.Focus(); - panelMain.HeaderText = partitionDescription == null ? - string.Format(HeaderTextTestEventHubFormat, eventHubDescription.Path) : - string.Format(HeaderTextTestEventHubPartitionFormat, - partitionDescription.PartitionId, - eventHubDescription.Path); + panelMain.HeaderText = partitionDescription == null + ? string.Format(HeaderTextTestEventHubFormat, eventHubDescription.Path) + : string.Format(HeaderTextTestEventHubPartitionFormat, + partitionDescription.PartitionId, + eventHubDescription.Path); panelMain.Controls.Add(testEventHubControl); SetStyle(ControlStyles.ResizeRedraw, true); @@ -380,7 +394,9 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, Consu { return; } + InitializeComponent(); + ThemeManager.Apply(this); Task.Factory.StartNew(AsyncWriteToLog).ContinueWith(t => { if (t.IsFaulted && t.Exception != null) @@ -411,7 +427,8 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, Consu { Text = string.Format(ConsumerGroupListenerFormat, consumerGroupDescription.EventHubPath, consumerGroupDescription.Name); panelMain.HeaderText = string.Format(HeaderTextConsumerGroupListenerFormat, consumerGroupDescription.EventHubPath, consumerGroupDescription.Name); - } + } + partitionListenerControl.Focus(); panelMain.Controls.Add(partitionListenerControl); SetStyle(ControlStyles.ResizeRedraw, true); @@ -431,7 +448,9 @@ public ContainerForm(MainForm mainForm, string connectionString, string hubName, { return; } + InitializeComponent(); + ThemeManager.Apply(this); Task.Factory.StartNew(AsyncWriteToLog).ContinueWith(t => { if (t.IsFaulted && t.Exception != null) @@ -465,6 +484,7 @@ public ContainerForm(MainForm mainForm, string connectionString, string hubName, Text = string.Format(ConsumerGroupListenerFormat, consumerGroup, hubName); panelMain.HeaderText = string.Format(HeaderTextConsumerGroupListenerFormat, hubName, consumerGroup); } + partitionListenerControl.Focus(); panelMain.Controls.Add(partitionListenerControl); SetStyle(ControlStyles.ResizeRedraw, true); @@ -481,6 +501,7 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, Relay try { InitializeComponent(); + ThemeManager.Apply(this); Task.Factory.StartNew(AsyncWriteToLog).ContinueWith(t => { if (t.IsFaulted && t.Exception != null) @@ -520,38 +541,47 @@ public ContainerForm(ServiceBusHelper serviceBusHelper, MainForm mainForm, Relay ResumeLayout(); } } + #endregion #region Public Methods + public void Clear() { lstLog.Items.Clear(); } + #endregion #region Private Methods + private async void BtnCancelOnClick(object sender, EventArgs eventArgs) { if (testQueueControl != null) { await testQueueControl.CancelActions(); } + if (testTopicControl != null) { await testTopicControl.CancelActions(); } + if (testSubscriptionControl != null) { await testSubscriptionControl.CancelActions(); } + if (testEventHubControl != null) { await testEventHubControl.CancelActions(); } + if (testRelayControl != null) { await testRelayControl.CancelActions(); } + Close(); } @@ -568,6 +598,7 @@ private void SetControlSize(Control control) control.SuspendDrawing(); ok = true; } + var width = panelMain.Width - 4; var height = panelMain.Height - 26; control.Width = width < ControlMinWidth ? ControlMinWidth : width; @@ -629,6 +660,7 @@ private void StartLog() { logCollection.Dispose(); } + logCollection = new BlockingCollection(); cancellationTokenSource = new CancellationTokenSource(); logTask = Task.Factory.StartNew(AsyncWriteToLog).ContinueWith(t => @@ -652,11 +684,13 @@ private async void AsyncWriteToLog() { continue; } + count = (count + 1) % 10; if (count == 0) { await Task.Delay(TimeSpan.FromMilliseconds(5)); } + if (InvokeRequired) { Invoke(new Action(InternalWriteToLog), new object[] { message }); @@ -671,7 +705,7 @@ private async void AsyncWriteToLog() catch { } - + // ReSharper disable FunctionNeverReturns } // ReSharper restore FunctionNeverReturns @@ -710,10 +744,10 @@ private void InternalWriteToLog(string message) if (i == 0) { var line = string.Format(DateFormat, - objNow.Hour, - objNow.Minute, - objNow.Second, - lines[i]); + objNow.Hour, + objNow.Minute, + objNow.Second, + lines[i]); lstLog.Items.Add(line); } else @@ -721,6 +755,7 @@ private void InternalWriteToLog(string message) lstLog.Items.Add(space + lines[i]); } } + lstLog.SelectedIndex = lstLog.Items.Count - 1; lstLog.SelectedIndex = -1; } @@ -734,6 +769,7 @@ private void ContainerForm_FormClosing(object sender, FormClosingEventArgs e) { userControl.Dispose(); } + if (logTraceListener != null && Trace.Listeners.Contains(logTraceListener)) { @@ -747,6 +783,7 @@ private void HandleException(Exception ex) { return; } + WriteToLog(string.Format(CultureInfo.CurrentCulture, ExceptionFormat, ex.Message)); if (ex.InnerException != null && !string.IsNullOrWhiteSpace(ex.InnerException.Message)) { @@ -792,7 +829,7 @@ private void saveLogToolStripMenuItem_Click(object sender, EventArgs e) { try { - SaveLog(true); + SaveLog(true); } catch (Exception ex) { @@ -841,11 +878,13 @@ private void lstLog_KeyDown(object sender, KeyEventArgs e) { return; } + var builder = new StringBuilder(); foreach (var item in lstLog.SelectedItems) { builder.AppendLine(item.ToString()); } + if (builder.Length > 0) { Clipboard.SetText(builder.ToString()); @@ -866,6 +905,7 @@ private void copyAllToolStripMenuItem_Click(object sender, EventArgs e) { builder.AppendLine(item.ToString()); } + if (builder.Length > 0) { Clipboard.SetText(builder.ToString()); @@ -886,6 +926,7 @@ private void copySelectedToolStripMenuItem_Click(object sender, EventArgs e) { builder.AppendLine(item.ToString()); } + if (builder.Length > 0) { Clipboard.SetText(builder.ToString()); @@ -913,6 +954,7 @@ private void clearSelectedToolStripMenuItem_Click(object sender, EventArgs e) { lstLog.Items.Remove(item); } + if (builder.Length > 0) { Clipboard.SetText(builder.ToString()); @@ -946,6 +988,7 @@ private void SaveLog(bool all) { return; } + using (var writer = new StreamWriter(saveFileDialog.FileName)) { if (all) @@ -969,6 +1012,7 @@ private void SaveLog(bool all) HandleException(ex); } } - #endregion + + #endregion } } diff --git a/src/ServiceBusExplorer/Forms/CreateEventGridSubscriptionForm.Designer.cs b/src/ServiceBusExplorer/Forms/CreateEventGridSubscriptionForm.Designer.cs index 4b9fb4e2..1051735b 100644 --- a/src/ServiceBusExplorer/Forms/CreateEventGridSubscriptionForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/CreateEventGridSubscriptionForm.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Forms +namespace ServiceBusExplorer.Forms { partial class CreateEventGridSubscriptionForm { @@ -51,10 +51,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(815, 645); this.btnOk.Margin = new System.Windows.Forms.Padding(4); @@ -68,11 +68,11 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(941, 645); this.btnCancel.Margin = new System.Windows.Forms.Padding(4); @@ -88,10 +88,10 @@ private void InitializeComponent() this.grouperMessages.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.grouperMessages.BackgroundColor = System.Drawing.Color.White; - this.grouperMessages.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessages.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessages.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessages.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessages.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessages.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessages.BorderThickness = 1F; this.grouperMessages.Controls.Add(this.btnAddNewFilter); this.grouperMessages.Controls.Add(this.label2); @@ -106,9 +106,9 @@ private void InitializeComponent() this.grouperMessages.Controls.Add(this.label1); this.grouperMessages.Controls.Add(this.lblSubscriptionName); this.grouperMessages.Controls.Add(this.txtSubscriptionName); - this.grouperMessages.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessages.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessages.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessages.ForeColor = System.Drawing.Color.White; + this.grouperMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessages.GroupImage = null; this.grouperMessages.GroupTitle = "Create Subscription"; this.grouperMessages.Location = new System.Drawing.Point(13, 22); @@ -128,11 +128,11 @@ private void InitializeComponent() this.btnAddNewFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.btnAddNewFilter.BackColor = System.Drawing.Color.White; this.btnAddNewFilter.Enabled = false; - this.btnAddNewFilter.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnAddNewFilter.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnAddNewFilter.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnAddNewFilter.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnAddNewFilter.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnAddNewFilter.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnAddNewFilter.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnAddNewFilter.ForeColor = System.Drawing.Color.Black; + this.btnAddNewFilter.ForeColor = System.Drawing.SystemColors.ControlText; this.btnAddNewFilter.Location = new System.Drawing.Point(33, 490); this.btnAddNewFilter.Margin = new System.Windows.Forms.Padding(4); this.btnAddNewFilter.Name = "btnAddNewFilter"; @@ -296,7 +296,7 @@ private void InitializeComponent() this.AcceptButton = this.btnOk; this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(1085, 704); this.Controls.Add(this.btnCancel); @@ -335,3 +335,4 @@ private void InitializeComponent() private System.Windows.Forms.Button btnAddNewFilter; } } + diff --git a/src/ServiceBusExplorer/Forms/CreateEventGridSubscriptionForm.cs b/src/ServiceBusExplorer/Forms/CreateEventGridSubscriptionForm.cs index 1506003b..f0894708 100644 --- a/src/ServiceBusExplorer/Forms/CreateEventGridSubscriptionForm.cs +++ b/src/ServiceBusExplorer/Forms/CreateEventGridSubscriptionForm.cs @@ -1,4 +1,4 @@ -using Azure.ResourceManager.EventGrid.Models; +using Azure.ResourceManager.EventGrid.Models; using FastColoredTextBoxNS; using Microsoft.Azure.Amqp.Framing; using Microsoft.ServiceBus.Messaging; @@ -68,6 +68,7 @@ public CreateEventGridSubscriptionForm(WriteToLogDelegate writeToLog) { this.writeToLog = writeToLog; InitializeComponent(); + ThemeManager.Apply(this); } private void btnOk_Click(object sender, EventArgs e) @@ -351,3 +352,4 @@ private void textBoxFilterKey_TextChanged(object sender, EventArgs e) } } } + diff --git a/src/ServiceBusExplorer/Forms/CreateEventGridTopicForm.Designer.cs b/src/ServiceBusExplorer/Forms/CreateEventGridTopicForm.Designer.cs index 0c3045cc..4eca5c5e 100644 --- a/src/ServiceBusExplorer/Forms/CreateEventGridTopicForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/CreateEventGridTopicForm.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Forms +namespace ServiceBusExplorer.Forms { partial class CreateEventGridTopicForm { @@ -42,16 +42,16 @@ private void InitializeComponent() this.grouperMessages.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.grouperMessages.BackgroundColor = System.Drawing.Color.White; - this.grouperMessages.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessages.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessages.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessages.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessages.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessages.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessages.BorderThickness = 1F; this.grouperMessages.Controls.Add(this.lblTopicName); this.grouperMessages.Controls.Add(this.txtTopicName); - this.grouperMessages.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessages.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessages.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessages.ForeColor = System.Drawing.Color.White; + this.grouperMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessages.GroupImage = null; this.grouperMessages.GroupTitle = "Create Topic"; this.grouperMessages.Location = new System.Drawing.Point(27, 22); @@ -90,10 +90,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(165, 192); this.btnOk.Margin = new System.Windows.Forms.Padding(4); @@ -107,11 +107,11 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(291, 192); this.btnCancel.Margin = new System.Windows.Forms.Padding(4); @@ -127,7 +127,7 @@ private void InitializeComponent() this.AcceptButton = this.btnOk; this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(423, 254); this.Controls.Add(this.btnCancel); @@ -155,3 +155,4 @@ private void InitializeComponent() private System.Windows.Forms.Button btnOk; } } + diff --git a/src/ServiceBusExplorer/Forms/CreateEventGridTopicForm.cs b/src/ServiceBusExplorer/Forms/CreateEventGridTopicForm.cs index e28340f4..9297315e 100644 --- a/src/ServiceBusExplorer/Forms/CreateEventGridTopicForm.cs +++ b/src/ServiceBusExplorer/Forms/CreateEventGridTopicForm.cs @@ -1,4 +1,5 @@ -using ServiceBusExplorer.Utilities.Helpers; +using ServiceBusExplorer.Helpers; +using ServiceBusExplorer.Utilities.Helpers; using System; using System.Collections.Generic; using System.ComponentModel; @@ -30,6 +31,7 @@ public CreateEventGridTopicForm(WriteToLogDelegate writeToLog) { this.writeToLog = writeToLog; InitializeComponent(); + ThemeManager.Apply(this); } private void btnOk_Click(object sender, EventArgs e) @@ -63,3 +65,4 @@ private void HandleException(Exception ex) } } } + diff --git a/src/ServiceBusExplorer/Forms/DateTimeForm.Designer.cs b/src/ServiceBusExplorer/Forms/DateTimeForm.Designer.cs index 2db1b0ae..9217a975 100644 --- a/src/ServiceBusExplorer/Forms/DateTimeForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/DateTimeForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -64,10 +64,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(96, 104); this.btnOk.Name = "btnOk"; @@ -82,10 +82,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(176, 104); this.btnCancel.Name = "btnCancel"; @@ -102,15 +102,15 @@ private void InitializeComponent() this.grouperCaption.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.grouperCaption.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperCaption.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperCaption.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperCaption.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperCaption.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperCaption.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCaption.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperCaption.BorderThickness = 1F; this.grouperCaption.Controls.Add(this.dateTimePicker); - this.grouperCaption.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCaption.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperCaption.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperCaption.ForeColor = System.Drawing.Color.White; + this.grouperCaption.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperCaption.GroupImage = null; this.grouperCaption.GroupTitle = "Last Update Time"; this.grouperCaption.Location = new System.Drawing.Point(16, 16); @@ -141,7 +141,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(264, 137); this.Controls.Add(this.grouperCaption); this.Controls.Add(this.btnCancel); @@ -164,3 +164,4 @@ private void InitializeComponent() private System.Windows.Forms.DateTimePicker dateTimePicker; } } + diff --git a/src/ServiceBusExplorer/Forms/DateTimeForm.cs b/src/ServiceBusExplorer/Forms/DateTimeForm.cs index 56a6565f..a1e1419e 100644 --- a/src/ServiceBusExplorer/Forms/DateTimeForm.cs +++ b/src/ServiceBusExplorer/Forms/DateTimeForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -21,6 +21,7 @@ #region Using Directives +using ServiceBusExplorer.Helpers; using System; using System.Drawing; using System.Windows.Forms; @@ -35,6 +36,7 @@ public partial class DateTimeForm : Form public DateTimeForm() { InitializeComponent(); + ThemeManager.Apply(this); } #endregion @@ -83,3 +85,4 @@ private void button_MouseLeave(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/DateTimeRangeForm.Designer.cs b/src/ServiceBusExplorer/Forms/DateTimeRangeForm.Designer.cs index b8581307..fcba8659 100644 --- a/src/ServiceBusExplorer/Forms/DateTimeRangeForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/DateTimeRangeForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -67,10 +67,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(96, 204); this.btnOk.Name = "btnOk"; @@ -85,10 +85,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(176, 204); this.btnCancel.Name = "btnCancel"; @@ -104,15 +104,15 @@ private void InitializeComponent() // this.grpFromDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grpFromDateTime.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grpFromDateTime.BackgroundGradientColor = System.Drawing.Color.White; + this.grpFromDateTime.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grpFromDateTime.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grpFromDateTime.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grpFromDateTime.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grpFromDateTime.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grpFromDateTime.BorderThickness = 1F; this.grpFromDateTime.Controls.Add(this.dateFromTimePicker); - this.grpFromDateTime.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grpFromDateTime.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grpFromDateTime.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grpFromDateTime.ForeColor = System.Drawing.Color.White; + this.grpFromDateTime.ForeColor = System.Drawing.SystemColors.ControlText; this.grpFromDateTime.GroupImage = null; this.grpFromDateTime.GroupTitle = "From Date Time"; this.grpFromDateTime.Location = new System.Drawing.Point(16, 16); @@ -143,15 +143,15 @@ private void InitializeComponent() // this.grpToDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grpToDateTime.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grpToDateTime.BackgroundGradientColor = System.Drawing.Color.White; + this.grpToDateTime.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grpToDateTime.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grpToDateTime.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grpToDateTime.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grpToDateTime.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grpToDateTime.BorderThickness = 1F; this.grpToDateTime.Controls.Add(this.dateToTimePicker); - this.grpToDateTime.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grpToDateTime.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grpToDateTime.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grpToDateTime.ForeColor = System.Drawing.Color.White; + this.grpToDateTime.ForeColor = System.Drawing.SystemColors.ControlText; this.grpToDateTime.GroupImage = null; this.grpToDateTime.GroupTitle = "To Date Time"; this.grpToDateTime.Location = new System.Drawing.Point(16, 102); @@ -182,7 +182,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(264, 237); this.Controls.Add(this.grpToDateTime); this.Controls.Add(this.grpFromDateTime); @@ -211,3 +211,4 @@ private void InitializeComponent() private System.Windows.Forms.DateTimePicker dateToTimePicker; } } + diff --git a/src/ServiceBusExplorer/Forms/DateTimeRangeForm.cs b/src/ServiceBusExplorer/Forms/DateTimeRangeForm.cs index 5c2450d4..0a8d40e3 100644 --- a/src/ServiceBusExplorer/Forms/DateTimeRangeForm.cs +++ b/src/ServiceBusExplorer/Forms/DateTimeRangeForm.cs @@ -1,5 +1,6 @@ -#region Using Directives +#region Using Directives +using ServiceBusExplorer.Helpers; using System; using System.Drawing; using System.Windows.Forms; @@ -14,6 +15,7 @@ public partial class DateTimeRangeForm : Form public DateTimeRangeForm(DateTime? DateTimeFrom, DateTime? DateTimeTo) { InitializeComponent(); + ThemeManager.Apply(this); if (DateTimeFrom != null && DateTime.TryParse(DateTimeFrom.ToString(), out _)) { dateFromTimePicker.Checked = true; @@ -98,3 +100,4 @@ private void button_MouseLeave(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/DeleteForm.Designer.cs b/src/ServiceBusExplorer/Forms/DeleteForm.Designer.cs index 81b47a15..afa88a1c 100644 --- a/src/ServiceBusExplorer/Forms/DeleteForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/DeleteForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -66,10 +66,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(144, 72); this.btnOk.Name = "btnOk"; @@ -84,10 +84,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(224, 72); this.btnCancel.Name = "btnCancel"; @@ -103,7 +103,7 @@ private void InitializeComponent() // this.mainPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mainPanel.BackColor = System.Drawing.SystemColors.Window; + this.mainPanel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainPanel.Controls.Add(this.lblMessage); this.mainPanel.Controls.Add(this.pictureBox1); this.mainPanel.Location = new System.Drawing.Point(0, 0); @@ -155,7 +155,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(312, 108); this.Controls.Add(this.mainPanel); this.Controls.Add(this.btnCancel); @@ -188,3 +188,4 @@ private void InitializeComponent() private Controls.AccidentalDeletionPreventionCheckControl accidentalDeletionPreventionCheckControl; } } + diff --git a/src/ServiceBusExplorer/Forms/DeleteForm.cs b/src/ServiceBusExplorer/Forms/DeleteForm.cs index 0fa4bd7d..83ce962a 100644 --- a/src/ServiceBusExplorer/Forms/DeleteForm.cs +++ b/src/ServiceBusExplorer/Forms/DeleteForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -49,6 +49,7 @@ public partial class DeleteForm : Form public DeleteForm(string message) { InitializeComponent(); + ThemeManager.Apply(this); lblMessage.Text = string.Format(message); Width = lblMessage.Width + 88; } @@ -56,6 +57,7 @@ public DeleteForm(string message) public DeleteForm(string entityName, string entityType) { InitializeComponent(); + ThemeManager.Apply(this); lblMessage.Text = string.Format(MessageFormat, entityType ?? Unknown, entityName ?? Unknown); @@ -156,3 +158,4 @@ public static bool ShowAndWaitUserConfirmation(IWin32Window owner, string messag } } } + diff --git a/src/ServiceBusExplorer/Forms/EventDataForm.Designer.cs b/src/ServiceBusExplorer/Forms/EventDataForm.Designer.cs index ebacd6a0..51b00f6b 100644 --- a/src/ServiceBusExplorer/Forms/EventDataForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/EventDataForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -84,10 +84,10 @@ private void InitializeComponent() // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnClose.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClose.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClose.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClose.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClose.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClose.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClose.Location = new System.Drawing.Point(880, 464); this.btnClose.Name = "btnClose"; @@ -102,10 +102,10 @@ private void InitializeComponent() // btnSave // this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSave.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSave.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnSave.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnSave.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnSave.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSave.Location = new System.Drawing.Point(800, 464); this.btnSave.Name = "btnSave"; @@ -156,16 +156,16 @@ private void InitializeComponent() // // grouperMessageText // - this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageText.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageText.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageText.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageText.BorderThickness = 1F; this.grouperMessageText.Controls.Add(this.txtMessageText); - this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageText.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageText.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageText.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageText.ForeColor = System.Drawing.Color.White; + this.grouperMessageText.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageText.GroupImage = null; this.grouperMessageText.GroupTitle = "Event Text"; this.grouperMessageText.Location = new System.Drawing.Point(0, 0); @@ -216,16 +216,16 @@ private void InitializeComponent() // // grouperMessageCustomProperties // - this.grouperMessageCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageCustomProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageCustomProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageCustomProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageCustomProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageCustomProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageCustomProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageCustomProperties.BorderThickness = 1F; this.grouperMessageCustomProperties.Controls.Add(this.propertiesDataGridView); - this.grouperMessageCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageCustomProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageCustomProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageCustomProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageCustomProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageCustomProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageCustomProperties.GroupImage = null; this.grouperMessageCustomProperties.GroupTitle = "Event Custom Properties"; this.grouperMessageCustomProperties.Location = new System.Drawing.Point(0, 0); @@ -246,7 +246,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.propertiesDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.propertiesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.propertiesDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.propertiesDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.propertiesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.propertiesDataGridView.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); @@ -261,16 +261,16 @@ private void InitializeComponent() // // grouperMessageProperties // - this.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessageProperties.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessageProperties.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessageProperties.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessageProperties.BorderThickness = 1F; this.grouperMessageProperties.Controls.Add(this.messagePropertyGrid); - this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessageProperties.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessageProperties.Dock = System.Windows.Forms.DockStyle.Fill; this.grouperMessageProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessageProperties.ForeColor = System.Drawing.Color.White; + this.grouperMessageProperties.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessageProperties.GroupImage = null; this.grouperMessageProperties.GroupTitle = "Event System Properties"; this.grouperMessageProperties.Location = new System.Drawing.Point(0, 0); @@ -289,7 +289,7 @@ private void InitializeComponent() this.messagePropertyGrid.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.messagePropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.messagePropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.messagePropertyGrid.CategoryForeColor = System.Drawing.SystemColors.InactiveCaptionText; this.messagePropertyGrid.HelpVisible = false; this.messagePropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); @@ -303,7 +303,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(968, 497); this.Controls.Add(this.messagesSplitContainer); this.Controls.Add(this.btnSave); @@ -344,4 +344,4 @@ private void InitializeComponent() private System.Windows.Forms.SaveFileDialog saveFileDialog; private FastColoredTextBoxNS.FastColoredTextBox txtMessageText; } -} \ No newline at end of file +} diff --git a/src/ServiceBusExplorer/Forms/EventDataForm.cs b/src/ServiceBusExplorer/Forms/EventDataForm.cs index 833b528c..a4f711c9 100644 --- a/src/ServiceBusExplorer/Forms/EventDataForm.cs +++ b/src/ServiceBusExplorer/Forms/EventDataForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -83,6 +83,7 @@ public EventDataForm(EventDataMessage eventData, ServiceBusHelper serviceBusHelp this.serviceBusHelper = serviceBusHelper; this.writeToLog = writeToLog; InitializeComponent(); + ThemeManager.Apply(this); messagePropertyGrid.SelectedObject = eventData; var messageText = serviceBusHelper.GetMessageText(eventData, out _); @@ -296,3 +297,4 @@ private void propertiesDataGridView_DataError(object sender, DataGridViewDataErr #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/EventGridConnectForm.Designer.cs b/src/ServiceBusExplorer/Forms/EventGridConnectForm.Designer.cs index cafaac04..6d9accbc 100644 --- a/src/ServiceBusExplorer/Forms/EventGridConnectForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/EventGridConnectForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -59,10 +59,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(235, 403); this.btnOk.Name = "btnOk"; @@ -75,11 +75,11 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(315, 403); this.btnCancel.Name = "btnCancel"; @@ -103,10 +103,10 @@ private void InitializeComponent() // // grouperEventGridNamespaceSettings // - this.grouperEventGridNamespaceSettings.BackgroundColor = System.Drawing.Color.White; - this.grouperEventGridNamespaceSettings.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperEventGridNamespaceSettings.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperEventGridNamespaceSettings.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperEventGridNamespaceSettings.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperEventGridNamespaceSettings.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEventGridNamespaceSettings.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperEventGridNamespaceSettings.BorderThickness = 1F; this.grouperEventGridNamespaceSettings.Controls.Add(this.cboApiVersion); this.grouperEventGridNamespaceSettings.Controls.Add(this.cloudGroupBox); @@ -120,9 +120,9 @@ private void InitializeComponent() this.grouperEventGridNamespaceSettings.Controls.Add(this.lblSubscriptionId); this.grouperEventGridNamespaceSettings.Controls.Add(this.txtNamespaceName); this.grouperEventGridNamespaceSettings.Controls.Add(this.lblNamespaceName); - this.grouperEventGridNamespaceSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperEventGridNamespaceSettings.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperEventGridNamespaceSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperEventGridNamespaceSettings.ForeColor = System.Drawing.Color.White; + this.grouperEventGridNamespaceSettings.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperEventGridNamespaceSettings.GroupImage = null; this.grouperEventGridNamespaceSettings.GroupTitle = "Context Settings"; this.grouperEventGridNamespaceSettings.Location = new System.Drawing.Point(22, 25); @@ -255,7 +255,7 @@ private void InitializeComponent() // this.txtResourceGroupName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtResourceGroupName.BackColor = System.Drawing.SystemColors.Window; + this.txtResourceGroupName.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtResourceGroupName.ForeColor = System.Drawing.SystemColors.ControlText; this.txtResourceGroupName.Location = new System.Drawing.Point(16, 97); this.txtResourceGroupName.Multiline = true; @@ -308,7 +308,7 @@ private void InitializeComponent() this.AcceptButton = this.btnOk; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(414, 442); this.Controls.Add(this.pbAzure); @@ -356,3 +356,4 @@ private void InitializeComponent() private System.Windows.Forms.ComboBox cboApiVersion; } } + diff --git a/src/ServiceBusExplorer/Forms/EventGridConnectForm.cs b/src/ServiceBusExplorer/Forms/EventGridConnectForm.cs index 45180bcc..13b63fea 100644 --- a/src/ServiceBusExplorer/Forms/EventGridConnectForm.cs +++ b/src/ServiceBusExplorer/Forms/EventGridConnectForm.cs @@ -1,4 +1,4 @@ -using ServiceBusExplorer.Helpers; +using ServiceBusExplorer.Helpers; using System; using System.Collections.Generic; using System.Linq; @@ -22,6 +22,7 @@ public partial class EventGridConnectForm : Form public EventGridConnectForm() { InitializeComponent(); + ThemeManager.Apply(this); } private void customCloud_CheckedChanged(object sender, EventArgs e) @@ -56,3 +57,4 @@ private void EventGridConnectForm_Load(object sender, EventArgs e) } } } + diff --git a/src/ServiceBusExplorer/Forms/FilterForm.Designer.cs b/src/ServiceBusExplorer/Forms/FilterForm.Designer.cs index 2a627218..6665dc45 100644 --- a/src/ServiceBusExplorer/Forms/FilterForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/FilterForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -76,10 +76,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(248, 432); this.btnOk.Name = "btnOk"; @@ -94,10 +94,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(328, 432); this.btnCancel.Name = "btnCancel"; @@ -132,10 +132,10 @@ private void InitializeComponent() // btnClear // this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnClear.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClear.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClear.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClear.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClear.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClear.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClear.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClear.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClear.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClear.Location = new System.Drawing.Point(168, 432); this.btnClear.Name = "btnClear"; @@ -150,10 +150,10 @@ private void InitializeComponent() this.grouperFilter.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.grouperFilter.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperFilter.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperFilter.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperFilter.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperFilter.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperFilter.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperFilter.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperFilter.BorderThickness = 1F; this.grouperFilter.Controls.Add(this.cboMessageCountOperator); this.grouperFilter.Controls.Add(this.txtMessageCount); @@ -164,9 +164,9 @@ private void InitializeComponent() this.grouperFilter.Controls.Add(this.lblStartsWith); this.grouperFilter.Controls.Add(this.lblFilterExpression); this.grouperFilter.Controls.Add(this.txtFilterExpression); - this.grouperFilter.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperFilter.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperFilter.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperFilter.ForeColor = System.Drawing.Color.White; + this.grouperFilter.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperFilter.GroupImage = null; this.grouperFilter.GroupTitle = "FilterExpression"; this.grouperFilter.Location = new System.Drawing.Point(16, 16); @@ -250,7 +250,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.timeFilterDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.timeFilterDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.timeFilterDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.timeFilterDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.timeFilterDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.timeFilterDataGridView.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; @@ -304,7 +304,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(416, 473); this.Controls.Add(this.btnClear); this.Controls.Add(this.grouperFilter); @@ -344,3 +344,4 @@ private void InitializeComponent() private System.Windows.Forms.ComboBox cboMessageCountOperator; } } + diff --git a/src/ServiceBusExplorer/Forms/FilterForm.cs b/src/ServiceBusExplorer/Forms/FilterForm.cs index 26bdc783..453fa41f 100644 --- a/src/ServiceBusExplorer/Forms/FilterForm.cs +++ b/src/ServiceBusExplorer/Forms/FilterForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -92,6 +92,7 @@ public FilterForm(string entity, string filterExpression) this.entity = entity; FilterExpression = filterExpression; InitializeComponent(); + ThemeManager.Apply(this); InitializeControls(); } #endregion @@ -495,3 +496,4 @@ private void grouperFilter_CustomPaint(PaintEventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/MainForm.Designer.cs b/src/ServiceBusExplorer/Forms/MainForm.Designer.cs index ccac6a89..2515b3d5 100644 --- a/src/ServiceBusExplorer/Forms/MainForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/MainForm.Designer.cs @@ -1,4 +1,4 @@ -using ServiceBusExplorer.Controls; +using ServiceBusExplorer.Controls; using Microsoft.ServiceBus.Messaging; namespace ServiceBusExplorer.Forms @@ -618,7 +618,7 @@ private void InitializeComponent() // // statusStrip // - this.statusStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.statusStrip.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.statusStrip.ImageScalingSize = new System.Drawing.Size(24, 24); this.statusStrip.Location = new System.Drawing.Point(0, 818); this.statusStrip.Name = "statusStrip"; @@ -652,13 +652,13 @@ private void InitializeComponent() // panelTreeView // this.panelTreeView.AutoScroll = true; - this.panelTreeView.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.panelTreeView.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.panelTreeView.Controls.Add(this.serviceBusTreeView); this.panelTreeView.Controls.Add(this.filterPanel); this.panelTreeView.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelTreeView.ForeColor = System.Drawing.SystemColors.Window; - this.panelTreeView.HeaderColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(205)))), ((int)(((byte)(219))))); - this.panelTreeView.HeaderColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.panelTreeView.ForeColor = System.Drawing.SystemColors.ControlText; + this.panelTreeView.HeaderColor1 = System.Drawing.Color.FromArgb(42, 42, 42); + this.panelTreeView.HeaderColor2 = System.Drawing.Color.FromArgb(33, 33, 33); this.panelTreeView.HeaderFont = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold); this.panelTreeView.HeaderHeight = 24; this.panelTreeView.HeaderText = "Service Bus Namespace"; @@ -756,11 +756,11 @@ private void InitializeComponent() // panelMain // this.panelMain.AutoScroll = true; - this.panelMain.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.panelMain.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.panelMain.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelMain.ForeColor = System.Drawing.SystemColors.Window; - this.panelMain.HeaderColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(205)))), ((int)(((byte)(219))))); - this.panelMain.HeaderColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.panelMain.ForeColor = System.Drawing.SystemColors.ControlText; + this.panelMain.HeaderColor1 = System.Drawing.Color.FromArgb(42, 42, 42); + this.panelMain.HeaderColor2 = System.Drawing.Color.FromArgb(33, 33, 33); this.panelMain.HeaderFont = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold); this.panelMain.HeaderHeight = 24; this.panelMain.HeaderText = ""; @@ -797,12 +797,12 @@ private void InitializeComponent() // panelLog // this.panelLog.AutoScroll = true; - this.panelLog.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.panelLog.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.panelLog.Controls.Add(this.lstLog); this.panelLog.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelLog.ForeColor = System.Drawing.SystemColors.Window; - this.panelLog.HeaderColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(205)))), ((int)(((byte)(219))))); - this.panelLog.HeaderColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.panelLog.ForeColor = System.Drawing.SystemColors.ControlText; + this.panelLog.HeaderColor1 = System.Drawing.Color.FromArgb(42, 42, 42); + this.panelLog.HeaderColor2 = System.Drawing.Color.FromArgb(33, 33, 33); this.panelLog.HeaderFont = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold); this.panelLog.HeaderHeight = 24; this.panelLog.HeaderText = "Log"; @@ -3280,7 +3280,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.ClientSize = new System.Drawing.Size(1416, 840); this.Controls.Add(this.linkLabelNewVersionAvailable); @@ -3695,3 +3695,4 @@ private void InitializeComponent() } } + diff --git a/src/ServiceBusExplorer/Forms/MainForm.cs b/src/ServiceBusExplorer/Forms/MainForm.cs index c2e240ba..c5efd429 100644 --- a/src/ServiceBusExplorer/Forms/MainForm.cs +++ b/src/ServiceBusExplorer/Forms/MainForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -273,6 +273,8 @@ public partial class MainForm : Form public MainForm(string logMessage) { InitializeComponent(); + MainFormThemeExtension.InitTheme(this, mainMenuStrip); + ThemeManager.Apply(this); logTask = Task.Factory.StartNew(AsyncWriteToLog).ContinueWith(t => { if (t.IsFaulted && t.Exception != null) @@ -322,6 +324,16 @@ public MainForm(string logMessage) WriteToLog(logMessage); } + private static Color GetMainPanelWindowBackColor() + { + return ThemeManager.IsDark ? ThemeManager.Surface : SystemColors.Window; + } + + private static Color GetMainPanelGradientBackColor() + { + return ThemeManager.IsDark ? ThemeManager.Surface : SystemColors.GradientInactiveCaption; + } + private void InitializeDashboard() { dashboardControl.Initialize( @@ -475,7 +487,7 @@ private async void SavedConnectionToolStripMenuItem_Click(object sender, EventAr userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.Window; + panelMain.BackColor = GetMainPanelWindowBackColor(); await ShowEntities(EntityType.All); } @@ -534,7 +546,7 @@ async void connectUsingSASToolStripMenuItem_Click(object sender, EventArgs e) userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.Window; + panelMain.BackColor = GetMainPanelWindowBackColor(); await ShowEntities(EntityType.All); } } @@ -578,7 +590,7 @@ async void connectUsingEntraToolStripMenuItem_Click(object sender, EventArgs e) } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.Window; + panelMain.BackColor = GetMainPanelWindowBackColor(); await ShowEventGridEntities(EntityType.All); } @@ -744,7 +756,7 @@ void MainForm_OnCancel() userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.Window; + panelMain.BackColor = GetMainPanelWindowBackColor(); panelMain.HeaderText = Entity; if (currentNode != null) { @@ -801,7 +813,7 @@ async void serviceBusHelper_OnDelete(ServiceBusHelperEventArgs args) userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.Window; + panelMain.BackColor = GetMainPanelWindowBackColor(); panelMain.HeaderText = Entity; serviceBusTreeView.SelectedNode = rootNode; rootNode.EnsureVisible(); @@ -5371,7 +5383,7 @@ private void ShowEventGridNamespace(EventGridNamespaceResource eventGridNamespac userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); eventGridNamespaceControl = new HandleEventGridNamespaceControl(eventGridNamespace); eventGridNamespaceControl.SuspendDrawing(); eventGridNamespaceControl.Location = new Point(1, panelLog.HeaderHeight + 1); @@ -5405,7 +5417,7 @@ private void ShowQueue(QueueDescription queue, string path, bool duplicateQueue userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); queueControl = new HandleQueueControl(WriteToLog, serviceBusHelper, queue, path, duplicateQueue); queueControl.SuspendDrawing(); queueControl.Location = new Point(1, panelLog.HeaderHeight + 1); @@ -5441,7 +5453,7 @@ private void ShowTopic(TopicDescription topic, string path) userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); topicControl = new HandleTopicControl(WriteToLog, serviceBusHelper, topic, path); topicControl.SuspendDrawing(); topicControl.Location = new Point(1, panelLog.HeaderHeight + 1); @@ -5477,7 +5489,7 @@ private void ShowEventGridTopic(NamespaceTopicResource topic, string path) userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); topicControl = new HandleEventGridTopicControl(topic, NamespaceHostname); topicControl.Location = new Point(1, panelLog.HeaderHeight + 1); panelMain.Controls.Add(topicControl); @@ -5510,7 +5522,7 @@ private void ShowSubscription(SubscriptionWrapper wrapper, bool duplicateCurrent userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); subscriptionControl = new HandleSubscriptionControl(WriteToLog, serviceBusHelper, wrapper, duplicateCurrentSubscription); subscriptionControl.SuspendDrawing(); subscriptionControl.Location = new Point(1, panelLog.HeaderHeight + 1); @@ -5546,7 +5558,7 @@ private void ShowEventGridSubscription(EventGridSubscriptionWrapper subscription userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); subscriptionControl = new HandleEventGridSubscriptionControl(WriteToLog, subscription, eventGridLibrary); subscriptionControl.SuspendDrawing(); subscriptionControl.Location = new Point(1, panelLog.HeaderHeight + 1); @@ -5579,7 +5591,7 @@ private void ShowRelay(RelayDescription relayService, string path) userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); relayServiceControl = new HandleRelayControl(WriteToLog, serviceBusHelper, relayService, path); relayServiceControl.SuspendDrawing(); relayServiceControl.Location = new Point(1, panelLog.HeaderHeight + 1); @@ -5614,7 +5626,7 @@ private void ShowRule(RuleWrapper wrapper, bool? isFirstRule) userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); ruleControl = new HandleRuleControl(WriteToLog, serviceBusHelper, wrapper, isFirstRule); ruleControl.SuspendDrawing(); ruleControl.Location = new Point(1, panelLog.HeaderHeight + 1); @@ -5648,7 +5660,7 @@ private void ShowEventHub(EventHubDescription eventHub) userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); eventHubControl = new HandleEventHubControl(WriteToLog, serviceBusHelper, eventHub); eventHubControl.SuspendDrawing(); eventHubControl.Location = new Point(1, panelLog.HeaderHeight + 1); @@ -5684,7 +5696,7 @@ private void ShowPartition(PartitionDescription partition) userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); if (string.IsNullOrWhiteSpace(partition.LastEnqueuedOffset)) { @@ -5727,7 +5739,7 @@ private void ShowConsumerGroup(ConsumerGroupDescription notificationHub, string userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); notificationHubControl = new HandleConsumerGroupControl(WriteToLog, serviceBusHelper, notificationHub, eventHubname); notificationHubControl.SuspendDrawing(); notificationHubControl.Location = new Point(1, panelLog.HeaderHeight + 1); @@ -5762,7 +5774,7 @@ private void ShowNotificationHub(NotificationHubDescription notificationHub) userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); notificationHubControl = new HandleNotificationHubControl(WriteToLog, serviceBusHelper, notificationHub); notificationHubControl.SuspendDrawing(); notificationHubControl.Location = new Point(1, panelLog.HeaderHeight + 1); @@ -5799,7 +5811,7 @@ private void TestQueue(QueueDescription queueDescription, bool sdi) userControl.Dispose(); } panelMain.Controls.Clear(); - panelMain.BackColor = SystemColors.GradientInactiveCaption; + panelMain.BackColor = GetMainPanelGradientBackColor(); queueControl = new TestQueueControl(this, WriteToLog, StopLog, @@ -5846,7 +5858,7 @@ private void TestTopic(TopicDescription topicDescription, List brokeredMessages, ServiceBusHelp this.serviceBusHelper = serviceBusHelper; this.writeToLog = writeToLog; InitializeComponent(); + ThemeManager.Apply(this); // Make it just a small dialog with the controls on one row messagesSplitContainer.Visible = false; @@ -738,3 +740,4 @@ void InitializeMessageTextControl(BrokeredMessage message) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/NewVersionAvailableForm.Designer.cs b/src/ServiceBusExplorer/Forms/NewVersionAvailableForm.Designer.cs index 4f50f84c..314c958a 100644 --- a/src/ServiceBusExplorer/Forms/NewVersionAvailableForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/NewVersionAvailableForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -123,7 +123,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.ClientSize = new System.Drawing.Size(584, 441); @@ -155,3 +155,4 @@ private void InitializeComponent() private System.Windows.Forms.Label labelReleaseInfo; } } + diff --git a/src/ServiceBusExplorer/Forms/NewVersionAvailableForm.cs b/src/ServiceBusExplorer/Forms/NewVersionAvailableForm.cs index 8db19c6c..48fd8f76 100644 --- a/src/ServiceBusExplorer/Forms/NewVersionAvailableForm.cs +++ b/src/ServiceBusExplorer/Forms/NewVersionAvailableForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -41,6 +41,7 @@ public partial class NewVersionAvailableForm : Form public NewVersionAvailableForm() { InitializeComponent(); + ThemeManager.Apply(this); //This form is double buffered SetStyle( @@ -103,3 +104,4 @@ private void linkLabelnewVersion_LinkClicked(object sender, LinkLabelLinkClicked } } } + diff --git a/src/ServiceBusExplorer/Forms/OptionForm.Designer.cs b/src/ServiceBusExplorer/Forms/OptionForm.Designer.cs index a6d3650e..383d9150 100644 --- a/src/ServiceBusExplorer/Forms/OptionForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/OptionForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -192,10 +192,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(255, 437); this.btnOk.Name = "btnOk"; @@ -210,10 +210,10 @@ private void InitializeComponent() // btnReset // this.btnReset.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnReset.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnReset.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnReset.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnReset.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnReset.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnReset.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnReset.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnReset.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnReset.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnReset.Location = new System.Drawing.Point(528, 437); this.btnReset.Name = "btnReset"; @@ -228,10 +228,10 @@ private void InitializeComponent() // btnSave // this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSave.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSave.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnSave.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnSave.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnSave.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSave.Location = new System.Drawing.Point(435, 437); this.btnSave.Name = "btnSave"; @@ -323,10 +323,10 @@ private void InitializeComponent() // this.btnOpenConfig.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenConfig.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenConfig.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenConfig.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenConfig.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenConfig.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenConfig.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenConfig.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenConfig.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenConfig.ImageAlign = System.Drawing.ContentAlignment.TopRight; this.btnOpenConfig.Location = new System.Drawing.Point(528, 8); @@ -357,7 +357,7 @@ private void InitializeComponent() // // tabPageGeneral // - this.tabPageGeneral.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageGeneral.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageGeneral.Controls.Add(this.cboSelectedMessageCounts); this.tabPageGeneral.Controls.Add(this.lblMessageCounts); this.tabPageGeneral.Controls.Add(this.disableAccidentalDeletionPrevention); @@ -659,7 +659,7 @@ private void InitializeComponent() // // tabPageReceiving // - this.tabPageReceiving.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageReceiving.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageReceiving.Controls.Add(this.receiverThinkTimeNumericUpDown); this.tabPageReceiving.Controls.Add(this.lblReceiverThinkTime); this.tabPageReceiving.Controls.Add(this.prefetchCountNumericUpDown); @@ -859,7 +859,7 @@ private void InitializeComponent() // // tabPageSending // - this.tabPageSending.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageSending.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageSending.Controls.Add(this.saveMessageToFileCheckBox); this.tabPageSending.Controls.Add(this.lblMessageContentType); this.tabPageSending.Controls.Add(this.txtMessageContentType); @@ -919,7 +919,7 @@ private void InitializeComponent() // // cboDefaultMessageBodyType // - this.cboDefaultMessageBodyType.BackColor = System.Drawing.SystemColors.Window; + this.cboDefaultMessageBodyType.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.cboDefaultMessageBodyType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboDefaultMessageBodyType.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.cboDefaultMessageBodyType.FormattingEnabled = true; @@ -946,10 +946,10 @@ private void InitializeComponent() // btnOpen // this.btnOpen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpen.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpen.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpen.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpen.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpen.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpen.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpen.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpen.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpen.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpen.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpen.Location = new System.Drawing.Point(537, 212); @@ -1089,7 +1089,7 @@ private void InitializeComponent() // // tabPageConnectivity // - this.tabPageConnectivity.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageConnectivity.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageConnectivity.Controls.Add(this.useAmqpWebSocketsCheckBox); this.tabPageConnectivity.Controls.Add(this.label4); this.tabPageConnectivity.Controls.Add(this.cboConnectivityMode); @@ -1145,7 +1145,7 @@ private void InitializeComponent() // // tabPageProxy // - this.tabPageProxy.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageProxy.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageProxy.Controls.Add(this.txtProxyPassword); this.tabPageProxy.Controls.Add(this.useDefaultProxyCredentialsCheckBox); this.tabPageProxy.Controls.Add(this.lblProxyPassword); @@ -1331,7 +1331,7 @@ private void InitializeComponent() // // tabPageColors // - this.tabPageColors.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.tabPageColors.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.tabPageColors.Controls.Add(this.label5); this.tabPageColors.Controls.Add(this.dgNodeColors); this.tabPageColors.Location = new System.Drawing.Point(4, 22); @@ -1358,7 +1358,7 @@ private void InitializeComponent() // this.dgNodeColors.AutoGenerateColumns = false; this.dgNodeColors.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.dgNodeColors.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.dgNodeColors.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); this.dgNodeColors.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); @@ -1404,7 +1404,7 @@ private void InitializeComponent() // this.mainPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mainPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.mainPanel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainPanel.Controls.Add(this.tabOptionsControl); this.mainPanel.Controls.Add(this.btnOpenConfig); this.mainPanel.Controls.Add(this.cboConfigFile); @@ -1418,12 +1418,12 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnCancel.CausesValidation = false; this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(343, 437); this.btnCancel.Name = "btnCancel"; @@ -1531,7 +1531,7 @@ private void InitializeComponent() this.AcceptButton = this.btnOk; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(615, 473); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnSave); @@ -1688,3 +1688,4 @@ private void InitializeComponent() private System.Windows.Forms.DataGridViewTextBoxColumn transferDeadLetterMessageCountThresholdDataGridViewTextBoxColumn; } } + diff --git a/src/ServiceBusExplorer/Forms/OptionForm.cs b/src/ServiceBusExplorer/Forms/OptionForm.cs index 2e818c50..fa05d3c5 100644 --- a/src/ServiceBusExplorer/Forms/OptionForm.cs +++ b/src/ServiceBusExplorer/Forms/OptionForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -45,6 +45,11 @@ namespace ServiceBusExplorer.Forms public partial class OptionForm : Form { + private static readonly Color DarkTabBorderColor = Color.FromArgb(150, 150, 150); + private static readonly Color DarkTabSelectedBorderColor = Color.FromArgb(235, 235, 235); + private static readonly Color DarkTabSelectedFillColor = Color.FromArgb(78, 78, 78); + private static readonly Color DarkTabFillColor = Color.FromArgb(56, 56, 56); + #region Private Constants // Messages const string MessageTextTitle = "Message Text"; @@ -69,6 +74,10 @@ public partial class OptionForm : Form ConfigFileUse originalConfigFileUse; BindingList NodesColorInfoBindingList = new BindingList(); + Panel darkTabHeaderPanel; + Panel darkTabContentHost; + readonly List darkTabButtons = new List(); + readonly List darkTabPages = new List(); #endregion @@ -78,6 +87,7 @@ public OptionForm(MainSettings mainSettings, ConfigFileUse configFileUse) originalConfigFileUse = configFileUse; InitializeComponent(); + ThemeManager.Apply(this); // Put data in the list controls cboConnectivityMode.DataSource = Enum.GetValues(typeof(ConnectivityMode)); @@ -352,11 +362,7 @@ private void button_MouseLeave(object sender, EventArgs e) void mainPanel_Paint(object sender, PaintEventArgs e) { - e.Graphics.DrawRectangle(new Pen(SystemColors.ActiveBorder, 1), - cboConfigFile.Location.X - 1, - cboConfigFile.Location.Y - 1, - cboConfigFile.Size.Width + 1, - cboConfigFile.Size.Height + 1); + DrawThemeBorder(e.Graphics, cboConfigFile); } void senderThinkTimeNumericUpDown_ValueChanged(object sender, EventArgs e) @@ -767,50 +773,262 @@ List GetSelectedMessageCounts() private void tabPageGeneral_Paint(object sender, PaintEventArgs e) { - e.Graphics.DrawRectangle(new Pen(SystemColors.ActiveBorder, 1), - cboEncodingType.Location.X - 1, - cboEncodingType.Location.Y - 1, - cboEncodingType.Size.Width + 1, - cboEncodingType.Size.Height + 1); - e.Graphics.DrawRectangle(new Pen(SystemColors.ActiveBorder, 1), - cboSelectedEntities.Location.X - 1, - cboSelectedEntities.Location.Y - 1, - cboSelectedEntities.Size.Width + 1, - cboSelectedEntities.Size.Height + 1); - e.Graphics.DrawRectangle(new Pen(SystemColors.ActiveBorder, 1), - cboSelectedMessageCounts.Location.X - 1, - cboSelectedMessageCounts.Location.Y - 1, - cboSelectedMessageCounts.Size.Width + 1, - cboSelectedMessageCounts.Size.Height + 1); + DrawThemeBorder(e.Graphics, cboEncodingType); + DrawThemeBorder(e.Graphics, cboSelectedEntities); + DrawThemeBorder(e.Graphics, cboSelectedMessageCounts); } private void tabPageSending_Paint(object sender, PaintEventArgs e) { - e.Graphics.DrawRectangle(new Pen(SystemColors.ActiveBorder, 1), - cboDefaultMessageBodyType.Location.X - 1, - cboDefaultMessageBodyType.Location.Y - 1, - cboDefaultMessageBodyType.Size.Width + 1, - cboDefaultMessageBodyType.Size.Height + 1); + DrawThemeBorder(e.Graphics, cboDefaultMessageBodyType); } private void tabPageConnectivity_Paint(object sender, PaintEventArgs e) { - e.Graphics.DrawRectangle(new Pen(SystemColors.ActiveBorder, 1), - cboConnectivityMode.Location.X - 1, - cboConnectivityMode.Location.Y - 1, - cboConnectivityMode.Size.Width + 1, - cboConnectivityMode.Size.Height + 1); + DrawThemeBorder(e.Graphics, cboConnectivityMode); } private void tabPageColors_Paint(object sender, PaintEventArgs e) { - e.Graphics.DrawRectangle(new Pen(SystemColors.ActiveBorder, 1), - dgNodeColors.Location.X - 1, - dgNodeColors.Location.Y - 1, - dgNodeColors.Size.Width + 1, - dgNodeColors.Size.Height + 1); + DrawThemeBorder(e.Graphics, dgNodeColors); + } + + private static void DrawThemeBorder(Graphics graphics, Control control) + { + var borderColor = ThemeManager.IsDark ? ThemeManager.Border : SystemColors.ActiveBorder; + using (var pen = new Pen(borderColor, 1)) + { + graphics.DrawRectangle(pen, + control.Location.X - 1, + control.Location.Y - 1, + control.Size.Width + 1, + control.Size.Height + 1); + } + } + + private void InitializeDarkTabHeader() + { + if (!ThemeManager.IsDark) + { + return; + } + + darkTabHeaderPanel = new Panel + { + Name = "darkTabHeaderPanel", + BackColor = ThemeManager.Background, + Location = tabOptionsControl.Location, + Size = new Size(tabOptionsControl.Width, 27), + Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right + }; + + darkTabContentHost = new Panel + { + Name = "darkTabContentHost", + BackColor = ThemeManager.Background, + Location = new Point(tabOptionsControl.Left, tabOptionsControl.Top + darkTabHeaderPanel.Height + 2), + Size = new Size(tabOptionsControl.Width, tabOptionsControl.Height - darkTabHeaderPanel.Height - 2), + Anchor = tabOptionsControl.Anchor + }; + darkTabContentHost.Paint += DarkTabContentHost_Paint; + + mainPanel.Controls.Add(darkTabHeaderPanel); + mainPanel.Controls.Add(darkTabContentHost); + darkTabHeaderPanel.BringToFront(); + darkTabContentHost.BringToFront(); + + var x = 0; + foreach (TabPage page in tabOptionsControl.TabPages.Cast().ToList()) + { + var contentPanel = CreateDarkTabPage(page); + darkTabPages.Add(contentPanel); + darkTabContentHost.Controls.Add(contentPanel); + + var button = CreateDarkTabButton(page.Text, darkTabButtons.Count, x); + darkTabButtons.Add(button); + darkTabHeaderPanel.Controls.Add(button); + x += button.Width + 1; + } + + tabOptionsControl.Visible = false; + + UpdateDarkTabButtonStates(); + } + + private Panel CreateDarkTabButton(string text, int index, int x) + { + var button = new Panel + { + Name = $"darkTabButton{index}", + Tag = index, + BackColor = ThemeManager.Surface, + Size = TextRenderer.MeasureText(text, Font).Width switch + { + var width when width < 44 => new Size(44, 22), + var width => new Size(width + 12, 22) + }, + Location = new Point(x, 2), + TabStop = false, + Cursor = Cursors.Hand + }; + + button.Paint += DarkTabButton_Paint; + button.Click += DarkTabButton_Click; + + return button; + } + + private Panel CreateDarkTabPage(TabPage page) + { + var panel = new Panel + { + Name = $"darkPage_{page.Name}", + BackColor = page.BackColor, + ForeColor = page.ForeColor, + Location = new Point(0, 0), + Size = darkTabContentHost.Size, + Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, + Visible = false + }; + + while (page.Controls.Count > 0) + { + var control = page.Controls[0]; + page.Controls.RemoveAt(0); + panel.Controls.Add(control); + } + + switch (page.Name) + { + case nameof(tabPageGeneral): + panel.Paint += tabPageGeneral_Paint; + break; + case nameof(tabPageSending): + panel.Paint += tabPageSending_Paint; + break; + case nameof(tabPageConnectivity): + panel.Paint += tabPageConnectivity_Paint; + break; + case nameof(tabPageColors): + panel.Paint += tabPageColors_Paint; + break; + } + + return panel; + } + + private void DarkTabButton_Paint(object sender, PaintEventArgs e) + { + if (!(sender is Panel button) || !(button.Tag is int index)) + { + return; + } + + var selected = index == GetSelectedDarkTabIndex(); + var backColor = selected ? DarkTabSelectedFillColor : DarkTabFillColor; + var foreColor = selected ? ThemeManager.Foreground : ThemeManager.ForegroundDim; + var borderColor = selected ? DarkTabSelectedBorderColor : DarkTabBorderColor; + button.BackColor = backColor; + + using (var brush = new SolidBrush(backColor)) + using (var borderPen = new Pen(borderColor)) + using (var innerPen = new Pen(selected ? Color.FromArgb(110, 110, 110) : Color.FromArgb(70, 70, 70))) + using (var textBrush = new SolidBrush(foreColor)) + using (var sf = new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center }) + { + e.Graphics.FillRectangle(brush, button.ClientRectangle); + e.Graphics.DrawRectangle(borderPen, 0, 0, button.Width - 1, button.Height - 1); + e.Graphics.DrawRectangle(innerPen, 1, 1, button.Width - 3, button.Height - 3); + e.Graphics.DrawString(GetDarkTabText(index), Font, textBrush, button.ClientRectangle, sf); + } + } + + private void DarkTabButton_Click(object sender, EventArgs e) + { + if (!(sender is Panel button) || !(button.Tag is int index)) + { + return; + } + + SetSelectedDarkTabIndex(index); + UpdateDarkTabButtonStates(); + } + + private void UpdateDarkTabButtonStates() + { + if (!ThemeManager.IsDark || darkTabButtons.Count == 0) + { + return; + } + + for (var i = 0; i < darkTabButtons.Count; i++) + { + var selected = i == GetSelectedDarkTabIndex(); + var button = darkTabButtons[i]; + button.BackColor = selected ? ThemeManager.SurfaceLighter : ThemeManager.Surface; + button.Invalidate(); + } + + for (var i = 0; i < darkTabPages.Count; i++) + { + darkTabPages[i].Visible = i == GetSelectedDarkTabIndex(); + } + } + + private int GetSelectedDarkTabIndex() + { + for (var i = 0; i < darkTabPages.Count; i++) + { + if (darkTabPages[i].Visible) + { + return i; + } + } + + return 0; + } + + private void SetSelectedDarkTabIndex(int index) + { + for (var i = 0; i < darkTabPages.Count; i++) + { + darkTabPages[i].Visible = i == index; + } + } + + private string GetDarkTabText(int index) + { + if (index < 0 || index >= darkTabHeaderPanel.Controls.Count) + { + return string.Empty; + } + + return index switch + { + 0 => tabPageGeneral.Text, + 1 => tabPageReceiving.Text, + 2 => tabPageSending.Text, + 3 => tabPageConnectivity.Text, + 4 => tabPageProxy.Text, + 5 => tabPageColors.Text, + _ => string.Empty + }; + } + + private void DarkTabContentHost_Paint(object sender, PaintEventArgs e) + { + using (var outerPen = new Pen(ThemeManager.Border)) + using (var innerPen = new Pen(ThemeManager.SurfaceLighter)) + { + var outer = new Rectangle(0, 0, darkTabContentHost.Width - 1, darkTabContentHost.Height - 1); + var inner = new Rectangle(1, 1, darkTabContentHost.Width - 3, darkTabContentHost.Height - 3); + + e.Graphics.DrawRectangle(outerPen, outer); + e.Graphics.DrawRectangle(innerPen, inner); + } } #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/ParameterForm.Designer.cs b/src/ServiceBusExplorer/Forms/ParameterForm.Designer.cs index 9c38fb84..3749100a 100644 --- a/src/ServiceBusExplorer/Forms/ParameterForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/ParameterForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -61,10 +61,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(416, 40); this.btnOk.Name = "btnOk"; @@ -79,10 +79,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(496, 40); this.btnCancel.Name = "btnCancel"; @@ -99,7 +99,7 @@ private void InitializeComponent() this.mainPanel.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.mainPanel.BackColor = System.Drawing.SystemColors.Window; + this.mainPanel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainPanel.Location = new System.Drawing.Point(0, 0); this.mainPanel.Name = "mainPanel"; this.mainPanel.Size = new System.Drawing.Size(584, 24); @@ -114,7 +114,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(584, 73); this.Controls.Add(this.mainPanel); this.Controls.Add(this.btnCancel); @@ -139,4 +139,4 @@ private void InitializeComponent() private System.Windows.Forms.Panel mainPanel; private System.Windows.Forms.OpenFileDialog openFileDialog; } -} \ No newline at end of file +} diff --git a/src/ServiceBusExplorer/Forms/ParameterForm.cs b/src/ServiceBusExplorer/Forms/ParameterForm.cs index ba2eeec7..4b317616 100644 --- a/src/ServiceBusExplorer/Forms/ParameterForm.cs +++ b/src/ServiceBusExplorer/Forms/ParameterForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -21,6 +21,7 @@ #region Using Directives +using ServiceBusExplorer.Helpers; using System; using System.Collections.Generic; using System.Drawing; @@ -42,6 +43,7 @@ public partial class ParameterForm : Form public ParameterForm(string title, IList parameterNameList, IList parameterValueList, IList canBeNullList = null) { InitializeComponent(); + ThemeManager.Apply(this); if (!string.IsNullOrWhiteSpace(title)) { Text = title; @@ -167,3 +169,4 @@ private void mainPanel_Paint(object sender, PaintEventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/PublishEventForm.Designer.cs b/src/ServiceBusExplorer/Forms/PublishEventForm.Designer.cs index b2159bca..3dfbd471 100644 --- a/src/ServiceBusExplorer/Forms/PublishEventForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/PublishEventForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -81,10 +81,10 @@ private void InitializeComponent() // btnSubmit // this.btnSubmit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSubmit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnSubmit.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSubmit.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnSubmit.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnSubmit.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnSubmit.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnSubmit.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnSubmit.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnSubmit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSubmit.Location = new System.Drawing.Point(542, 535); this.btnSubmit.Name = "btnSubmit"; @@ -97,11 +97,11 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(666, 535); this.btnCancel.Name = "btnCancel"; @@ -116,10 +116,10 @@ private void InitializeComponent() this.grouperPublishEvent.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.grouperPublishEvent.BackgroundColor = System.Drawing.Color.White; - this.grouperPublishEvent.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperPublishEvent.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperPublishEvent.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperPublishEvent.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperPublishEvent.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPublishEvent.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperPublishEvent.BorderThickness = 1F; this.grouperPublishEvent.Controls.Add(this.txtEventInfo); this.grouperPublishEvent.Controls.Add(this.txtEventType); @@ -127,9 +127,9 @@ private void InitializeComponent() this.grouperPublishEvent.Controls.Add(this.txtEventSource); this.grouperPublishEvent.Controls.Add(this.lblEventInfo); this.grouperPublishEvent.Controls.Add(this.lblEventSource); - this.grouperPublishEvent.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperPublishEvent.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperPublishEvent.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperPublishEvent.ForeColor = System.Drawing.Color.White; + this.grouperPublishEvent.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperPublishEvent.GroupImage = null; this.grouperPublishEvent.GroupTitle = "Publish Event"; this.grouperPublishEvent.Location = new System.Drawing.Point(22, 25); @@ -231,7 +231,7 @@ private void InitializeComponent() this.AcceptButton = this.btnSubmit; this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(788, 592); this.Controls.Add(this.btnCancel); @@ -265,3 +265,4 @@ private void InitializeComponent() private System.Windows.Forms.Button btnCancel; } } + diff --git a/src/ServiceBusExplorer/Forms/PublishEventForm.cs b/src/ServiceBusExplorer/Forms/PublishEventForm.cs index ef734e3b..1f8ba431 100644 --- a/src/ServiceBusExplorer/Forms/PublishEventForm.cs +++ b/src/ServiceBusExplorer/Forms/PublishEventForm.cs @@ -1,4 +1,5 @@ -using ServiceBusExplorer.Utilities.Helpers; +using ServiceBusExplorer.Helpers; +using ServiceBusExplorer.Utilities.Helpers; using System; using System.Globalization; using System.Windows.Forms; @@ -21,6 +22,7 @@ public partial class PublishEventForm : Form public PublishEventForm(WriteToLogDelegate writeToLog) { InitializeComponent(); + ThemeManager.Apply(this); this.writeToLog = writeToLog; } @@ -57,3 +59,4 @@ private void HandleException(Exception ex) } } } + diff --git a/src/ServiceBusExplorer/Forms/ReceiveEventForm.Designer.cs b/src/ServiceBusExplorer/Forms/ReceiveEventForm.Designer.cs index 036da5d0..49f1046f 100644 --- a/src/ServiceBusExplorer/Forms/ReceiveEventForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/ReceiveEventForm.Designer.cs @@ -1,4 +1,4 @@ -namespace ServiceBusExplorer.Forms +namespace ServiceBusExplorer.Forms { partial class ReceiveEventForm { @@ -43,17 +43,17 @@ private void InitializeComponent() this.grouperReceiveEvents.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.grouperReceiveEvents.BackgroundColor = System.Drawing.Color.White; - this.grouperReceiveEvents.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperReceiveEvents.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperReceiveEvents.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperReceiveEvents.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperReceiveEvents.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiveEvents.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperReceiveEvents.BorderThickness = 1F; this.grouperReceiveEvents.Controls.Add(this.txtEventCount); this.grouperReceiveEvents.Controls.Add(this.btnTop); this.grouperReceiveEvents.Controls.Add(this.btnMax); - this.grouperReceiveEvents.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReceiveEvents.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperReceiveEvents.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperReceiveEvents.ForeColor = System.Drawing.Color.White; + this.grouperReceiveEvents.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperReceiveEvents.GroupImage = null; this.grouperReceiveEvents.GroupTitle = "Event Count"; this.grouperReceiveEvents.Location = new System.Drawing.Point(18, 15); @@ -108,10 +108,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(67, 99); this.btnOk.Name = "btnOk"; @@ -124,11 +124,11 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(151, 99); this.btnCancel.Name = "btnCancel"; @@ -143,7 +143,7 @@ private void InitializeComponent() this.AcceptButton = this.btnOk; this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(247, 145); this.Controls.Add(this.btnCancel); @@ -173,3 +173,4 @@ private void InitializeComponent() private System.Windows.Forms.Button btnCancel; } } + diff --git a/src/ServiceBusExplorer/Forms/ReceiveEventForm.cs b/src/ServiceBusExplorer/Forms/ReceiveEventForm.cs index bffd3031..6eb78239 100644 --- a/src/ServiceBusExplorer/Forms/ReceiveEventForm.cs +++ b/src/ServiceBusExplorer/Forms/ReceiveEventForm.cs @@ -1,4 +1,5 @@ -using ServiceBusExplorer.Utilities.Helpers; +using ServiceBusExplorer.Helpers; +using ServiceBusExplorer.Utilities.Helpers; using System; using System.Globalization; using System.Windows.Forms; @@ -21,6 +22,7 @@ public ReceiveEventForm(WriteToLogDelegate writeToLog) { this.writeToLog = writeToLog; InitializeComponent(); + ThemeManager.Apply(this); } private void receiveEvents_CheckedChanged(object sender, EventArgs e) @@ -60,3 +62,4 @@ private void HandleException(Exception ex) } } } + diff --git a/src/ServiceBusExplorer/Forms/ReceiveModeForm.Designer.cs b/src/ServiceBusExplorer/Forms/ReceiveModeForm.Designer.cs index 6a1d42aa..f5ebe095 100644 --- a/src/ServiceBusExplorer/Forms/ReceiveModeForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/ReceiveModeForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -81,10 +81,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(522, 169); this.btnOk.Name = "btnOk"; @@ -99,10 +99,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(602, 169); this.btnCancel.Name = "btnCancel"; @@ -118,7 +118,7 @@ private void InitializeComponent() // this.mainPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mainPanel.BackColor = System.Drawing.SystemColors.Window; + this.mainPanel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainPanel.Controls.Add(this.grouperSession); this.mainPanel.Controls.Add(this.grouperFrom); this.mainPanel.Controls.Add(this.grouperInspector); @@ -132,15 +132,15 @@ private void InitializeComponent() // // grouperSession // - this.grouperSession.BackgroundColor = System.Drawing.Color.White; - this.grouperSession.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperSession.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperSession.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperSession.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperSession.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSession.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperSession.BorderThickness = 1F; this.grouperSession.Controls.Add(this.txtFromSession); - this.grouperSession.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperSession.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperSession.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperSession.ForeColor = System.Drawing.Color.White; + this.grouperSession.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperSession.GroupImage = null; this.grouperSession.GroupTitle = "From Session"; this.grouperSession.Location = new System.Drawing.Point(465, 80); @@ -165,15 +165,15 @@ private void InitializeComponent() // // grouperFrom // - this.grouperFrom.BackgroundColor = System.Drawing.Color.White; - this.grouperFrom.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperFrom.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperFrom.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperFrom.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperFrom.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperFrom.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperFrom.BorderThickness = 1F; this.grouperFrom.Controls.Add(this.txtFromSequenceNumber); - this.grouperFrom.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperFrom.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperFrom.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperFrom.ForeColor = System.Drawing.Color.White; + this.grouperFrom.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperFrom.GroupImage = null; this.grouperFrom.GroupTitle = "From Sequence Number"; this.grouperFrom.Location = new System.Drawing.Point(465, 8); @@ -199,15 +199,15 @@ private void InitializeComponent() // // grouperInspector // - this.grouperInspector.BackgroundColor = System.Drawing.Color.White; - this.grouperInspector.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperInspector.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperInspector.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperInspector.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperInspector.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperInspector.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperInspector.BorderThickness = 1F; this.grouperInspector.Controls.Add(this.cboReceiverInspector); - this.grouperInspector.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperInspector.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperInspector.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperInspector.ForeColor = System.Drawing.Color.White; + this.grouperInspector.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperInspector.GroupImage = null; this.grouperInspector.GroupTitle = "Message Inspector"; this.grouperInspector.Location = new System.Drawing.Point(16, 80); @@ -234,17 +234,17 @@ private void InitializeComponent() // // grouperMessages // - this.grouperMessages.BackgroundColor = System.Drawing.Color.White; - this.grouperMessages.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperMessages.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperMessages.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperMessages.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperMessages.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessages.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperMessages.BorderThickness = 1F; this.grouperMessages.Controls.Add(this.txtMessageCount); this.grouperMessages.Controls.Add(this.btnTop); this.grouperMessages.Controls.Add(this.btnAll); - this.grouperMessages.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperMessages.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperMessages.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperMessages.ForeColor = System.Drawing.Color.White; + this.grouperMessages.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperMessages.GroupImage = null; this.grouperMessages.GroupTitle = "Message Count"; this.grouperMessages.Location = new System.Drawing.Point(240, 8); @@ -295,16 +295,16 @@ private void InitializeComponent() // // grouperReadMode // - this.grouperReadMode.BackgroundColor = System.Drawing.Color.White; - this.grouperReadMode.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperReadMode.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperReadMode.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperReadMode.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperReadMode.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReadMode.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperReadMode.BorderThickness = 1F; this.grouperReadMode.Controls.Add(this.btnReceive); this.grouperReadMode.Controls.Add(this.btnPeek); - this.grouperReadMode.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperReadMode.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperReadMode.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperReadMode.ForeColor = System.Drawing.Color.White; + this.grouperReadMode.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperReadMode.GroupImage = null; this.grouperReadMode.GroupTitle = "Receive Mode"; this.grouperReadMode.Location = new System.Drawing.Point(16, 8); @@ -348,7 +348,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(690, 205); this.Controls.Add(this.mainPanel); this.Controls.Add(this.btnCancel); @@ -396,3 +396,4 @@ private void InitializeComponent() private System.Windows.Forms.TextBox txtFromSession; } } + diff --git a/src/ServiceBusExplorer/Forms/ReceiveModeForm.cs b/src/ServiceBusExplorer/Forms/ReceiveModeForm.cs index e018443d..73cefd2d 100644 --- a/src/ServiceBusExplorer/Forms/ReceiveModeForm.cs +++ b/src/ServiceBusExplorer/Forms/ReceiveModeForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -22,6 +22,7 @@ #region Using Directives #nullable enable +using ServiceBusExplorer.Helpers; using System; using System.Collections.Generic; using System.Drawing; @@ -46,6 +47,7 @@ public partial class ReceiveModeForm : Form public ReceiveModeForm(string message, int count, IEnumerable brokeredMessageInspectors, bool fromSessionSelectionActive = false) { InitializeComponent(); + ThemeManager.Apply(this); Text = message; txtMessageCount.Text = count.ToString(CultureInfo.InvariantCulture); cboReceiverInspector.Items.Add(SelectBrokeredMessageInspector); @@ -174,3 +176,4 @@ private void grouperInspector_CustomPaint(PaintEventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/RegistrationForm.Designer.cs b/src/ServiceBusExplorer/Forms/RegistrationForm.Designer.cs index 14da037b..82480561 100644 --- a/src/ServiceBusExplorer/Forms/RegistrationForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/RegistrationForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -67,10 +67,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(264, 248); this.btnOk.Name = "btnOk"; @@ -85,10 +85,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(344, 248); this.btnCancel.Name = "btnCancel"; @@ -105,18 +105,18 @@ private void InitializeComponent() this.grouperCaption.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.grouperCaption.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperCaption.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperCaption.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperCaption.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperCaption.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperCaption.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCaption.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperCaption.BorderThickness = 1F; this.grouperCaption.Controls.Add(this.lblRegistration); this.grouperCaption.Controls.Add(this.registrationPropertyGrid); this.grouperCaption.Controls.Add(this.cboRegistrationType); this.grouperCaption.Controls.Add(this.lblRegistrationType); - this.grouperCaption.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCaption.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperCaption.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperCaption.ForeColor = System.Drawing.Color.White; + this.grouperCaption.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperCaption.GroupImage = null; this.grouperCaption.GroupTitle = "New Registration"; this.grouperCaption.Location = new System.Drawing.Point(16, 16); @@ -146,7 +146,7 @@ private void InitializeComponent() this.registrationPropertyGrid.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.registrationPropertyGrid.BackColor = System.Drawing.SystemColors.Window; + this.registrationPropertyGrid.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.registrationPropertyGrid.CategoryForeColor = System.Drawing.SystemColors.InactiveCaptionText; this.registrationPropertyGrid.HelpVisible = false; this.registrationPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); @@ -183,7 +183,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(432, 281); this.Controls.Add(this.grouperCaption); this.Controls.Add(this.btnCancel); @@ -208,4 +208,4 @@ private void InitializeComponent() private System.Windows.Forms.Label lblRegistration; private System.Windows.Forms.PropertyGrid registrationPropertyGrid; } -} \ No newline at end of file +} diff --git a/src/ServiceBusExplorer/Forms/RegistrationForm.cs b/src/ServiceBusExplorer/Forms/RegistrationForm.cs index f7c92139..2922d43c 100644 --- a/src/ServiceBusExplorer/Forms/RegistrationForm.cs +++ b/src/ServiceBusExplorer/Forms/RegistrationForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -74,6 +74,7 @@ public partial class RegistrationForm : Form public RegistrationForm() { InitializeComponent(); + ThemeManager.Apply(this); cboRegistrationType.Items.AddRange(new object[]{SelectRegistration, MpnsRegistrationDescription, MpnsTemplateRegistrationDescription, @@ -247,3 +248,4 @@ private void CreateRegistrationForPropertyGrid() #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/RegistrationsForm.Designer.cs b/src/ServiceBusExplorer/Forms/RegistrationsForm.Designer.cs index 60b996cc..6fd89e4b 100644 --- a/src/ServiceBusExplorer/Forms/RegistrationsForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/RegistrationsForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -68,10 +68,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(232, 120); this.btnOk.Name = "btnOk"; @@ -86,10 +86,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(312, 120); this.btnCancel.Name = "btnCancel"; @@ -105,7 +105,7 @@ private void InitializeComponent() // this.mainPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mainPanel.BackColor = System.Drawing.SystemColors.Window; + this.mainPanel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainPanel.Controls.Add(this.radioButton1); this.mainPanel.Controls.Add(this.txtTop); this.mainPanel.Controls.Add(this.lblTop); @@ -194,7 +194,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(400, 153); this.Controls.Add(this.mainPanel); this.Controls.Add(this.btnCancel); @@ -228,3 +228,4 @@ private void InitializeComponent() private System.Windows.Forms.RadioButton radioButton1; } } + diff --git a/src/ServiceBusExplorer/Forms/RegistrationsForm.cs b/src/ServiceBusExplorer/Forms/RegistrationsForm.cs index df698cd9..ff8a2323 100644 --- a/src/ServiceBusExplorer/Forms/RegistrationsForm.cs +++ b/src/ServiceBusExplorer/Forms/RegistrationsForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -58,6 +58,7 @@ public RegistrationsForm(WriteToLogDelegate writeToLog) { this.writeToLog = writeToLog; InitializeComponent(); + ThemeManager.Apply(this); } #endregion @@ -154,3 +155,4 @@ private void checkBox_CheckedChanged(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/SelectEntityForm.Designer.cs b/src/ServiceBusExplorer/Forms/SelectEntityForm.Designer.cs index 82c2735c..b75cca4e 100644 --- a/src/ServiceBusExplorer/Forms/SelectEntityForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/SelectEntityForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -70,10 +70,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(328, 432); this.btnOk.Name = "btnOk"; @@ -88,10 +88,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(408, 432); this.btnCancel.Name = "btnCancel"; @@ -108,18 +108,18 @@ private void InitializeComponent() this.grouperTreeView.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.grouperTreeView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperTreeView.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperTreeView.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperTreeView.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperTreeView.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperTreeView.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTreeView.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperTreeView.BorderThickness = 1F; this.grouperTreeView.Controls.Add(this.lblSelectTargetEntity); this.grouperTreeView.Controls.Add(this.lblTargetQueueTopic); this.grouperTreeView.Controls.Add(this.txtEntity); this.grouperTreeView.Controls.Add(this.serviceBusTreeView); - this.grouperTreeView.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperTreeView.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperTreeView.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperTreeView.ForeColor = System.Drawing.Color.White; + this.grouperTreeView.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperTreeView.GroupImage = null; this.grouperTreeView.GroupTitle = "Title"; this.grouperTreeView.Location = new System.Drawing.Point(16, 16); @@ -214,10 +214,10 @@ private void InitializeComponent() // btnClear // this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnClear.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClear.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClear.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClear.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClear.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClear.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClear.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClear.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClear.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClear.Location = new System.Drawing.Point(248, 432); this.btnClear.Name = "btnClear"; @@ -231,7 +231,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(496, 473); this.Controls.Add(this.btnClear); this.Controls.Add(this.grouperTreeView); @@ -261,3 +261,4 @@ private void InitializeComponent() private System.Windows.Forms.ImageList imageList; } } + diff --git a/src/ServiceBusExplorer/Forms/SelectEntityForm.cs b/src/ServiceBusExplorer/Forms/SelectEntityForm.cs index 0e66bb12..fab1ddad 100644 --- a/src/ServiceBusExplorer/Forms/SelectEntityForm.cs +++ b/src/ServiceBusExplorer/Forms/SelectEntityForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -84,6 +84,7 @@ public SelectEntityForm(string dialogTitle, includeNotificationHubs = notificationHubs; includeRelays = relays; InitializeComponent(); + ThemeManager.Apply(this); if (MainForm.SingletonMainForm != null && MainForm.SingletonMainForm.ServiceBusTreeView != null) { @@ -399,3 +400,4 @@ private void btnClear_Click(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/TextForm.Designer.cs b/src/ServiceBusExplorer/Forms/TextForm.Designer.cs index 895f53e2..4c92047e 100644 --- a/src/ServiceBusExplorer/Forms/TextForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/TextForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -67,10 +67,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(376, 328); this.btnOk.Name = "btnOk"; @@ -85,10 +85,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(456, 328); this.btnCancel.Name = "btnCancel"; @@ -105,15 +105,15 @@ private void InitializeComponent() this.grouperCaption.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.grouperCaption.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.grouperCaption.BackgroundGradientColor = System.Drawing.Color.White; + this.grouperCaption.BackgroundColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.grouperCaption.BackgroundGradientColor = System.Drawing.Color.FromArgb(33, 33, 33); this.grouperCaption.BackgroundGradientMode = ServiceBusExplorer.Controls.Grouper.GroupBoxGradientMode.None; - this.grouperCaption.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCaption.BorderColor = System.Drawing.Color.FromArgb(72, 72, 72); this.grouperCaption.BorderThickness = 1F; this.grouperCaption.Controls.Add(this.txtContent); - this.grouperCaption.CustomGroupBoxColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.grouperCaption.CustomGroupBoxColor = System.Drawing.Color.FromArgb(42, 42, 42); this.grouperCaption.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.grouperCaption.ForeColor = System.Drawing.Color.White; + this.grouperCaption.ForeColor = System.Drawing.SystemColors.ControlText; this.grouperCaption.GroupImage = null; this.grouperCaption.GroupTitle = "Caption"; this.grouperCaption.Location = new System.Drawing.Point(16, 16); @@ -144,10 +144,10 @@ private void InitializeComponent() // btnOpen // this.btnOpen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpen.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpen.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpen.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpen.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpen.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpen.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpen.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpen.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpen.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpen.Location = new System.Drawing.Point(216, 328); this.btnOpen.Name = "btnOpen"; @@ -164,10 +164,10 @@ private void InitializeComponent() // btnClear // this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnClear.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnClear.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClear.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnClear.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnClear.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnClear.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnClear.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnClear.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnClear.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClear.Location = new System.Drawing.Point(296, 328); this.btnClear.Name = "btnClear"; @@ -181,7 +181,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(544, 361); this.Controls.Add(this.btnClear); this.Controls.Add(this.btnOpen); @@ -209,4 +209,4 @@ private void InitializeComponent() private System.Windows.Forms.OpenFileDialog openFileDialog; private System.Windows.Forms.Button btnClear; } -} \ No newline at end of file +} diff --git a/src/ServiceBusExplorer/Forms/TextForm.cs b/src/ServiceBusExplorer/Forms/TextForm.cs index 825711d2..3784126c 100644 --- a/src/ServiceBusExplorer/Forms/TextForm.cs +++ b/src/ServiceBusExplorer/Forms/TextForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -45,6 +45,7 @@ public partial class TextForm : Form public TextForm(string label, string content) { InitializeComponent(); + ThemeManager.Apply(this); grouperCaption.GroupTitle = string.IsNullOrWhiteSpace(label) ? DefaultLabel : label; Content = XmlHelper.Indent(content); txtContent.Text = string.IsNullOrWhiteSpace(Content) ? string.Empty : Content; @@ -53,6 +54,7 @@ public TextForm(string label, string content) public TextForm(string text, string label, string content) { InitializeComponent(); + ThemeManager.Apply(this); if (!string.IsNullOrWhiteSpace(text)) { Text = text; @@ -65,6 +67,7 @@ public TextForm(string text, string label, string content) public TextForm(string text, string label, string content, bool hideOpen = false) { InitializeComponent(); + ThemeManager.Apply(this); if (!string.IsNullOrWhiteSpace(text)) { Text = text; @@ -165,3 +168,4 @@ private void btnClear_Click(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Forms/UploadCertificateForm.Designer.cs b/src/ServiceBusExplorer/Forms/UploadCertificateForm.Designer.cs index 792ef473..963c7e7e 100644 --- a/src/ServiceBusExplorer/Forms/UploadCertificateForm.Designer.cs +++ b/src/ServiceBusExplorer/Forms/UploadCertificateForm.Designer.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -67,10 +67,10 @@ private void InitializeComponent() // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOk.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOk.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOk.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOk.Location = new System.Drawing.Point(232, 120); this.btnOk.Name = "btnOk"; @@ -85,10 +85,10 @@ private void InitializeComponent() // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnCancel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Location = new System.Drawing.Point(312, 120); this.btnCancel.Name = "btnCancel"; @@ -104,7 +104,7 @@ private void InitializeComponent() // this.mainPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mainPanel.BackColor = System.Drawing.SystemColors.Window; + this.mainPanel.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.mainPanel.Controls.Add(this.lblCertificatePath); this.mainPanel.Controls.Add(this.txtCertificatePath); this.mainPanel.Controls.Add(this.lblCertificatePassword); @@ -130,7 +130,7 @@ private void InitializeComponent() // this.txtCertificatePath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtCertificatePath.BackColor = System.Drawing.SystemColors.Window; + this.txtCertificatePath.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtCertificatePath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtCertificatePath.Location = new System.Drawing.Point(16, 32); this.txtCertificatePath.Name = "txtCertificatePath"; @@ -149,7 +149,7 @@ private void InitializeComponent() // // txtCertificatePassword // - this.txtCertificatePassword.BackColor = System.Drawing.SystemColors.Window; + this.txtCertificatePassword.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.txtCertificatePassword.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.txtCertificatePassword.Location = new System.Drawing.Point(16, 76); this.txtCertificatePassword.Name = "txtCertificatePassword"; @@ -160,10 +160,10 @@ private void InitializeComponent() // btnOpenFileDialog // this.btnOpenFileDialog.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnOpenFileDialog.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); - this.btnOpenFileDialog.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFileDialog.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); - this.btnOpenFileDialog.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(180)))), ((int)(((byte)(209))))); + this.btnOpenFileDialog.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); + this.btnOpenFileDialog.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0, 122, 204); + this.btnOpenFileDialog.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(28, 151, 234); + this.btnOpenFileDialog.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(28, 151, 234); this.btnOpenFileDialog.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOpenFileDialog.ForeColor = System.Drawing.SystemColors.ControlText; this.btnOpenFileDialog.Location = new System.Drawing.Point(360, 32); @@ -185,7 +185,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); + this.BackColor = System.Drawing.Color.FromArgb(33, 33, 33); this.ClientSize = new System.Drawing.Size(400, 153); this.Controls.Add(this.mainPanel); this.Controls.Add(this.btnCancel); @@ -217,4 +217,4 @@ private void InitializeComponent() private System.Windows.Forms.TextBox txtCertificatePassword; private System.Windows.Forms.OpenFileDialog openFileDialog; } -} \ No newline at end of file +} diff --git a/src/ServiceBusExplorer/Forms/UploadCertificateForm.cs b/src/ServiceBusExplorer/Forms/UploadCertificateForm.cs index ac8afd8f..035a540e 100644 --- a/src/ServiceBusExplorer/Forms/UploadCertificateForm.cs +++ b/src/ServiceBusExplorer/Forms/UploadCertificateForm.cs @@ -1,4 +1,4 @@ -#region Copyright +#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // @@ -21,6 +21,7 @@ #region Using Directives +using ServiceBusExplorer.Helpers; using System; using System.Drawing; using System.Windows.Forms; @@ -35,6 +36,7 @@ public partial class UploadCertificateForm : Form public UploadCertificateForm() { InitializeComponent(); + ThemeManager.Apply(this); } #endregion @@ -100,3 +102,4 @@ private void btnOpenFileDialog_Click(object sender, EventArgs e) #endregion } } + diff --git a/src/ServiceBusExplorer/Helpers/MainFormThemeExtension.cs b/src/ServiceBusExplorer/Helpers/MainFormThemeExtension.cs new file mode 100644 index 00000000..1478ba96 --- /dev/null +++ b/src/ServiceBusExplorer/Helpers/MainFormThemeExtension.cs @@ -0,0 +1,55 @@ +// MainFormThemeExtension.cs — gerado pelo build-dark-theme.ps1 +// Caminho: src/ServiceBusExplorer/Helpers/MainFormThemeExtension.cs +using System; +using System.Windows.Forms; +using ServiceBusExplorer.Forms; + +namespace ServiceBusExplorer.Helpers +{ + internal static class MainFormThemeExtension + { + internal static void InitTheme(MainForm form, MenuStrip menuStrip) + { + ThemeManager.Apply(form); + + // Titlebar nativa escura (Windows 10 1903+) + form.HandleCreated += (s, e) => + { + ThemeManager.ApplyTitleBar(form.Handle); + ThemeManager.ThemeChanged += (_, __) => ThemeManager.ApplyTitleBar(form.Handle); + }; + + // Adicionar submenu Theme > Dark / Light no menu View + ToolStripMenuItem viewMenu = null; + foreach (ToolStripItem item in menuStrip.Items) + { + if (item is ToolStripMenuItem mi && + mi.Text.Replace("&", "").Equals("View", StringComparison.OrdinalIgnoreCase)) + { + viewMenu = mi; + break; + } + } + if (viewMenu == null) return; + + var themeMenu = new ToolStripMenuItem("Theme"); + var darkItem = new ToolStripMenuItem("Dark") { CheckOnClick = false }; + var lightItem = new ToolStripMenuItem("Light") { CheckOnClick = false }; + + Action updateChecks = () => + { + darkItem.Checked = ThemeManager.IsDark; + lightItem.Checked = !ThemeManager.IsDark; + }; + + darkItem.Click += (s, e) => { ThemeManager.SetTheme(Theme.Dark); updateChecks(); }; + lightItem.Click += (s, e) => { ThemeManager.SetTheme(Theme.Light); updateChecks(); }; + + themeMenu.DropDownItems.Add(darkItem); + themeMenu.DropDownItems.Add(lightItem); + viewMenu.DropDownItems.Add(new ToolStripSeparator()); + viewMenu.DropDownItems.Add(themeMenu); + updateChecks(); + } + } +} diff --git a/src/ServiceBusExplorer/Helpers/ThemeManager.cs b/src/ServiceBusExplorer/Helpers/ThemeManager.cs new file mode 100644 index 00000000..b393cf52 --- /dev/null +++ b/src/ServiceBusExplorer/Helpers/ThemeManager.cs @@ -0,0 +1,708 @@ +// ThemeManager.cs +// Path: src/ServiceBusExplorer/Helpers/ThemeManager.cs +// +// Manages Dark/Light theme with persistence in user's app.config. +// Usage: +// ThemeManager.Apply(form) — applies current theme to the form +// ThemeManager.IsDark — true if dark theme active +// ThemeManager.CurrentTheme — "Dark" or "Light" + +using System; +using System.Configuration; +using System.Drawing; +using System.Windows.Forms; + +namespace ServiceBusExplorer.Helpers +{ + public enum Theme + { + Light, + Dark + } + + public static class ThemeManager + { + // Key in app.config + const string ConfigKey = "theme"; + + // Current state + static Theme CurrentTheme { get; set; } = Theme.Dark; + + public static bool IsDark => CurrentTheme == Theme.Dark; + + // Event fired when theme changes + public static event EventHandler ThemeChanged; + + // Dark palette + static class Dark + { + public static readonly Color Background = Color.FromArgb(33, 33, 33); + public static readonly Color Surface = Color.FromArgb(42, 42, 42); + public static readonly Color SurfaceLight = Color.FromArgb(51, 51, 51); + public static readonly Color SurfaceLighter = Color.FromArgb(64, 64, 64); + public static readonly Color Border = Color.FromArgb(72, 72, 72); + public static readonly Color Foreground = Color.FromArgb(236, 236, 236); + public static readonly Color ForegroundDim = Color.FromArgb(160, 160, 160); + public static readonly Color Accent = Color.FromArgb(0, 122, 204); + public static readonly Color AccentHover = Color.FromArgb(28, 151, 234); + public static readonly Color AccentText = Color.White; + } + + // Light palette (Windows system colors) + static class Light + { + // Original Service Bus Explorer light palette + public static readonly Color Background = Color.FromArgb(235, 241, 247); + public static readonly Color Surface = Color.FromArgb(215, 228, 242); + public static readonly Color SurfaceLight = Color.FromArgb(255, 255, 255); + public static readonly Color SurfaceLighter = Color.FromArgb(194, 213, 229); + public static readonly Color Border = Color.FromArgb(153, 180, 209); + public static readonly Color Foreground = SystemColors.ControlText; + public static readonly Color ForegroundDim = Color.FromArgb(26, 59, 105); + public static readonly Color Accent = Color.FromArgb(153, 180, 209); + public static readonly Color AccentHover = Color.FromArgb(194, 213, 229); + public static readonly Color AccentText = Color.White; + public static readonly Color HeaderStart = Color.FromArgb(215, 228, 242); + public static readonly Color HeaderEnd = Color.FromArgb(153, 180, 209); + public static readonly Color HeaderText = Color.White; + } + + // Shortcuts to active palette + public static Color Background => IsDark ? Dark.Background : Light.Background; + public static Color Surface => IsDark ? Dark.Surface : Light.Surface; + public static Color SurfaceLight => IsDark ? Dark.SurfaceLight : Light.SurfaceLight; + public static Color SurfaceLighter => IsDark ? Dark.SurfaceLighter : Light.SurfaceLighter; + public static Color Border => IsDark ? Dark.Border : Light.Border; + public static Color Foreground => IsDark ? Dark.Foreground : Light.Foreground; + public static Color ForegroundDim => IsDark ? Dark.ForegroundDim : Light.ForegroundDim; + public static Color Accent => IsDark ? Dark.Accent : Light.Accent; + public static Color AccentHover => IsDark ? Dark.AccentHover : Light.AccentHover; + public static Color AccentText => IsDark ? Dark.AccentText : Light.AccentText; + + // Initialize: load saved preference + static ThemeManager() + { + LoadFromConfig(); + } + + static void LoadFromConfig() + { + try + { + var val = ConfigurationManager.AppSettings[ConfigKey]; + if (!string.IsNullOrEmpty(val) && + Enum.TryParse(val, ignoreCase: true, out var saved)) + { + CurrentTheme = saved; + } + } + catch + { + /* no config, uses Dark as default */ + } + } + + static void SaveToConfig(Theme theme) + { + try + { + var config = ConfigurationManager.OpenExeConfiguration( + ConfigurationUserLevel.PerUserRoamingAndLocal); + config.AppSettings.Settings.Remove(ConfigKey); + config.AppSettings.Settings.Add(ConfigKey, theme.ToString()); + config.Save(ConfigurationSaveMode.Modified); + ConfigurationManager.RefreshSection("appSettings"); + } + catch + { + /* silence persistence errors */ + } + } + + // Public API + + /// Applies current theme to a Form and all its controls. + /// Accepts Form, UserControl or any Control. + public static void Apply(Control control) + { + ApplyToControl(control); + ApplyRecursive(control); + + control.ControlAdded -= OnControlAdded; + control.ControlAdded += OnControlAdded; + + // For Forms: reapply on Load to override any colors + // that the Designer might have set after the constructor + if (control is Form form) + { + form.Load -= OnFormLoad; + form.Load += OnFormLoad; + } + } + + static void OnControlAdded(object sender, ControlEventArgs e) + { + ApplyRecursive(e.Control); + } + + static void OnFormLoad(object sender, EventArgs e) + { + if (sender is Form form) + { + ApplyToControl(form); + ApplyRecursive(form); + } + } + + /// Sets a specific theme. + public static void SetTheme(Theme theme) + { + if (CurrentTheme == theme) return; + CurrentTheme = theme; + SaveToConfig(CurrentTheme); + + foreach (Form f in Application.OpenForms) + { + ApplyToControl(f); + ApplyRecursive(f); + f.Refresh(); + } + + ThemeChanged?.Invoke(null, EventArgs.Empty); + } + + // Recursive application + + // Their original light theme colors — any control with these colors is forced to dark + static readonly Color[] LightThemeColors = + { + Color.FromArgb(215, 228, 242), // main light blue + Color.FromArgb(153, 180, 209), // medium blue hover + Color.FromArgb(235, 241, 247), // bluish off-white + Color.FromArgb(194, 213, 229), // secondary light blue + }; + + static bool IsLightThemeColor(Color c) + { + foreach (var lc in LightThemeColors) + if (Math.Abs(c.R - lc.R) < 15 && Math.Abs(c.G - lc.G) < 15 && Math.Abs(c.B - lc.B) < 15) + return true; + return false; + } + + static void ApplyRecursive(Control control) + { + ApplyToControl(control); + + // Force override of any residual light theme colors (dark mode) + if (IsDark && IsLightThemeColor(control.BackColor)) + control.BackColor = Background; + if (IsDark && IsLightThemeColor(control.ForeColor)) + control.ForeColor = Foreground; + + // Force override of white/Window ForeColor in light theme (invisible) + if (!IsDark && (control.ForeColor == Color.White || + control.ForeColor == SystemColors.Window)) + control.ForeColor = Foreground; + + // Force override of pure white or Window BackColor in dark + if (IsDark && (control.BackColor == Color.White || + control.BackColor == SystemColors.Window)) + control.BackColor = Surface; + + if (control is PictureBox pictureBox && + (control.Name == "logoPictureBox" || control.Name == "pbAzure")) + { + ApplyAzureBranding(pictureBox); + return; + } + + // Grouper: custom control with its own color properties + ApplyToGrouper(control); + // HeaderPanel: custom gradient header + ApplyToHeaderPanel(control); + + foreach (Control child in control.Controls) + ApplyRecursive(child); + + if (control is ToolStrip ts) ApplyToToolStrip(ts); + if (control is DataGridView dgv) ApplyToDataGridView(dgv); + if (control is TabControl tc) ApplyToTabControl(tc); + } + + static void ApplyToControl(Control control) + { + if (control is Label azureLabel && control.Name != null && control.Name.EndsWith("_ThemeText", StringComparison.Ordinal)) + { + azureLabel.BackColor = Color.Transparent; + azureLabel.ForeColor = IsDark ? Foreground : Color.FromArgb(120, 134, 150); + azureLabel.TextAlign = ContentAlignment.MiddleRight; + return; + } + + // AboutForm: has decorative BackgroundImage — preserve original appearance + if (control.BackgroundImage != null && control is Form) + return; + + // Labels with BackColor=Transparent inside a form with BackgroundImage + // inherit the background — don't change to avoid breaking visual layout + if (control.BackColor == Color.Transparent) + { + var parent = control.Parent; + while (parent != null) + { + if (parent.BackgroundImage != null) return; + parent = parent.Parent; + } + } + + control.BackColor = Background; + control.ForeColor = Foreground; + + switch (control) + { + case RichTextBox rtb: + rtb.BackColor = SurfaceLight; + rtb.ForeColor = Foreground; + rtb.BorderStyle = BorderStyle.FixedSingle; + break; + + case TextBox tb: + tb.BackColor = SurfaceLight; + tb.ForeColor = Foreground; + tb.BorderStyle = BorderStyle.FixedSingle; + break; + + case ComboBox cb: + cb.BackColor = SurfaceLight; + cb.ForeColor = Foreground; + cb.FlatStyle = IsDark ? FlatStyle.Flat : FlatStyle.Standard; + break; + + case CheckBox chk: + chk.BackColor = Color.Transparent; + chk.ForeColor = Foreground; + break; + + case RadioButton rb: + rb.BackColor = Color.Transparent; + rb.ForeColor = Foreground; + break; + + case Button btn: + if (IsDark) + { + btn.BackColor = Accent; + btn.ForeColor = AccentText; + btn.FlatStyle = FlatStyle.Flat; + btn.FlatAppearance.BorderColor = Accent; + btn.FlatAppearance.MouseOverBackColor = AccentHover; + btn.FlatAppearance.MouseDownBackColor = Color.FromArgb(0, 100, 180); + } + else + { + btn.BackColor = SystemColors.ButtonFace; + btn.ForeColor = SystemColors.ControlText; + btn.FlatStyle = FlatStyle.Standard; + btn.UseVisualStyleBackColor = true; + } + + btn.Cursor = Cursors.Hand; + break; + + case ListBox lb: + lb.BackColor = SurfaceLight; + lb.ForeColor = Foreground; + break; + + case ListView lv: + lv.BackColor = SurfaceLight; + lv.ForeColor = Foreground; + lv.BorderStyle = BorderStyle.FixedSingle; + break; + + case TreeView tv: + tv.BackColor = SurfaceLight; + tv.ForeColor = Foreground; + tv.LineColor = Border; + tv.BorderStyle = BorderStyle.FixedSingle; + break; + + // TabPage before Panel (inheritance) + case TabPage tp: + tp.BackColor = Surface; + tp.ForeColor = Foreground; + break; + + case GroupBox gb: + gb.BackColor = Surface; + gb.ForeColor = ForegroundDim; + break; + + case Panel pnl: + pnl.BackColor = Surface; + break; + + case SplitContainer sc: + sc.BackColor = Border; + sc.Panel1.BackColor = Surface; + sc.Panel2.BackColor = Surface; + break; + + case NumericUpDown nud: + nud.BackColor = SurfaceLight; + nud.ForeColor = Foreground; + break; + + case DateTimePicker dtp: + dtp.BackColor = SurfaceLight; + dtp.ForeColor = Foreground; + dtp.CalendarMonthBackground = SurfaceLight; + dtp.CalendarForeColor = Foreground; + dtp.CalendarTitleBackColor = Accent; + dtp.CalendarTitleForeColor = AccentText; + break; + + // LinkLabel before Label (inheritance) + case LinkLabel llbl: + llbl.BackColor = Color.Transparent; + llbl.ForeColor = Accent; + llbl.LinkColor = Accent; + llbl.ActiveLinkColor = AccentHover; + llbl.VisitedLinkColor = Accent; + llbl.LinkBehavior = LinkBehavior.HoverUnderline; + break; + + case Label lbl: + lbl.BackColor = Color.Transparent; + lbl.ForeColor = Foreground; + break; + + case ToolStripContainer tsc: + tsc.BackColor = Surface; + tsc.TopToolStripPanel.BackColor = Surface; + tsc.BottomToolStripPanel.BackColor = Surface; + tsc.LeftToolStripPanel.BackColor = Surface; + tsc.RightToolStripPanel.BackColor = Surface; + tsc.ContentPanel.BackColor = Background; + break; + + // ContextMenuStrip > MenuStrip > StatusStrip > ToolStrip (inheritance) + case ContextMenuStrip cms: + cms.BackColor = SurfaceLight; + cms.ForeColor = Foreground; + cms.RenderMode = ToolStripRenderMode.Professional; + cms.Renderer = IsDark ? (ToolStripRenderer)new DarkToolStripRenderer() : new ToolStripProfessionalRenderer(); + ApplyToMenuItems(cms.Items); + break; + + case MenuStrip ms: + ms.BackColor = Surface; + ms.ForeColor = Foreground; + ms.RenderMode = ToolStripRenderMode.Professional; + ms.Renderer = IsDark ? (ToolStripRenderer)new DarkToolStripRenderer() : new ToolStripProfessionalRenderer(); + ApplyToMenuItems(ms.Items); + break; + + case StatusStrip ss: + ss.BackColor = Surface; + ss.ForeColor = ForegroundDim; + ss.SizingGrip = false; + ss.RenderMode = ToolStripRenderMode.Professional; + ss.Renderer = IsDark ? (ToolStripRenderer)new DarkToolStripRenderer() : new ToolStripProfessionalRenderer(); + foreach (ToolStripItem item in ss.Items) + { + item.BackColor = Surface; + item.ForeColor = ForegroundDim; + } + + break; + + case PropertyGrid pg: + pg.BackColor = Background; + pg.ViewBackColor = SurfaceLight; + pg.ViewForeColor = Foreground; + pg.LineColor = Border; + pg.CategoryForeColor = ForegroundDim; + pg.HelpBackColor = Surface; + pg.HelpForeColor = Foreground; + pg.CommandsBackColor = Surface; + pg.CommandsForeColor = Foreground; + break; + } + } + + static void ApplyToHeaderPanel(Control control) + { + var t = control.GetType(); + if (t.Name != "HeaderPanel") return; + + var bg = IsDark ? Surface : Light.HeaderStart; + var bg2 = IsDark ? Background : Light.HeaderEnd; + var fg = IsDark ? Foreground : Light.HeaderText; + + TrySetColor(t, control, "HeaderColor1", bg); + TrySetColor(t, control, "HeaderColor2", bg2); + + control.ForeColor = fg; + control.BackColor = IsDark ? bg2 : Light.SurfaceLight; + control.Invalidate(true); + } + + static void ApplyToGrouper(Control control) + { + // Grouper has BackgroundColor, BorderColor, CustomGroupBoxColor + // We use reflection to avoid circular namespace dependency + var t = control.GetType(); + if (t.Name != "Grouper") return; + + var bg = IsDark ? Background : Light_Background; + var fg = IsDark ? Foreground : Light_Foreground; + var bord = IsDark ? Border : Light_Border; + + TrySetColor(t, control, "BackgroundColor", bg); + TrySetColor(t, control, "BackgroundGradientColor", bg); + TrySetColor(t, control, "CustomGroupBoxColor", bg); + TrySetColor(t, control, "BorderColor", bord); + TrySetColor(t, control, "GroupTitleColor", fg); + + // Grouper title ForeColor + control.ForeColor = fg; + control.BackColor = bg; + + // Force repaint — Grouper uses custom OnPaint + control.Invalidate(true); + } + + static void TrySetColor(Type t, object obj, string propName, Color color) + { + try + { + var prop = t.GetProperty(propName); + if (prop != null && prop.CanWrite) + prop.SetValue(obj, color); + } + catch + { + // ignored + } + } + + // Light colors for Grouper + static Color Light_Background => Light.Background; + static Color Light_Foreground => Light.Foreground; + static Color Light_Border => Light.Border; + + static void ApplyToToolStrip(ToolStrip ts) + { + ts.BackColor = Surface; + ts.ForeColor = Foreground; + ts.RenderMode = ToolStripRenderMode.Professional; + ts.Renderer = IsDark ? (ToolStripRenderer)new DarkToolStripRenderer() : new ToolStripProfessionalRenderer(); + foreach (ToolStripItem item in ts.Items) + { + item.BackColor = Surface; + item.ForeColor = Foreground; + } + } + + static void ApplyToDataGridView(DataGridView dgv) + { + dgv.BackgroundColor = Background; + dgv.GridColor = Border; + dgv.BorderStyle = BorderStyle.None; + dgv.DefaultCellStyle.BackColor = SurfaceLight; + dgv.DefaultCellStyle.ForeColor = Foreground; + dgv.DefaultCellStyle.SelectionBackColor = Accent; + dgv.DefaultCellStyle.SelectionForeColor = AccentText; + dgv.AlternatingRowsDefaultCellStyle.BackColor = Surface; + dgv.AlternatingRowsDefaultCellStyle.ForeColor = Foreground; + dgv.ColumnHeadersDefaultCellStyle.BackColor = Surface; + dgv.ColumnHeadersDefaultCellStyle.ForeColor = ForegroundDim; + dgv.ColumnHeadersDefaultCellStyle.SelectionBackColor = Surface; + dgv.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single; + dgv.RowHeadersDefaultCellStyle.BackColor = Surface; + dgv.RowHeadersDefaultCellStyle.ForeColor = ForegroundDim; + dgv.RowHeadersDefaultCellStyle.SelectionBackColor = Accent; + dgv.EnableHeadersVisualStyles = false; + } + + static void ApplyToTabControl(TabControl tc) + { + tc.BackColor = Background; + } + + static void ApplyAzureBranding(PictureBox pictureBox) + { + pictureBox.Visible = false; + pictureBox.BackColor = Color.Transparent; + + if (pictureBox.Parent == null) + { + return; + } + + var labelName = pictureBox.Name + "_ThemeText"; + Label azureLabel = null; + + foreach (Control sibling in pictureBox.Parent.Controls) + { + if (sibling is Label label && sibling.Name == labelName) + { + azureLabel = label; + break; + } + } + + if (azureLabel == null) + { + azureLabel = new Label + { + Name = labelName, + AutoSize = false, + AutoEllipsis = false, + Text = "Microsoft Azure", + UseCompatibleTextRendering = true + }; + pictureBox.Parent.Controls.Add(azureLabel); + } + + var bounds = pictureBox.Bounds; + if (bounds.X > 0) + { + var extraWidth = Math.Min(40, bounds.X); + bounds.X -= extraWidth; + bounds.Width += extraWidth; + } + + azureLabel.Anchor = pictureBox.Anchor; + azureLabel.Bounds = bounds; + azureLabel.TextAlign = ContentAlignment.MiddleRight; + azureLabel.BackColor = Color.Transparent; + azureLabel.ForeColor = IsDark ? Foreground : Color.FromArgb(120, 134, 150); + azureLabel.Font = new Font("Segoe UI", 10.5f, FontStyle.Regular, GraphicsUnit.Point); + azureLabel.Visible = true; + azureLabel.BringToFront(); + } + + static void ApplyToMenuItems(ToolStripItemCollection items) + { + foreach (ToolStripItem item in items) + { + item.BackColor = SurfaceLight; + item.ForeColor = Foreground; + if (item is ToolStripMenuItem mi) + ApplyToMenuItems(mi.DropDownItems); + } + } + + // DWM: native dark title bar (Windows 10 1903+) + [System.Runtime.InteropServices.DllImport("dwmapi.dll")] + static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, + ref int attrValue, int attrSize); + + const int DWMWA_USE_IMMERSIVE_DARK_MODE = 20; + + public static void ApplyTitleBar(IntPtr handle) + { + try + { + var value = IsDark ? 1 : 0; + DwmSetWindowAttribute(handle, DWMWA_USE_IMMERSIVE_DARK_MODE, + ref value, sizeof(int)); + } + catch + { + /* Windows < 10 1903 */ + } + } + } + + // Dark renderer for ToolStrip / MenuStrip + class DarkToolStripRenderer : ToolStripProfessionalRenderer + { + public DarkToolStripRenderer() : base(new DarkColorTable()) + { + } + + protected override void OnRenderMenuItemBackground(ToolStripItemRenderEventArgs e) + { + var color = e.Item.Selected + ? ThemeManager.SurfaceLighter + : ThemeManager.SurfaceLight; + using var brush = new SolidBrush(color); + e.Graphics.FillRectangle(brush, e.Item.ContentRectangle); + } + + protected override void OnRenderToolStripBackground(ToolStripRenderEventArgs e) + { + using var brush = new SolidBrush(ThemeManager.Surface); + e.Graphics.FillRectangle(brush, e.AffectedBounds); + } + + protected override void OnRenderButtonBackground(ToolStripItemRenderEventArgs e) + { + if (e.Item.Selected || e.Item.Pressed) + { + var color = e.Item.Pressed ? ThemeManager.Accent : ThemeManager.SurfaceLighter; + using var brush = new SolidBrush(color); + e.Graphics.FillRectangle(brush, new Rectangle(Point.Empty, e.Item.Size)); + } + } + + protected override void OnRenderSeparator(ToolStripSeparatorRenderEventArgs e) + { + using var pen = new Pen(ThemeManager.Border); + var r = e.Item.ContentRectangle; + if (e.Vertical) + e.Graphics.DrawLine(pen, r.Left + r.Width / 2, r.Top, r.Left + r.Width / 2, r.Bottom); + else + e.Graphics.DrawLine(pen, r.Left, r.Top + r.Height / 2, r.Right, r.Top + r.Height / 2); + } + + protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e) + { + e.TextColor = e.Item.Enabled ? ThemeManager.Foreground : ThemeManager.ForegroundDim; + base.OnRenderItemText(e); + } + } + + class DarkColorTable : ProfessionalColorTable + { + public override Color MenuItemBorder => ThemeManager.Border; + public override Color MenuItemSelected => ThemeManager.SurfaceLighter; + public override Color MenuItemSelectedGradientBegin => ThemeManager.SurfaceLighter; + public override Color MenuItemSelectedGradientEnd => ThemeManager.SurfaceLighter; + public override Color MenuItemPressedGradientBegin => ThemeManager.Accent; + public override Color MenuItemPressedGradientEnd => ThemeManager.Accent; + public override Color MenuStripGradientBegin => ThemeManager.Surface; + public override Color MenuStripGradientEnd => ThemeManager.Surface; + public override Color ToolStripDropDownBackground => ThemeManager.SurfaceLight; + public override Color ImageMarginGradientBegin => ThemeManager.Surface; + public override Color ImageMarginGradientMiddle => ThemeManager.Surface; + public override Color ImageMarginGradientEnd => ThemeManager.Surface; + public override Color ToolStripBorder => ThemeManager.Border; + public override Color SeparatorLight => ThemeManager.Border; + public override Color SeparatorDark => ThemeManager.SurfaceLight; + public override Color ButtonSelectedBorder => ThemeManager.Accent; + public override Color ButtonSelectedGradientBegin => ThemeManager.SurfaceLighter; + public override Color ButtonSelectedGradientEnd => ThemeManager.SurfaceLighter; + public override Color ButtonCheckedGradientBegin => ThemeManager.Accent; + public override Color ButtonCheckedGradientEnd => ThemeManager.Accent; + public override Color ToolStripGradientBegin => ThemeManager.Surface; + public override Color ToolStripGradientMiddle => ThemeManager.Surface; + public override Color ToolStripGradientEnd => ThemeManager.Surface; + public override Color ToolStripContentPanelGradientBegin => ThemeManager.Background; + public override Color ToolStripContentPanelGradientEnd => ThemeManager.Background; + public override Color StatusStripGradientBegin => ThemeManager.Surface; + public override Color StatusStripGradientEnd => ThemeManager.Surface; + public override Color CheckBackground => ThemeManager.Accent; + public override Color CheckPressedBackground => ThemeManager.AccentHover; + public override Color CheckSelectedBackground => ThemeManager.Accent; + public override Color OverflowButtonGradientBegin => ThemeManager.Surface; + public override Color OverflowButtonGradientMiddle => ThemeManager.Surface; + public override Color OverflowButtonGradientEnd => ThemeManager.Surface; + public override Color GripLight => ThemeManager.Border; + public override Color GripDark => ThemeManager.Surface; + } +} diff --git a/src/ServiceBusExplorer/UIHelpers/TabControlHelper.cs b/src/ServiceBusExplorer/UIHelpers/TabControlHelper.cs index b511607b..c1c3e067 100644 --- a/src/ServiceBusExplorer/UIHelpers/TabControlHelper.cs +++ b/src/ServiceBusExplorer/UIHelpers/TabControlHelper.cs @@ -21,38 +21,27 @@ #region Using Directives -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; using System.Drawing; -using System.Globalization; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Transactions; using System.Windows.Forms; -using System.Windows.Forms.DataVisualization.Charting; -using ServiceBusExplorer.Forms; using ServiceBusExplorer.Helpers; -using Microsoft.ServiceBus.Messaging; -using ServiceBusExplorer.Enums; -using Cursor = System.Windows.Forms.Cursor; -using FastColoredTextBoxNS; -using ServiceBusExplorer.UIHelpers; -using static ServiceBusExplorer.ServiceBusHelper; -using ServiceBusExplorer.Utilities.Helpers; using System.Drawing.Text; #endregion namespace ServiceBusExplorer.UIHelpers { + using System; + public static class TabControlHelper { public static void DrawTabControlTabs(TabControl tabControl, DrawItemEventArgs e, ImageList images) { + if (ThemeManager.IsDark) + { + DrawDarkTabs(tabControl, e, images); + return; + } + // Get the bounding end of tab strip rectangles. var tabstripEndRect = tabControl.GetTabRect(tabControl.TabPages.Count - 1); var tabstripEndRectF = new RectangleF(tabstripEndRect.X + tabstripEndRect.Width, tabstripEndRect.Y - 5, @@ -150,6 +139,79 @@ public static void DrawTabControlTabs(TabControl tabControl, DrawItemEventArgs e } } + private static void DrawDarkTabs(TabControl tabControl, DrawItemEventArgs e, ImageList images) + { + if (tabControl.TabPages.Count == 0 || tabControl.SelectedIndex < 0) + { + return; + } + + var tabstripEndRect = tabControl.GetTabRect(tabControl.TabPages.Count - 1); + var tabstripEndRectF = new RectangleF(tabstripEndRect.X + tabstripEndRect.Width, tabstripEndRect.Y - 5, + tabControl.Width - (tabstripEndRect.X + tabstripEndRect.Width), tabstripEndRect.Height + 5); + var leftVerticalLineRect = new RectangleF(2, tabstripEndRect.Y + tabstripEndRect.Height + 2, 2, + tabControl.TabPages[tabControl.SelectedIndex].Height + 2); + var rightVerticalLineRect = new RectangleF(tabControl.TabPages[tabControl.SelectedIndex].Width + 4, + tabstripEndRect.Y + tabstripEndRect.Height + 2, 2, + tabControl.TabPages[tabControl.SelectedIndex].Height + 2); + var bottomHorizontalLineRect = new RectangleF(2, + tabstripEndRect.Y + tabstripEndRect.Height + tabControl.TabPages[tabControl.SelectedIndex].Height + 2, + tabControl.TabPages[tabControl.SelectedIndex].Width + 4, 2); + RectangleF leftVerticalBarNearFirstTab = new Rectangle(0, 0, 2, tabstripEndRect.Height + 2); + + var page = tabControl.TabPages[e.Index]; + var selected = e.Index == tabControl.SelectedIndex; + var tabBounds = selected + ? new Rectangle(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height + 1) + : new Rectangle(e.Bounds.X, e.Bounds.Y + 2, e.Bounds.Width, e.Bounds.Height - 2); + var pageBounds = tabControl.DisplayRectangle; + var selectedTabBounds = tabControl.GetTabRect(tabControl.SelectedIndex); + var tabBackColor = selected ? ThemeManager.SurfaceLighter : ThemeManager.Surface; + var tabBorderColor = selected ? ThemeManager.ForegroundDim : ThemeManager.Border; + var textColor = selected ? ThemeManager.Foreground : ThemeManager.ForegroundDim; + + var stripColor = tabControl.Parent != null ? tabControl.Parent.BackColor : ThemeManager.Background; + using (var stripBrush = new SolidBrush(stripColor)) + { + e.Graphics.FillRectangle(stripBrush, tabstripEndRectF); + e.Graphics.FillRectangle(stripBrush, leftVerticalLineRect); + e.Graphics.FillRectangle(stripBrush, rightVerticalLineRect); + e.Graphics.FillRectangle(stripBrush, bottomHorizontalLineRect); + if (tabControl.SelectedIndex != 0) + { + e.Graphics.FillRectangle(stripBrush, leftVerticalBarNearFirstTab); + } + } + + using (var backBrush = new SolidBrush(tabBackColor)) + using (var borderPen = new Pen(tabBorderColor)) + using (var textBrush = new SolidBrush(textColor)) + using (var sf = new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center, HotkeyPrefix = HotkeyPrefix.Show }) + { + e.Graphics.FillRectangle(backBrush, tabBounds); + e.Graphics.DrawRectangle(borderPen, tabBounds); + + if (selected) + { + using (var innerPen = new Pen(ThemeManager.SurfaceLight)) + { + e.Graphics.DrawLine(innerPen, tabBounds.Left + 1, tabBounds.Top + 1, tabBounds.Right - 2, tabBounds.Top + 1); + } + } + + e.Graphics.DrawString(page.Text, new Font(e.Font.FontFamily, 8.25F, e.Font.Style), textBrush, tabBounds, sf); + } + + using (var contentPen = new Pen(ThemeManager.Border)) + { + e.Graphics.DrawLine(contentPen, pageBounds.Left - 1, selectedTabBounds.Bottom, pageBounds.Left - 1, pageBounds.Bottom); + e.Graphics.DrawLine(contentPen, pageBounds.Right, selectedTabBounds.Bottom, pageBounds.Right, pageBounds.Bottom); + e.Graphics.DrawLine(contentPen, pageBounds.Left - 1, pageBounds.Bottom, pageBounds.Right, pageBounds.Bottom); + e.Graphics.DrawLine(contentPen, 0, pageBounds.Top - 1, selectedTabBounds.Left - 2, pageBounds.Top - 1); + e.Graphics.DrawLine(contentPen, selectedTabBounds.Right + 1, pageBounds.Top - 1, pageBounds.Right, pageBounds.Top - 1); + } + } + static void DrawTitles(TabControl tabControl, DrawItemEventArgs e) { var sf = new StringFormat();