コード例 #1
0
        public void SetUITheme(UITheme theme)
        {
            m_toolbarRenderer.SetUITheme(theme);

            var backColor = theme.GetAppDrawingColor(UITheme.AppColor.ToolbarLight);

            this.BackColor       = backColor;
            MenuBar.BackColor    = SystemColors.Menu;
            ToolBar.BackColor    = backColor;
            FontBar.BackColor    = backColor;
            StatusBar.BackColor  = backColor;
            FormulaBar.BackColor = backColor;

            // Unfocused colours
            var color     = theme.GetAppDrawingColor(UITheme.AppColor.ToolbarHot);
            var gridColor = new unvell.ReoGrid.Graphics.SolidColor(color.A, color.R, color.G, color.B);

            GridControl.ControlStyle.SetColor(ControlAppearanceColors.ColHeadSelectedNotFocusedStart, gridColor);
            GridControl.ControlStyle.SetColor(ControlAppearanceColors.ColHeadSelectedNotFocusedEnd, gridColor);
            GridControl.ControlStyle.SetColor(ControlAppearanceColors.ColHeadFullSelectedNotFocusedStart, gridColor);
            GridControl.ControlStyle.SetColor(ControlAppearanceColors.ColHeadFullSelectedNotFocusedEnd, gridColor);
            GridControl.ControlStyle.SetColor(ControlAppearanceColors.RowHeadSelectedNotFocused, gridColor);
            GridControl.ControlStyle.SetColor(ControlAppearanceColors.RowHeadFullSelectedNotFocused, gridColor);

            // Focused colours
            color     = DrawingColor.AdjustLighting(color, -0.15f, false);
            gridColor = new unvell.ReoGrid.Graphics.SolidColor(color.A, color.R, color.G, color.B);

            GridControl.ControlStyle.SetColor(ControlAppearanceColors.ColHeadSelectedStart, gridColor);
            GridControl.ControlStyle.SetColor(ControlAppearanceColors.ColHeadSelectedEnd, gridColor);
            GridControl.ControlStyle.SetColor(ControlAppearanceColors.ColHeadFullSelectedStart, gridColor);
            GridControl.ControlStyle.SetColor(ControlAppearanceColors.ColHeadFullSelectedEnd, gridColor);
            GridControl.ControlStyle.SetColor(ControlAppearanceColors.RowHeadSelected, gridColor);
            GridControl.ControlStyle.SetColor(ControlAppearanceColors.RowHeadFullSelected, gridColor);
        }
コード例 #2
0
        public void SetUITheme(UITheme theme)
        {
            m_toolbarRenderer.SetUITheme(theme);

            BackColor         = theme.GetAppDrawingColor(UITheme.AppColor.AppBackLight);
            ToolBar.BackColor = BackColor;
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        public void SetUITheme(UITheme theme)
        {
            m_DayView.SetUITheme(theme);
            m_Toolbar.BackColor = theme.GetAppDrawingColor(UITheme.AppColor.AppBackLight);
            m_TBRenderer.SetUITheme(theme);

            BackColor = theme.GetAppDrawingColor(UITheme.AppColor.AppBackLight);
        }
コード例 #5
0
        public void SetUITheme(UITheme theme)
        {
            m_DayView.SetUITheme(theme);
            m_Toolbar.BackColor = theme.GetAppDrawingColor(UITheme.AppColor.AppBackLight);
            m_TBRenderer.SetUITheme(theme);
            m_SelectedTaskDatesLabel.ForeColor = theme.GetAppDrawingColor(UITheme.AppColor.AppText);
            m_WeekLabel.ForeColor = theme.GetAppDrawingColor(UITheme.AppColor.AppText);

            BackColor = theme.GetAppDrawingColor(UITheme.AppColor.AppBackLight);
        }
コード例 #6
0
        private void InitialiseToolbar()
        {
            m_TBRenderer = new UIThemeToolbarRenderer();
            m_TBRenderer.SetUITheme(new UITheme());
            m_TBRenderer.EnableDrawRowDividers(true);

            this.Toolbar.Renderer = m_TBRenderer;

            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);
        }