private void InitialiseToolbars()
        {
            // Main toolbar
            var tbRenderer = new UIThemeToolbarRenderer();

            tbRenderer.SetUITheme(new UITheme());
            tbRenderer.EnableDrawRowSeparators(true);

            this.Toolbar.Renderer  = tbRenderer;
            this.Toolbar.BackColor = BackColor;

            if (DPIScaling.WantScaling())
            {
                int imageSize = DPIScaling.Scale(16);
                this.Toolbar.ImageScalingSize = new System.Drawing.Size(imageSize, imageSize);
            }

            // Place this at the end to ensure the toolbar has finished its resize
            Toolbars.FixupButtonSizes(this.Toolbar);

            UpdateToolbar();

            // Page toolbars
            var theme = new UITheme();

            theme.SetAppDrawingColor(UITheme.AppColor.AppBackLight, headerPage.BackColor);
            theme.SetAppDrawingColor(UITheme.AppColor.ToolbarLight, headerPage.BackColor);
            theme.SetAppDrawingColor(UITheme.AppColor.ToolbarDark, headerPage.BackColor);

            this.htmlReportHeaderControl.SetUITheme(theme);
            this.htmlReportTitleControl.SetUITheme(theme);
            this.htmlReportTasksControl.SetUITheme(theme);
            this.htmlReportFooterControl.SetUITheme(theme);
        }
        private void SetTabsToolbarBackColor()
        {
            // Since we have no theme, we set the toolbar's
            // back color to the back color of the tabs
            var toolbarTheme = new UITheme();

            toolbarTheme.SetAppDrawingColor(UITheme.AppColor.ToolbarLight, headerPage.BackColor);
            toolbarTheme.SetAppDrawingColor(UITheme.AppColor.ToolbarDark, headerPage.BackColor);
            toolbarTheme.RecalcToolbarHotColor();

            this.htmlReportHeaderControl.SetUITheme(toolbarTheme);
            this.htmlReportTitleControl.SetUITheme(toolbarTheme);
            this.htmlReportTasksControl.SetUITheme(toolbarTheme);
            this.htmlReportFooterControl.SetUITheme(toolbarTheme);
        }