From 01c17e63a6d26085b6db1e188ea3bac3b9e26b30 Mon Sep 17 00:00:00 2001
From: tangxu <tangxu76880903>
Date: 星期三, 06 十一月 2024 09:30:41 +0800
Subject: [PATCH] 修改TreeView颜色

---
 WinFrmUI/DPumpHydr.WinFrmUI.RLT/Docking/Crown/CrownDockGroup.cs |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/WinFrmUI/DPumpHydr.WinFrmUI.RLT/Docking/Crown/CrownDockGroup.cs b/WinFrmUI/DPumpHydr.WinFrmUI.RLT/Docking/Crown/CrownDockGroup.cs
index eb27ecc..66b7dab 100644
--- a/WinFrmUI/DPumpHydr.WinFrmUI.RLT/Docking/Crown/CrownDockGroup.cs
+++ b/WinFrmUI/DPumpHydr.WinFrmUI.RLT/Docking/Crown/CrownDockGroup.cs
@@ -705,7 +705,7 @@
         {
             Graphics g = e.Graphics;
 
-            using (SolidBrush b = new(ThemeProvider.Theme.Colors.GreyBackground))
+            using (SolidBrush b = new(System.Drawing.Color.White))//tangxu ThemeProvider.Theme.Colors.GreyBackground))
             {
                 g.FillRectangle(b, ClientRectangle);
             }
@@ -715,7 +715,7 @@
                 return;
             }
 
-            using (SolidBrush b = new(ThemeProvider.Theme.Colors.MediumBackground))
+            using (SolidBrush b = new(System.Drawing.Color.White))//tangxu ThemeProvider.Theme.Colors.MediumBackground))
             {
                 g.FillRectangle(b, _tabArea.ClientRectangle);
             }
@@ -736,7 +736,7 @@
             {
                 // Color divider
                 bool isActiveGroup = DockPanel.ActiveGroup == this;
-                Color divColor = isActiveGroup ? ThemeProvider.Theme.Colors.BlueSelection : ThemeProvider.Theme.Colors.GreySelection;
+                Color divColor = isActiveGroup ? ThemeProvider.Theme.Colors.BlueSelection : System.Drawing.Color.White;// ThemeProvider.Theme.Colors.GreySelection;
                 using (SolidBrush b = new(divColor))
                 {
                     Rectangle divRect = new(_tabArea.ClientRectangle.Left, _tabArea.ClientRectangle.Bottom - 2, _tabArea.ClientRectangle.Width, 2);
@@ -746,12 +746,12 @@
                 // Content dropdown list
                 Rectangle dropdownRect = new(_tabArea.DropdownRectangle.Left, _tabArea.DropdownRectangle.Top, _tabArea.DropdownRectangle.Width, _tabArea.DropdownRectangle.Height - 2);
 
-                using (SolidBrush b = new(ThemeProvider.Theme.Colors.MediumBackground))
+                using (SolidBrush b = new(System.Drawing.Color.White))//tangxu 绠ご鑳屾櫙鑹�  ThemeProvider.Theme.Colors.MediumBackground))
                 {
                     g.FillRectangle(b, dropdownRect);
                 }
 
-                using Bitmap img = Properties.Resources.arrow;
+                using Bitmap img = Properties.Resources.arrow;//绠ご鏄伆鑹�, 浠ュ悗鏀规垚鍒殑棰滆壊
                 g.DrawImageUnscaled(img, dropdownRect.Left + (dropdownRect.Width / 2) - (img.Width / 2), dropdownRect.Top + (dropdownRect.Height / 2) - (img.Height / 2) + 1);
             }
         }
@@ -763,18 +763,19 @@
             bool isVisibleTab = VisibleContent == tab.DockContent;
             bool isActiveGroup = DockPanel.ActiveGroup == this;
 
-            Color bgColor = isVisibleTab ? ThemeProvider.Theme.Colors.BlueSelection : ThemeProvider.Theme.Colors.DarkBackground;
+            Color bgColor =   isVisibleTab ? ThemeProvider.Theme.Colors.BlueSelection : System.Drawing.Color.White;// ThemeProvider.Theme.Colors.DarkBackground;
 
-            if (!isActiveGroup)
-            {
-                bgColor = isVisibleTab ? ThemeProvider.Theme.Colors.GreySelection : ThemeProvider.Theme.Colors.DarkBackground;
-            }
+            //if (!isActiveGroup)
+            //{
+            //    bgColor = isVisibleTab ? ThemeProvider.Theme.Colors.GreySelection : System.Drawing.Color.White;//ThemeProvider.Theme.Colors.DarkBackground;
+            //    //bgColor = isVisibleTab ? : ThemeProvider.Theme.Colors.DarkBackground;
+            //}
 
             if (tab.Hot && !isVisibleTab)
             {
-                bgColor = ThemeProvider.Theme.Colors.MediumBackground;
+                bgColor = System.Drawing.Color.Gray;// ThemeProvider.Theme.Colors.MediumBackground;
             }
-
+         
             using (SolidBrush b = new(bgColor))
             {
                 g.FillRectangle(b, tabRect);
@@ -840,10 +841,10 @@
             bool isVisibleTab = VisibleContent == tab.DockContent;
 
             Color bgColor = isVisibleTab ? ThemeProvider.Theme.Colors.GreyBackground : ThemeProvider.Theme.Colors.DarkBackground;
-
+            //System.Drawing.Color.White : System.Drawing.Color.Gray;//
             if (tab.Hot && !isVisibleTab)
             {
-                bgColor = ThemeProvider.Theme.Colors.MediumBackground;
+                bgColor = System.Drawing.Color.Gray;//ThemeProvider.Theme.Colors.MediumBackground;
             }
 
             using (SolidBrush b = new(bgColor))

--
Gitblit v1.9.3