예제 #1
0
 /// <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 override Color GetContentShortTextColor1(PaletteState state)
 {
     if (state == PaletteState.Disabled)
     {
         return(_ribbonGroupTextDisabled.GetRibbonTextColor(state));
     }
     else
     {
         return(_ribbonGroupTextNormal.GetRibbonTextColor(state));
     }
 }
        /// <summary>
        /// Gets the tab color for the item text.
        /// </summary>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Color value.</returns>
        public override Color GetRibbonTextColor(PaletteState state)
        {
            if (_apply)
            {
                Color ret = _primaryText.GetRibbonTextColor(_override ? _state : state);

                if (ret == Color.Empty)
                    ret = _backupText.GetRibbonTextColor(state);

                return ret;
            }
            else
                return _backupText.GetRibbonTextColor(state);
        }
예제 #3
0
        private Color GetTextColor(PaletteState state)
        {
            Color retColor;

            if (state == PaletteState.Disabled)
            {
                retColor = _ribbonLabelTextDisabled.GetRibbonTextColor(state);

                if (retColor == Color.Empty)
                {
                    retColor = _ribbonGroupTextDisabled.GetRibbonTextColor(state);
                }
            }
            else
            {
                retColor = _ribbonLabelTextNormal.GetRibbonTextColor(state);

                if (retColor == Color.Empty)
                {
                    retColor = _ribbonGroupTextNormal.GetRibbonTextColor(state);
                }
            }

            return(retColor);
        }
예제 #4
0
        /// <summary>
        /// Gets the tab color for the item text.
        /// </summary>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Color value.</returns>
        public override Color GetRibbonTextColor(PaletteState state)
        {
            if (Apply)
            {
                Color ret = _primaryText.GetRibbonTextColor(Override ? OverrideState : state);

                if (ret == Color.Empty)
                {
                    ret = _backupText.GetRibbonTextColor(state);
                }

                return(ret);
            }
            else
            {
                return(_backupText.GetRibbonTextColor(state));
            }
        }
 /// <summary>
 /// Gets the tab color for the item text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Color value.</returns>
 public Color GetRibbonTextColor(PaletteState state)
 {
     if (TextColor != Color.Empty)
     {
         return(TextColor);
     }
     else
     {
         return(_inheritText.GetRibbonTextColor(state));
     }
 }
예제 #6
0
        /// <summary>
        /// Gets the tab color for the item text.
        /// </summary>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <param name="style">Style of the ribbon color requested.</param>
        /// <returns>Color value.</returns>
        public override Color GetRibbonTextColor(PaletteRibbonTextStyle style, PaletteState state)
        {
            IPaletteRibbonText inherit = GetTextInherit(state);

            if (inherit != null)
            {
                return(inherit.GetRibbonTextColor(state));
            }
            else
            {
                return(Target.GetRibbonTextColor(style, state));
            }
        }
        /// <summary>
        /// Gets the tab color for the item text.
        /// </summary>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <param name="style">Style of the ribbon color requested.</param>
        /// <returns>Color value.</returns>
        public override Color GetRibbonTextColor(PaletteRibbonTextStyle style, PaletteState state)
        {
            IPaletteRibbonText inherit = GetTextInherit(state);

            return(inherit?.GetRibbonTextColor(state) ?? Target.GetRibbonTextColor(style, state));
        }
예제 #8
0
 /// <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 override Color GetContentShortTextColor1(PaletteState state)
 {
     return(_ribbonRecentTitleText.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 override Color GetContentShortTextColor1(PaletteState state) => state == PaletteState.Disabled
     ? _ribbonGroupTextDisabled.GetRibbonTextColor(state)
     : _ribbonGroupTextNormal.GetRibbonTextColor(state);
예제 #10
0
 /// <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(_ribbonTabText.GetRibbonTextColor(state));
 }
예제 #11
0
 /// <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 override Color GetContentShortTextColor1(PaletteState state) => _ribbonRecentDocEntryText.GetRibbonTextColor(state);