tangxu
2024-11-06 01c17e63a6d26085b6db1e188ea3bac3b9e26b30
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,16 +763,17 @@
            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))
@@ -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))