public override Color GetBackColor1(PaletteBackStyle style, PaletteState state)
{
// We do not provide override values
if (CommonHelper.IsOverrideStateExclude(state, PaletteState.NormalDefaultOverride))
return Color.Empty;
switch (style)
{
case PaletteBackStyle.FormMain:
case PaletteBackStyle.FormCustom1:
case PaletteBackStyle.PanelClient:
case PaletteBackStyle.PanelRibbonInactive:
case PaletteBackStyle.PanelCustom1:
case PaletteBackStyle.ControlGroupBox:
case PaletteBackStyle.SeparatorLowProfile:
case PaletteBackStyle.SeparatorCustom1:
case PaletteBackStyle.GridBackgroundList:
case PaletteBackStyle.GridBackgroundSheet:
case PaletteBackStyle.GridBackgroundCustom1:
return _sparkleColors[0];
case PaletteBackStyle.PanelAlternate:
return _sparkleColors[1];
case PaletteBackStyle.HeaderForm:
return _colorDark00;
case PaletteBackStyle.HeaderPrimary:
case PaletteBackStyle.HeaderDockInactive:
case PaletteBackStyle.HeaderCustom1:
case PaletteBackStyle.HeaderCustom2:
if (state == PaletteState.Disabled)
return _disabledBack;
else
return _sparkleColors[5];
case PaletteBackStyle.HeaderDockActive:
if (state == PaletteState.Disabled)
return _disabledBack;
else
return _sparkleColors[10];
case PaletteBackStyle.HeaderSecondary:
case PaletteBackStyle.HeaderCalendar:
if (state == PaletteState.Disabled)
return _disabledBack;
else
return _sparkleColors[2];
case PaletteBackStyle.ControlClient:
case PaletteBackStyle.ControlAlternate:
case PaletteBackStyle.ControlCustom1:
return _colorWhite238;
case PaletteBackStyle.ButtonStandalone:
case PaletteBackStyle.ButtonAlternate:
case PaletteBackStyle.ButtonLowProfile:
case PaletteBackStyle.ButtonBreadCrumb:
case PaletteBackStyle.ButtonButtonSpec:
case PaletteBackStyle.ButtonGallery:
case PaletteBackStyle.ButtonCluster:
case PaletteBackStyle.ButtonNavigatorOverflow:
case PaletteBackStyle.ButtonNavigatorStack:
case PaletteBackStyle.ButtonNavigatorMini:
case PaletteBackStyle.ButtonInputControl:
case PaletteBackStyle.ButtonCustom1:
case PaletteBackStyle.ButtonCustom2:
case PaletteBackStyle.ButtonCustom3:
switch (state)
{
case PaletteState.Disabled:
return _disabledBack;
case PaletteState.Normal:
if (style == PaletteBackStyle.ButtonNavigatorStack)
return _sparkleColors[2];
else
return _sparkleColors[5];
case PaletteState.NormalDefaultOverride:
return Color.Empty;
case PaletteState.Tracking:
return _sparkleColors[6];
case PaletteState.Pressed:
return _sparkleColors[8];
case PaletteState.CheckedNormal:
if (style == PaletteBackStyle.ButtonInputControl)
return _sparkleColors[5];
else
return _sparkleColors[10];
case PaletteState.CheckedTracking:
if (style == PaletteBackStyle.ButtonInputControl)
return _sparkleColors[5];
else
return _sparkleColors[12];
case PaletteState.CheckedPressed:
return _sparkleColors[14];
default:
throw new ArgumentOutOfRangeException("state");
}
case PaletteBackStyle.ButtonCalendarDay:
switch (state)
{
case PaletteState.Disabled:
return _disabledBack;
case PaletteState.Normal:
return _sparkleColors[5];
case PaletteState.NormalDefaultOverride:
return Color.Empty;
case PaletteState.Tracking:
return _sparkleColors[27];
case PaletteState.Pressed:
case PaletteState.CheckedNormal:
return _sparkleColors[15];
case PaletteState.CheckedTracking:
case PaletteState.CheckedPressed:
return _sparkleColors[12];
default:
throw new ArgumentOutOfRangeException("state");
}
case PaletteBackStyle.ButtonForm:
case PaletteBackStyle.ButtonFormClose:
switch (state)
{
case PaletteState.Disabled:
case PaletteState.Normal:
case PaletteState.NormalDefaultOverride:
return Color.Empty;
case PaletteState.CheckedNormal:
return _sparkleColors[10];
case PaletteState.Tracking:
return _sparkleColors[5];
case PaletteState.CheckedTracking:
return _sparkleColors[12];
case PaletteState.Pressed:
case PaletteState.CheckedPressed:
return _sparkleColors[14];
default:
throw new ArgumentOutOfRangeException("state");
}
case PaletteBackStyle.ButtonListItem:
case PaletteBackStyle.ButtonCommand:
switch (state)
{
case PaletteState.Disabled:
return _disabledBack;
case PaletteState.Normal:
case PaletteState.NormalDefaultOverride:
case PaletteState.Tracking:
return _colorWhite215;
case PaletteState.Pressed:
case PaletteState.CheckedNormal:
case PaletteState.CheckedTracking:
case PaletteState.CheckedPressed:
return _sparkleColors[15];
default:
throw new ArgumentOutOfRangeException("state");
}
case PaletteBackStyle.ContextMenuOuter:
case PaletteBackStyle.ContextMenuInner:
case PaletteBackStyle.ContextMenuItemImageColumn:
return _colorWhite240;
case PaletteBackStyle.ContextMenuSeparator:
return _colorWhite255;
case PaletteBackStyle.ContextMenuHeading:
return _sparkleColors[16];
case PaletteBackStyle.ContextMenuItemHighlight:
if (state == PaletteState.Disabled)
return _menuItemDisabledBack1;
else
return _sparkleColors[17];
case PaletteBackStyle.ContextMenuItemImage:
if (state == PaletteState.Disabled)
return _menuItemDisabledBack1;
else
return _sparkleColors[20];
case PaletteBackStyle.InputControlStandalone:
case PaletteBackStyle.InputControlRibbon:
case PaletteBackStyle.InputControlCustom1:
if (state == PaletteState.Disabled)
return _disabledBack;
else
{
if ((state == PaletteState.Tracking) || (style == PaletteBackStyle.InputControlStandalone))
return _colorWhite238;
else
return _colorWhite192;
}
case PaletteBackStyle.GridDataCellList:
case PaletteBackStyle.GridDataCellCustom1:
if (state == PaletteState.CheckedNormal)
return _sparkleColors[15];
else
return _colorWhite238;
case PaletteBackStyle.GridDataCellSheet:
if (state == PaletteState.CheckedNormal)
return _sparkleColors[10];
else
return _colorWhite238;
case PaletteBackStyle.GridHeaderColumnList:
case PaletteBackStyle.GridHeaderColumnCustom1:
switch (state)
{
case PaletteState.Disabled:
return _disabledBack;
default:
case PaletteState.Normal:
return _gridHeaderNormal1;
case PaletteState.Tracking:
return _sparkleColors[24];
case PaletteState.Pressed:
case PaletteState.CheckedNormal:
return _sparkleColors[26];
}
case PaletteBackStyle.GridHeaderRowList:
case PaletteBackStyle.GridHeaderRowCustom1:
switch (state)
{
case PaletteState.Disabled:
return _disabledBack;
default:
case PaletteState.Normal:
return _gridHeaderNormal2;
case PaletteState.Tracking:
return _sparkleColors[25];
case PaletteState.Pressed:
case PaletteState.CheckedNormal:
return _sparkleColors[27];
}
case PaletteBackStyle.GridHeaderRowSheet:
case PaletteBackStyle.GridHeaderColumnSheet:
switch (state)
{
case PaletteState.Disabled:
return _disabledBack;
default:
case PaletteState.Normal:
return _gridHeaderNormal1;
case PaletteState.Tracking:
return _sparkleColors[24];
case PaletteState.Pressed:
case PaletteState.CheckedNormal:
return _sparkleColors[15];
}
case PaletteBackStyle.SeparatorHighInternalProfile:
if (state == PaletteState.Disabled)
return _disabledBack;
else
return _colorWhite240;
case PaletteBackStyle.SeparatorHighProfile:
if (state == PaletteState.Disabled)
return _disabledBack;
else
return _colorWhite167;
case PaletteBackStyle.ControlToolTip:
return _toolTipBack1;
case PaletteBackStyle.ContextMenuItemSplit:
if (state == PaletteState.Disabled)
return _colorWhite240;
else
return _colorWhite255;
case PaletteBackStyle.TabHighProfile:
case PaletteBackStyle.TabStandardProfile:
case PaletteBackStyle.TabLowProfile:
case PaletteBackStyle.TabOneNote:
case PaletteBackStyle.TabCustom1:
case PaletteBackStyle.TabCustom2:
case PaletteBackStyle.TabCustom3:
switch (state)
{
case PaletteState.Disabled:
if (style == PaletteBackStyle.TabLowProfile)
return Color.Empty;
else
return _disabledBack;
case PaletteState.Normal:
if (style == PaletteBackStyle.TabLowProfile)
return Color.Empty;
else
return _colorWhite220;
case PaletteState.Pressed:
case PaletteState.Tracking:
if (style == PaletteBackStyle.TabLowProfile)
return Color.Empty;
else
return _colorWhite220;
case PaletteState.CheckedNormal:
case PaletteState.CheckedPressed:
case PaletteState.CheckedTracking:
if (style == PaletteBackStyle.TabHighProfile)
return _sparkleColors[29];
else
return _colorWhite220;
default:
throw new ArgumentOutOfRangeException("state");
}
case PaletteBackStyle.TabDock:
case PaletteBackStyle.TabDockAutoHidden:
switch (state)
{
case PaletteState.Disabled:
return _disabledBack;
case PaletteState.Normal:
case PaletteState.Pressed:
case PaletteState.Tracking:
case PaletteState.CheckedNormal:
case PaletteState.CheckedPressed:
case PaletteState.CheckedTracking:
return _colorWhite220;
default:
throw new ArgumentOutOfRangeException("state");
}
case PaletteBackStyle.ControlRibbon:
return _ribbonColors[(int)SchemeOfficeColors.RibbonTabSelected4];
case PaletteBackStyle.ControlRibbonAppMenu:
return _ribbonColors[(int)SchemeOfficeColors.AppButtonBack1];
default:
throw new ArgumentOutOfRangeException("style");
}
}