コード例 #1
0
 /// <summary>
 /// Initialize a new instance of the PaletteRibbonDisabled class.
 /// </summary>
 /// <param name="inherit">Source for inheriting values.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public PaletteRibbonDisabled(PaletteRibbonRedirect inherit,
                              NeedPaintHandler needPaint)
 {
     // Create storage that maps onto the inherit instances
     _ribbonGroupCheckBoxText    = new PaletteRibbonText(inherit.RibbonGroupCheckBoxText, needPaint);
     _ribbonGroupButtonText      = new PaletteRibbonText(inherit.RibbonGroupButtonText, needPaint);
     _ribbonGroupLabelText       = new PaletteRibbonText(inherit.RibbonGroupLabelText, needPaint);
     _ribbonGroupRadioButtonText = new PaletteRibbonText(inherit.RibbonGroupRadioButtonText, needPaint);
 }
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteRibbonGroupBaseText class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="textStyle">Inherit text style.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteRibbonGroupBaseText(PaletteRedirect redirect,
                                          PaletteRibbonTextStyle textStyle,
                                          NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateInherit = new PaletteRibbonTextInheritRedirect(redirect, textStyle);
     StateCommon   = new PaletteRibbonText(_stateInherit, needPaint);
     StateNormal   = new PaletteRibbonText(StateCommon, needPaint);
     StateDisabled = new PaletteRibbonText(StateCommon, needPaint);
 }
コード例 #3
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteRibbonGroupCollapsedText class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteRibbonGroupCollapsedText(PaletteRedirect redirect,
                                               NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateInherit        = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonGroupCollapsedText);
     StateCommon          = new PaletteRibbonText(_stateInherit, needPaint);
     StateNormal          = new PaletteRibbonText(StateCommon, needPaint);
     StateTracking        = new PaletteRibbonText(StateCommon, needPaint);
     StateContextNormal   = new PaletteRibbonText(StateCommon, needPaint);
     StateContextTracking = new PaletteRibbonText(StateCommon, needPaint);
 }
コード例 #4
0
 /// <summary>
 /// Initialize a new instance of the PaletteRibbonGroupTab class.
 /// </summary>
 /// <param name="inherit">Source for inheriting values.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public PaletteRibbonGroupTab(PaletteRibbonRedirect inherit,
                              NeedPaintHandler needPaint)
     : base(inherit, needPaint)
 {
     // Create storage that maps onto the inherit instances
     _ribbonGroupNormalBorder         = new PaletteRibbonBack(inherit.RibbonGroupNormalBorder, needPaint);
     _ribbonGroupNormalTitle          = new PaletteRibbonDouble(inherit.RibbonGroupNormalTitle, inherit.RibbonGroupNormalTitle, needPaint);
     _ribbonGroupCollapsedBorder      = new PaletteRibbonBack(inherit.RibbonGroupCollapsedBorder, needPaint);
     _ribbonGroupCollapsedBack        = new PaletteRibbonBack(inherit.RibbonGroupCollapsedBack, needPaint);
     _ribbonGroupCollapsedFrameBorder = new PaletteRibbonBack(inherit.RibbonGroupCollapsedFrameBorder, needPaint);
     _ribbonGroupCollapsedFrameBack   = new PaletteRibbonBack(inherit.RibbonGroupCollapsedFrameBack, needPaint);
     _ribbonGroupCollapsedText        = new PaletteRibbonText(inherit.RibbonGroupCollapsedText, needPaint);
 }
コード例 #5
0
        /// <summary>
        /// Initialize a new instance of the PaletteRibbonAppButton class.
        /// </summary>
        /// <param name="inherit">Source for inheriting values.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteRibbonAppButton(PaletteRibbonRedirect inherit,
                                      NeedPaintHandler needPaint)
        {
            Debug.Assert(inherit != null);

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Create storage that maps onto the inherit instances
            _ribbonAppButton                 = new PaletteRibbonBack(inherit.RibbonAppButton, needPaint);
            _ribbonGroupCollapsedBorder      = new PaletteRibbonBack(inherit.RibbonGroupCollapsedBorder, needPaint);
            _ribbonGroupCollapsedBack        = new PaletteRibbonBack(inherit.RibbonGroupCollapsedBack, needPaint);
            _ribbonGroupCollapsedFrameBorder = new PaletteRibbonBack(inherit.RibbonGroupCollapsedFrameBorder, needPaint);
            _ribbonGroupCollapsedFrameBack   = new PaletteRibbonBack(inherit.RibbonGroupCollapsedFrameBack, needPaint);
            _ribbonGroupCollapsedText        = new PaletteRibbonText(inherit.RibbonGroupCollapsedText, needPaint);
        }
コード例 #6
0
        /// <summary>
        /// Initialize a new instance of the KryptonPaletteRibbon class.
        /// </summary>
        /// <param name="redirect">Redirector to inherit values from.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        internal KryptonPaletteRibbon(PaletteRedirect redirect,
                                      NeedPaintHandler needPaint)
        {
            Debug.Assert(redirect != null);

            // Store incoming reference
            _redirect = redirect;

            // Create redirectors
            _ribbonGeneralRedirect         = new PaletteRibbonGeneralInheritRedirect(redirect);
            _ribbonAppMenuInnerInherit     = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonAppMenuInner);
            _ribbonAppMenuOuterInherit     = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonAppMenuOuter);
            _ribbonAppMenuDocsInherit      = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonAppMenuDocs);
            _ribbonAppMenuDocsTitleInherit = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonAppMenuDocsTitle);
            _ribbonAppMenuDocsEntryInherit = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonAppMenuDocsEntry);
            _ribbonQATFullRedirect         = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonQATFullbar);
            _ribbonQATOverRedirect         = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonQATOverflow);
            _ribbonGalleryBackRedirect     = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGalleryBack);
            _ribbonGalleryBorderRedirect   = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGalleryBorder);

            // Create palettes
            RibbonGeneral                   = new PaletteRibbonGeneral(_ribbonGeneralRedirect, needPaint);
            RibbonAppButton                 = new KryptonPaletteRibbonAppButton(redirect, needPaint);
            _ribbonAppMenuInner             = new PaletteRibbonBack(_ribbonAppMenuInnerInherit, needPaint);
            _ribbonAppMenuOuter             = new PaletteRibbonBack(_ribbonAppMenuOuterInherit, needPaint);
            _ribbonAppMenuDocs              = new PaletteRibbonBack(_ribbonAppMenuDocsInherit, needPaint);
            _ribbonAppMenuDocsTitle         = new PaletteRibbonText(_ribbonAppMenuDocsTitleInherit, needPaint);
            _ribbonAppMenuDocsEntry         = new PaletteRibbonText(_ribbonAppMenuDocsEntryInherit, needPaint);
            RibbonGroupArea                 = new KryptonPaletteRibbonGroupArea(redirect, needPaint);
            RibbonGroupButtonText           = new KryptonPaletteRibbonGroupButtonText(redirect, needPaint);
            RibbonGroupCheckBoxText         = new KryptonPaletteRibbonGroupCheckBoxText(redirect, needPaint);
            RibbonGroupNormalBorder         = new KryptonPaletteRibbonGroupNormalBorder(redirect, needPaint);
            RibbonGroupNormalTitle          = new KryptonPaletteRibbonGroupNormalTitle(redirect, needPaint);
            RibbonGroupCollapsedBorder      = new KryptonPaletteRibbonGroupCollapsedBorder(redirect, needPaint);
            RibbonGroupCollapsedBack        = new KryptonPaletteRibbonGroupCollapsedBack(redirect, needPaint);
            RibbonGroupCollapsedFrameBorder = new KryptonPaletteRibbonGroupCollapsedFrameBorder(redirect, needPaint);
            RibbonGroupCollapsedFrameBack   = new KryptonPaletteRibbonGroupCollapsedFrameBack(redirect, needPaint);
            RibbonGroupCollapsedText        = new KryptonPaletteRibbonGroupCollapsedText(redirect, needPaint);
            RibbonGroupRadioButtonText      = new KryptonPaletteRibbonGroupRadioButtonText(redirect, needPaint);
            RibbonGroupLabelText            = new KryptonPaletteRibbonGroupLabelText(redirect, needPaint);
            RibbonQATFullbar                = new PaletteRibbonBack(_ribbonQATFullRedirect, needPaint);
            RibbonQATMinibar                = new KryptonPaletteRibbonQATMinibar(redirect, needPaint);
            RibbonQATOverflow               = new PaletteRibbonBack(_ribbonQATOverRedirect, needPaint);
            RibbonTab            = new KryptonPaletteRibbonTab(redirect, needPaint);
            _ribbonGalleryBack   = new PaletteRibbonBack(_ribbonGalleryBackRedirect, needPaint);
            _ribbonGalleryBorder = new PaletteRibbonBack(_ribbonGalleryBorderRedirect, needPaint);
        }
コード例 #7
0
        /// <summary>
        /// Initialise a new instance of the KryptonRibbonGroupLabel class.
        /// </summary>
        public KryptonRibbonGroupLabel()
        {
            // Default fields
            _visible         = true;
            _enabled         = true;
            _imageSmall      = null;
            _imageLarge      = null;
            _textLine1       = "Label";
            _textLine2       = string.Empty;
            _itemSizeCurrent = GroupItemSize.Medium;

            // Create delegate fired by a change to one of the state palettes
            _needPaintDelegate = OnPaletteNeedPaint;

            // Create palette entries for customizing the label text color
            _stateNormal   = new PaletteRibbonText(_needPaintDelegate);
            _stateDisabled = new PaletteRibbonText(_needPaintDelegate);
        }
コード例 #8
0
        /// <summary>
        /// Initialize a new instance of the PaletteRibbonJustGroup class.
        /// </summary>
        /// <param name="inherit">Source for inheriting values.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteRibbonJustGroup(PaletteRibbonRedirect inherit,
                                      NeedPaintHandler needPaint)
        {
            Debug.Assert(inherit != null);

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Create storage that maps onto the inherit instances
            _ribbonGroupArea                 = new PaletteRibbonBack(inherit.RibbonGroupBackArea, needPaint);
            _ribbonGroupNormalBorder         = new PaletteRibbonBack(inherit.RibbonGroupNormalBorder, needPaint);
            _ribbonGroupNormalTitle          = new PaletteRibbonDouble(inherit.RibbonGroupNormalTitle, inherit.RibbonGroupNormalTitle, needPaint);
            _ribbonGroupCollapsedBorder      = new PaletteRibbonBack(inherit.RibbonGroupCollapsedBorder, needPaint);
            _ribbonGroupCollapsedBack        = new PaletteRibbonBack(inherit.RibbonGroupCollapsedBack, needPaint);
            _ribbonGroupCollapsedFrameBorder = new PaletteRibbonBack(inherit.RibbonGroupCollapsedFrameBorder, needPaint);
            _ribbonGroupCollapsedFrameBack   = new PaletteRibbonBack(inherit.RibbonGroupCollapsedFrameBack, needPaint);
            _ribbonGroupCollapsedText        = new PaletteRibbonText(inherit.RibbonGroupCollapsedText, needPaint);
        }
コード例 #9
0
        /// <summary>
        /// Initialise a new instance of the KryptonRibbonGroupLabel class.
        /// </summary>
        public KryptonRibbonGroupLabel()
        {
            // Default fields
            _visible         = true;
            _enabled         = true;
            _imageSmall      = null;
            _imageLarge      = null;
            _textLine1       = "Label";
            _textLine2       = string.Empty;
            _itemSizeCurrent = GroupItemSize.Medium;
            _toolTipImageTransparentColor = Color.Empty;
            _toolTipTitle = string.Empty;
            _toolTipBody  = string.Empty;
            _toolTipStyle = LabelStyle.SuperTip;

            // Create delegate fired by a change to one of the state palettes
            _needPaintDelegate = new NeedPaintHandler(OnPaletteNeedPaint);

            // Create palette entries for customizing the label text color
            _stateNormal   = new PaletteRibbonText(_needPaintDelegate);
            _stateDisabled = new PaletteRibbonText(_needPaintDelegate);
        }
コード例 #10
0
        /// <summary>
        /// Initialize a new instance of the PaletteDoubleRedirect class.
        /// </summary>
        /// <param name="redirect">Inheritence redirection instance.</param>
        /// <param name="panelBackStyle">Initial background style.</param>
        /// <param name="needPaint">Paint delegate.</param>
        public PaletteRibbonRedirect(PaletteRedirect redirect,
                                     PaletteBackStyle panelBackStyle,
                                     NeedPaintHandler needPaint)
            : base(redirect)
        {
            Debug.Assert(redirect != null);

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Create the style redirection instances
            _groupButtonInherit          = new PaletteTripleRedirect(redirect, PaletteBackStyle.ButtonButtonSpec, PaletteBorderStyle.ButtonButtonSpec, PaletteContentStyle.ButtonButtonSpec, needPaint);
            _groupClusterButtonInherit   = new PaletteTripleRedirect(redirect, PaletteBackStyle.ButtonStandalone, PaletteBorderStyle.ButtonStandalone, PaletteContentStyle.ButtonStandalone, needPaint);
            _groupCollapsedButtonInherit = new PaletteTripleRedirect(redirect, PaletteBackStyle.ButtonButtonSpec, PaletteBorderStyle.ButtonButtonSpec, PaletteContentStyle.ButtonButtonSpec, needPaint);
            _groupDialogButtonInherit    = new PaletteTripleRedirect(redirect, PaletteBackStyle.ButtonButtonSpec, PaletteBorderStyle.ButtonButtonSpec, PaletteContentStyle.ButtonButtonSpec, needPaint);
            _keyTipInherit    = new PaletteTripleRedirect(redirect, PaletteBackStyle.ControlToolTip, PaletteBorderStyle.ControlToolTip, PaletteContentStyle.LabelKeyTip, needPaint);
            _qatButtonInherit = new PaletteTripleRedirect(redirect, PaletteBackStyle.ButtonButtonSpec, PaletteBorderStyle.ButtonButtonSpec, PaletteContentStyle.ButtonButtonSpec, needPaint);
            _scrollerInherit  = new PaletteTripleRedirect(redirect, PaletteBackStyle.ButtonStandalone, PaletteBorderStyle.ButtonStandalone, PaletteContentStyle.ButtonStandalone, needPaint);

            // Create the redirection instances
            _ribbonAppButtonInherit                 = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonAppButton);
            _ribbonAppMenuInnerInherit              = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonAppMenuInner);
            _ribbonAppMenuOuterInherit              = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonAppMenuOuter);
            _ribbonAppMenuDocsInherit               = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonAppMenuDocs);
            _ribbonAppMenuDocsTitleInherit          = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonAppMenuDocsTitle);
            _ribbonAppMenuDocsEntryInherit          = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonAppMenuDocsEntry);
            _ribbonGeneralInherit                   = new PaletteRibbonGeneralInheritRedirect(redirect);
            _ribbonGroupAreaInherit                 = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGroupArea);
            _ribbonGroupButtonTextInherit           = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonGroupButtonText);
            _ribbonGroupCheckBoxTextInherit         = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonGroupCheckBoxText);
            _ribbonGroupCollapsedBackInherit        = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGroupCollapsedBack);
            _ribbonGroupCollapsedBorderInherit      = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGroupCollapsedBorder);
            _ribbonGroupCollapsedFrameBackInherit   = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGroupCollapsedFrameBack);
            _ribbonGroupCollapsedFrameBorderInherit = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGroupCollapsedFrameBorder);
            _ribbonGroupCollapsedTextInherit        = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonGroupCollapsedText);
            _ribbonGroupNormalBorderInherit         = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGroupNormalBorder);
            _ribbonGroupNormalTitleInherit          = new PaletteRibbonDoubleInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGroupNormalTitle, PaletteRibbonTextStyle.RibbonGroupNormalTitle);
            _ribbonGroupRadioButtonTextInherit      = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonGroupRadioButtonText);
            _ribbonGroupLabelTextInherit            = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonGroupLabelText);
            _ribbonTabInherit         = new PaletteRibbonDoubleInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonTab, PaletteRibbonTextStyle.RibbonTab);
            _ribbonQATFullbarInherit  = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonQATFullbar);
            _ribbonQATMinibarInherit  = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonQATMinibar);
            _ribbonQATOverflowInherit = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonQATOverflow);

            // Create storage that maps onto the inherit instances
            _ribbonAppButton                 = new PaletteRibbonBack(_ribbonAppButtonInherit, needPaint);
            _ribbonAppMenuInner              = new PaletteRibbonBack(_ribbonAppMenuInnerInherit, needPaint);
            _ribbonAppMenuOuter              = new PaletteRibbonBack(_ribbonAppMenuOuterInherit, needPaint);
            _ribbonAppMenuDocs               = new PaletteRibbonBack(_ribbonAppMenuDocsInherit, needPaint);
            _ribbonAppMenuDocsTitle          = new PaletteRibbonText(_ribbonAppMenuDocsTitleInherit, needPaint);
            _ribbonAppMenuDocsEntry          = new PaletteRibbonText(_ribbonAppMenuDocsEntryInherit, needPaint);
            _ribbonGeneral                   = new PaletteRibbonGeneral(_ribbonGeneralInherit, needPaint);
            _ribbonGroupArea                 = new PaletteRibbonBack(_ribbonGroupAreaInherit, needPaint);
            _ribbonGroupButtonText           = new PaletteRibbonText(_ribbonGroupButtonTextInherit, needPaint);
            _ribbonGroupCheckBoxText         = new PaletteRibbonText(_ribbonGroupCheckBoxTextInherit, needPaint);
            _ribbonGroupCollapsedBack        = new PaletteRibbonBack(_ribbonGroupCollapsedBackInherit, needPaint);
            _ribbonGroupCollapsedBorder      = new PaletteRibbonBack(_ribbonGroupCollapsedBorderInherit, needPaint);
            _ribbonGroupCollapsedFrameBack   = new PaletteRibbonBack(_ribbonGroupCollapsedFrameBackInherit, needPaint);
            _ribbonGroupCollapsedFrameBorder = new PaletteRibbonBack(_ribbonGroupCollapsedFrameBorderInherit, needPaint);
            _ribbonGroupCollapsedText        = new PaletteRibbonText(_ribbonGroupCollapsedTextInherit, needPaint);
            _ribbonGroupNormalBorder         = new PaletteRibbonBack(_ribbonGroupNormalBorderInherit, needPaint);
            _ribbonGroupNormalTitle          = new PaletteRibbonDouble(_ribbonGroupNormalTitleInherit, _ribbonGroupNormalTitleInherit, needPaint);
            _ribbonGroupRadioButtonText      = new PaletteRibbonText(_ribbonGroupRadioButtonTextInherit, needPaint);
            _ribbonGroupLabelText            = new PaletteRibbonText(_ribbonGroupLabelTextInherit, needPaint);
            _ribbonTab                = new PaletteRibbonDouble(_ribbonTabInherit, _ribbonTabInherit, needPaint);
            _ribbonQATFullbar         = new PaletteRibbonBack(_ribbonQATFullbarInherit, needPaint);
            _ribbonQATMinibarActive   = new PaletteRibbonBack(_ribbonQATMinibarInherit, needPaint);
            _ribbonQATMinibarInactive = new PaletteRibbonBack(_ribbonQATMinibarInherit, needPaint);
            _ribbonQATOverflow        = new PaletteRibbonBack(_ribbonQATOverflowInherit, needPaint);
            _ribbonImages             = new PaletteRibbonImages(redirect, NeedPaintDelegate);
        }
 /// <summary>
 /// Gets the second back color for the long text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Color value.</returns>
 public virtual Color GetContentLongTextColor2(PaletteState state)
 {
     return(PaletteRibbonText.GetRibbonTextColor(state));
 }
 /// <summary>
 /// Gets the first back color for the short text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Color value.</returns>
 public virtual Color GetContentShortTextColor1(PaletteState state)
 {
     return(PaletteRibbonText.GetRibbonTextColor(state));
 }
コード例 #13
0
 /// <summary>
 /// Gets the first back color for the long text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Color value.</returns>
 public virtual Color GetContentLongTextColor1(PaletteState state) => PaletteRibbonText.GetRibbonTextColor(state);
コード例 #14
0
 /// <summary>
 /// Gets the second back color for the short text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Color value.</returns>
 public virtual Color GetContentShortTextColor2(PaletteState state) => PaletteRibbonText.GetRibbonTextColor(state);