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