Bloom.Workspace.WorkspaceView.BackgroundColorsForLinux C# (CSharp) Method

BackgroundColorsForLinux() private method

private BackgroundColorsForLinux ( IBloomTabArea currentTabView ) : void
currentTabView IBloomTabArea
return void
        private void BackgroundColorsForLinux(IBloomTabArea currentTabView)
        {
            if (currentTabView.ToolStripBackground == null)
            {
                var bmp = new Bitmap(_toolStrip.Width, _toolStrip.Height);
                using (var g = Graphics.FromImage(bmp))
                {
                    using (var b = new SolidBrush(_panelHoldingToolStrip.BackColor))
                    {
                        g.FillRectangle(b, 0, 0, bmp.Width, bmp.Height);
                    }
                }
                currentTabView.ToolStripBackground = bmp;
            }

            _toolStrip.BackgroundImage = currentTabView.ToolStripBackground;
        }