DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View File

@@ -0,0 +1,149 @@
#if FRAMEWORK20
using System;
using System.ComponentModel;
using System.Drawing;
namespace DevComponents.DotNetBar.Schedule
{
public class AppointmentCategoryColor
{
#region Events
/// <summary>
/// Occurs when AppointmentCategoryColorCollection has changed
/// </summary>
[Description("Occurs when the AppointmentCategoryColorCollection has changed.")]
public event EventHandler<EventArgs> AppointmentCategoryColorChanged;
#endregion
#region Private variables
private string _ColorName;
private Color _TextColor;
private Color _BorderColor;
private ColorDef _BackColor;
#endregion
/// <summary>
/// AppointmentCategoryColor
/// </summary>
/// <param name="colorName">Color name</param>
/// <param name="textColor">Text Color</param>
/// <param name="borderColor">Border Color</param>
/// <param name="backColor">Background Color</param>
public AppointmentCategoryColor(string colorName,
Color textColor, Color borderColor, ColorDef backColor)
{
_ColorName = colorName;
_TextColor = textColor;
_BorderColor = borderColor;
_BackColor = backColor;
}
/// <summary>
/// AppointmentCategoryColor
/// </summary>
/// <param name="colorName">Color name</param>
public AppointmentCategoryColor(string colorName)
: this(colorName, Color.Black, Color.Black, new ColorDef(Color.White))
{
}
#region Public properties
#region ColorName
/// <summary>
/// Color name
/// </summary>
public string ColorName
{
get { return (_ColorName); }
internal set { _ColorName = value; }
}
#endregion
#region TextColor
/// <summary>
/// Text Color
/// </summary>
public Color TextColor
{
get { return (_TextColor); }
set
{
if (_TextColor != value)
{
_TextColor = value;
OnAppointmentCategoryColorChanged();
}
}
}
#endregion
#region BorderColor
/// <summary>
/// Border Color
/// </summary>
public Color BorderColor
{
get { return (_BorderColor); }
set
{
if (_BorderColor != value)
{
_BorderColor = value;
OnAppointmentCategoryColorChanged();
}
}
}
#endregion
#region BackColor
/// <summary>
/// Background Color
/// </summary>
public ColorDef BackColor
{
get { return (_BackColor); }
set
{
if (_BackColor != value)
{
_BackColor = value;
OnAppointmentCategoryColorChanged();
}
}
}
#endregion
#endregion
#region OnAppointmentCategoryColorChanged
private void OnAppointmentCategoryColorChanged()
{
if (AppointmentCategoryColorChanged != null)
AppointmentCategoryColorChanged(this, EventArgs.Empty);
}
#endregion
}
}
#endif

View File

@@ -0,0 +1,178 @@
#if FRAMEWORK20
using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace DevComponents.DotNetBar.Schedule
{
public class AppointmentCategoryColorCollection
{
#region Events
/// <summary>
/// Occurs when AppointmentCategoryColorCollection has changed
/// </summary>
[Description("Occurs when the AppointmentCategoryColorCollection has changed.")]
public event EventHandler<EventArgs> AppointmentCategoryColorCollectionChanged;
#endregion
#region Private variables
private Dictionary<string, AppointmentCategoryColor> _List;
#endregion
/// <summary>
/// AppointmentCategoryColorCollection
/// </summary>
public AppointmentCategoryColorCollection()
{
_List = new Dictionary<string, AppointmentCategoryColor>();
}
#region Public properties
/// <summary>
/// Gets the Count of items defined
/// </summary>
public int Count
{
get { return (_List.Count); }
}
#endregion
#region Add
/// <summary>
/// Adds a AppointmentCategoryColor to the collection
/// </summary>
/// <param name="acc"></param>
public void Add(AppointmentCategoryColor acc)
{
_List[acc.ColorName] = acc;
acc.AppointmentCategoryColorChanged += CategoryColorChanged;
OnAppointmentCategoryColorCollectionChanged();
}
#endregion
#region Remove
/// <summary>
/// Removes an entry from the collection, by color name
/// </summary>
/// <param name="colorName">Color name</param>
public void Remove(string colorName)
{
if (_List.ContainsKey(colorName))
{
_List[colorName].AppointmentCategoryColorChanged -= CategoryColorChanged;
_List.Remove(colorName);
OnAppointmentCategoryColorCollectionChanged();
}
}
/// <summary>
/// Removes an entry from the collection, by AppointmentCategoryColor
/// </summary>
/// <param name="categoryColor">AppointmentCategoryColor</param>
public void Remove(AppointmentCategoryColor categoryColor)
{
Remove(categoryColor.ColorName);
}
#endregion
#region Clear
/// <summary>
/// Clears the AppointmentCategoryColor collection
/// </summary>
public void Clear()
{
foreach (AppointmentCategoryColor ac in _List.Values)
ac.AppointmentCategoryColorChanged -= CategoryColorChanged;
_List.Clear();
OnAppointmentCategoryColorCollectionChanged();
}
#endregion
#region Items
/// <summary>
/// Gets the entire list of added AppointmentCategoryColor items
/// </summary>
public AppointmentCategoryColor[] Items
{
get
{
AppointmentCategoryColor[] items = new AppointmentCategoryColor[_List.Count];
_List.Values.CopyTo(items, 0);
return (items);
}
}
#endregion
#region this
/// <summary>
/// Gets the AppointmentCategoryColor from the given
/// color name string index
/// </summary>
/// <param name="colorName"></param>
/// <returns></returns>
public AppointmentCategoryColor this[string colorName]
{
get
{
AppointmentCategoryColor acc;
_List.TryGetValue(colorName, out acc);
return (acc);
}
}
#endregion
#region CategoryColorChanged
/// <summary>
/// CategoryColorChanged
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void CategoryColorChanged(object sender, EventArgs e)
{
OnAppointmentCategoryColorCollectionChanged();
}
#endregion
#region OnAppointmentCategoryColorCollectionChanged
/// <summary>
/// OnAppointmentCategoryColorCollectionChanged
/// </summary>
private void OnAppointmentCategoryColorCollectionChanged()
{
if (AppointmentCategoryColorCollectionChanged != null)
AppointmentCategoryColorCollectionChanged(this, EventArgs.Empty);
}
#endregion
}
}
#endif

View File

@@ -0,0 +1,121 @@
#if FRAMEWORK20
using DevComponents.DotNetBar.Rendering;
namespace DevComponents.DotNetBar.Schedule
{
#region enum definitions
/// <summary>
/// Appointment parts enum
/// </summary>
public enum eAppointmentPart
{
DefaultBorder,
DefaultBackground,
BlueBorder,
BlueBackground,
GreenBorder,
GreenBackground,
OrangeBorder,
OrangeBackground,
PurpleBorder,
PurpleBackground,
RedBorder,
RedBackground,
YellowBorder,
YellowBackground,
BusyTimeMarker,
FreeTimeMarker,
OutOfOfficeTimeMarker
}
#endregion
public class AppointmentColor : CalendarColor
{
/// <summary>
/// Constructor
/// </summary>
public AppointmentColor()
: base(eCalendarColor.Automatic)
{
}
#region SetColorTable routine
/// <summary>
/// Sets our current color table to either
/// a local or global definition
/// </summary>
public override void SetColorTable()
{
// Use the globally set color table
Office2007Renderer r =
GlobalManager.Renderer as Office2007Renderer;
ColorTable = (r != null)
? r.ColorTable.CalendarView.AppointmentColors
: _LocalColorTable;
}
#endregion
#region Static Color definitions
// Array of predefined colors
static ColorDef[] _LocalColorTable = new ColorDef[]
{
new ColorDef(0x4B71A2), // DefaultBorder
new ColorDef(new int[] {0xFDFEFF, 0xC1D3EA}, // DefaultBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x28518E), // BlueBorder
new ColorDef(new int[] {0xB1C5EC, 0x759DDA}, // BlueBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x2C6524), // GreenBorder
new ColorDef(new int[] {0xC2E8BC, 0x84D17B}, // GreenBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x8B3E0A), // OrangeBorder
new ColorDef(new int[] {0xF9C7A0, 0xF49758}, // OrangeBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x3E2771), // PurpleBorder
new ColorDef(new int[] {0xC5B5E6, 0x957BD2}, // PurpleBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x86171C), // RedBorder
new ColorDef(new int[] {0xF1AAAC, 0xE5676E}, // RedBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x7C7814), // YellowBorder
new ColorDef(new int[] {0xFFFCAA, 0xFFF958}, // YellowBackground
new float[] {0f, 1f}, 90f),
new ColorDef(-1), // BusyTimeMarker
new ColorDef(0xFFFFFF), // FreeTimeMarker
new ColorDef(0x800080), // OutOfOfficeTimeMarker
};
#endregion
}
}
#endif

View File

@@ -0,0 +1,439 @@
#if FRAMEWORK20
using System.Drawing;
using System.Drawing.Drawing2D;
namespace DevComponents.DotNetBar.Schedule
{
//#region ColorDef
///// <summary>
///// Color definition class
///// </summary>
//[TypeConverter(typeof(ColorDefConvertor))]
//public class ColorDef
//{
// #region Events
// /// <summary>
// /// Event raised when the SuperTabColorStates is changed
// /// </summary>
// [Description("Event raised when the ColorDef is changed")]
// public event EventHandler<EventArgs> ColorDefChanged;
// #endregion
// #region Private variables
// private Color[] _Colors; // Color values
// private float[] _Positions; // Gradient color positions
// private float _Angle; // Gradient angle
// #endregion
// #region Constructors
// public ColorDef()
// {
// }
// /// <summary>
// /// Constructor - solid def
// /// </summary>
// /// <param name="rgb">RGB value</param>
// public ColorDef(int rgb)
// : this(ColorScheme.GetColor(rgb))
// {
// }
// /// <summary>
// /// Constructor - solid def
// /// </summary>
// /// <param name="color">Color</param>
// public ColorDef(Color color)
// {
// _Colors = new Color[1];
// _Colors[0] = color;
// _Positions = null;
// }
// /// <summary>
// /// Constructor - 2 color def
// /// </summary>
// /// <param name="start">Start Color</param>
// /// <param name="end">End Color</param>
// public ColorDef(Color start, Color end)
// : this(start, end, 90f)
// {
// }
// /// <summary>
// /// Constructor - 2 color def
// /// </summary>
// /// <param name="start">Start Color</param>
// /// <param name="end">End Color</param>
// /// <param name="angle">Gradient angle</param>
// public ColorDef(Color start, Color end, float angle)
// {
// _Colors = new Color[] { start, end };
// _Positions = new float[] { 0, 1 };
// _Angle = angle;
// }
// /// <summary>
// /// Constructor - Gradient def
// /// </summary>
// /// <param name="rgbs">Array of RGB values</param>
// /// <param name="cPositions">Gradient positions</param>
// public ColorDef(int[] rgbs, float[] cPositions)
// : this(rgbs, cPositions, 90f)
// {
// }
// /// <summary>
// /// Constructor - Gradient def
// /// </summary>
// /// <param name="colors">Array of Color values</param>
// /// <param name="cPositions">Gradient positions</param>
// public ColorDef(Color[] colors, float[] cPositions)
// : this(colors, cPositions, 90f)
// {
// }
// /// <summary>
// /// Constructor - Gradient def
// /// </summary>
// /// <param name="rgbs">Array of RGB values</param>
// /// <param name="cPositions">Gradient positions</param>
// /// <param name="angle">Gradient angle</param>
// public ColorDef(int[] rgbs, float[] cPositions, float angle)
// {
// _Colors = new Color[rgbs.Length];
// for (int i = 0; i < rgbs.Length; i++)
// _Colors[i] = ColorScheme.GetColor(rgbs[i]);
// _Positions = cPositions;
// _Angle = angle;
// }
// /// <summary>
// /// Constructor - Gradient def
// /// </summary>
// /// <param name="colors">Array of Color values</param>
// /// <param name="cPositions">Gradient positions</param>
// /// <param name="angle">Gradient angle</param>
// public ColorDef(Color[] colors, float[] cPositions, float angle)
// {
// _Colors = colors;
// _Positions = cPositions;
// _Angle = angle;
// }
// #endregion
// #region Public properties
// #region Colors
// /// <summary>
// /// Gets or sets the Color array
// /// </summary>
// [Browsable(true), DefaultValue(null)]
// [NotifyParentProperty(true)]
// [Description("Indicates the Color array")]
// public Color[] Colors
// {
// get { return (_Colors); }
// set { _Colors = value; OnColorDefChanged(); }
// }
// #endregion
// #region Positions
// /// <summary>
// /// Gets or sets the Color Positions
// /// </summary>
// [Browsable(true), DefaultValue(null)]
// [NotifyParentProperty(true)]
// [Description("Indicates the Color Positions.")]
// public float[] Positions
// {
// get { return (_Positions); }
// set { _Positions = value; OnColorDefChanged(); }
// }
// #endregion
// #region Angle
// /// <summary>
// /// Gets or sets the Gradient Angle
// /// </summary>
// [Browsable(true), DefaultValue(0f)]
// [NotifyParentProperty(true)]
// [Description("Indicates the Gradient Angle.")]
// public float Angle
// {
// get { return (_Angle); }
// set { _Angle = value; OnColorDefChanged(); }
// }
// #endregion
// #region IsEmpty
// /// <summary>
// /// IsEmpty
// /// </summary>
// [Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
// public bool IsEmpty
// {
// get { return (_Colors == null ||
// _Colors.Length == 1 && _Colors[0].IsEmpty); }
// }
// #endregion
// #endregion
// #region OnColorDefChanged
// /// <summary>
// /// OnColorDefChanged
// /// </summary>
// private void OnColorDefChanged()
// {
// if (ColorDefChanged != null)
// ColorDefChanged(this, EventArgs.Empty);
// }
// #endregion
//}
//#region ColorDefConvertor
///// <summary>
///// ColorDefConvertor
///// </summary>
//public class ColorDefConvertor : ExpandableObjectConverter
//{
// public override object ConvertTo(
// ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
// {
// if (destinationType == typeof(string))
// {
// ColorDef cd = value as ColorDef;
// if (cd != null)
// {
// ColorConverter cvt = new ColorConverter();
// if (cd.Colors != null)
// {
// if (cd.Colors[0] != Color.Empty)
// return (cvt.ConvertToString(cd.Colors[0]));
// if (cd.Colors.Length > 1 && cd.Colors[1] != Color.Empty)
// return (cvt.ConvertToString(cd.Colors[1]));
// }
// if (cd.Angle != 0)
// return (cd.Angle.ToString());
// }
// return (String.Empty);
// }
// return (base.ConvertTo(context, culture, value, destinationType));
// }
//}
//#endregion
//#endregion
#region CalendarColor
public class CalendarColor
{
#region Private variables
private eCalendarColor _ColorSch; // Current color scheme enum
private ColorDef[] _ColorTable; // Color scheme definition
#endregion
/// <summary>
/// Constructor
/// </summary>
/// <param name="colorSch">eCalendarColor</param>
public CalendarColor(eCalendarColor colorSch)
{
_ColorSch = colorSch;
SetColorTable();
}
#region Public properties
/// <summary>
/// Gets and sets ColorTable
/// </summary>
public ColorDef[] ColorTable
{
get { return (_ColorTable); }
set { _ColorTable = value; }
}
/// <summary>
/// Gets and sets calendar color scheme
/// </summary>
public eCalendarColor ColorSch
{
get { return (_ColorSch); }
set
{
if (_ColorSch != value)
{
_ColorSch = value;
SetColorTable();
}
}
}
#region SetColorTable
public virtual void SetColorTable()
{
}
#endregion
#endregion
#region Get Color
/// <summary>
/// Gets the Color of the calendar part
/// </summary>
/// <param name="part">Calendar part</param>
/// <returns>Color</returns>
public Color GetColor(int part)
{
return (_ColorTable[part].Colors[0]);
}
#endregion
#region GetColorDef
/// <summary>
/// Gets the ColorDef of the part
/// </summary>
/// <param name="part">Calendar part</param>
/// <returns>Part ColorDef</returns>
public ColorDef GetColorDef(int part)
{
return (_ColorTable[part]);
}
#endregion
#region BrushPart routines
/// <summary>
/// Creates a LinearGradientBrush from the given part
/// </summary>
/// <param name="part">Color part</param>
/// <param name="r">Gradient Rectangle</param>
/// <returns>Created Brush</returns>
public Brush BrushPart(int part, Rectangle r)
{
return (BrushPart(GetColorDef(part), r));
}
/// <summary>
/// Creates a LinearGradientBrush from the given ColorDef
/// </summary>
/// <param name="cDef">ColorDef</param>
/// <param name="r">Gradient Rectangle</param>
/// <returns>Created Brush</returns>
public Brush BrushPart(ColorDef cDef, Rectangle r)
{
return (BrushPart(cDef, r, cDef.Angle));
}
/// <summary>
/// Creates a LinearGradientBrush from the given ColorDef
/// </summary>
/// <param name="cDef">ColorDef</param>
/// <param name="r">Gradient Rectangle</param>
/// <param name="angle">Gradient angle</param>
/// <returns>Created Brush</returns>
public Brush BrushPart(ColorDef cDef, Rectangle r, float angle)
{
if (cDef.Colors.Length == 1)
return (new SolidBrush(cDef.Colors[0]));
LinearGradientBrush lbr =
new LinearGradientBrush(r, Color.White, Color.White, angle);
lbr.InterpolationColors = GetColorBlend(cDef);
return (lbr);
}
/// <summary>
/// Creates a ColorBlend from the given ColorDef
/// </summary>
/// <param name="cDef">ColorDef for blend</param>
/// <returns>ColorBlend</returns>
private ColorBlend GetColorBlend(ColorDef cDef)
{
ColorBlend cb = new ColorBlend(cDef.Colors.Length);
// Set each Color and position from the
// provided color definition
cb.Colors = cDef.Colors;
cb.Positions = GetPositions(cDef);
return (cb);
}
/// <summary>
/// Gets the array of color positions
/// </summary>
/// <param name="cDef"></param>
/// <returns></returns>
private float[] GetPositions(ColorDef cDef)
{
float[] cp = cDef.Positions;
if (cp == null || cp.Length != cDef.Colors.Length)
{
cp = new float[cDef.Colors.Length];
float f = 1f / cDef.Colors.Length;
for (int i = 0; i < cp.Length; i++)
cp[i] = i * f;
cp[cDef.Colors.Length - 1] = 1;
}
return (cp);
}
#endregion
}
#endregion
}
#endif

View File

@@ -0,0 +1,691 @@
#if FRAMEWORK20
using DevComponents.DotNetBar.Rendering;
namespace DevComponents.DotNetBar.Schedule
{
#region enum definitions
/// <summary>
/// Month calendar parts enum
/// </summary>
public enum eCalendarMonthPart
{
DayOfTheWeekHeaderBorder,
DayOfTheWeekHeaderBackground,
DayOfTheWeekHeaderForeground,
SideBarBorder,
SideBarBackground,
SideBarForeground,
DayHeaderBorder,
DayHeaderBackground,
DayHeaderForeground,
DayContentBorder,
DayContentSelectionBackground,
DayContentActiveBackground,
DayContactInactiveBackground,
OwnerTabBorder,
OwnerTabBackground,
OwnerTabForeground,
OwnerTabContentBackground,
OwnerTabSelectedForeground,
OwnerTabSelectedBackground,
NowDayHeaderBorder,
NowDayHeaderForeground,
NowDayHeaderBackground,
ContentLinkForeground,
ContentLinkBackground,
}
#endregion
public class CalendarMonthColor : CalendarColor
{
#region Private variables
private ColorDef[][] _LocalColorTable =
{ _Blue, _Green, _Maroon, _Steel, _Teal, _Purple, _Olive,
_Red, _DarkPeach, _DarkSteel, _DarkGreen, _Yellow};
#endregion
/// <summary>
/// Constructor
/// </summary>
/// <param name="eColor">Default color</param>
public CalendarMonthColor(eCalendarColor eColor)
: base(eColor)
{
}
#region SetColorTable routine
/// <summary>
/// Sets our current color table to either
/// a local or global definition
/// </summary>
public override void SetColorTable()
{
if (ColorSch != eCalendarColor.Automatic)
{
// Use the requested local color table
ColorTable = _LocalColorTable[(int)ColorSch];
}
else
{
// Use the globally set color table
Office2007Renderer r =
GlobalManager.Renderer as Office2007Renderer;
ColorTable = (r != null)
? r.ColorTable.CalendarView.MonthViewColors
: _LocalColorTable[(int)eCalendarColor.Blue];
}
}
#endregion
#region Static Color definitions
// Array of predefined color
#region Blue
static ColorDef[] _Blue = new ColorDef[]
{
new ColorDef(0x8DAED9), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xE4ECF6, 0xD6E2F1, 0xC2D4EB, 0xD0DEEF}, // DayOfWeekHeaderBackground
new float[] {0f, .6f, .6f, 1f}, 90f),
new ColorDef(0x000000), // DayOfWeekHeaderForeground - 0x15428B
new ColorDef(0x5D8CC9), // SideBarBorder
new ColorDef(new int[] {0xE4ECF6, 0xD6E2F1, 0xC2D4EB, 0xD0DEEF}, // SideBarBackground
new float[] {0f, .6f, .6f, 1f}, 0f),
new ColorDef(0x000000), // SideBarForeground - 0x15428B
new ColorDef(0x5D8CC9), // DayHeaderBorder
new ColorDef(new int[] {0xE4ECF6, 0xD6E2F1, 0xC2D4EB, 0xD0DEEF}, // DayHeaderBackground
new float[] {0f, .6f, .6f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0x8DAED9), // DayContentBorder
new ColorDef(0xE6EDF7), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0xA5BFE1), // DayContentInactiveDayBackground
new ColorDef(0x5D8CC9), // OwnerTabBorder
new ColorDef(new int[] {0xBBCFE9, 0x8DAED9}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x8DAED9), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#region Green
static ColorDef[] _Green = new ColorDef[]
{
new ColorDef(0x72A45A), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xE7F0E4, 0xDDE8D7, 0xCCDEC2, 0xD8E5D0}, // DayOfWeekHeaderBackground
new float[] {0f, .6f, .6f, 1f}, 90f),
new ColorDef(0x50734D), // DayOfWeekHeaderForeground
new ColorDef(0x72A45A), // SideBarBorder
new ColorDef(new int[] {0xE7F0E4, 0xDEE9D8, 0xCBDDC2, 0xD7E5D0}, // SideBarBackground
new float[] {0f, .6f, .6f, 1f}, 0f),
new ColorDef(0x000000), // SideBarForeground
new ColorDef(0x50733F), // DayHeaderBorder
new ColorDef(new int[] {0xE7F0E4, 0xDDE8D7, 0xCCDEC2, 0xD8E5D0}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0x72A45A), // DayContentBorder
new ColorDef(0xE9F1E6), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0xB1CDA4), // DayContentInactiveDayBackground
new ColorDef(0x72A45A), // OwnerTabBorder
new ColorDef(new int[] {0xC3D9B9, 0x9CBF8B}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x9CBF8B), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#region Maroon
static ColorDef[] _Maroon = new ColorDef[]
{
new ColorDef(0x85495E), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xF4E6EB, 0xEFDAE2, 0xE6C6D2, 0xEDD4DD}, // DayOfWeekHeaderBackground
new float[] {0f, .6f, .6f, 1f}, 90f),
new ColorDef(0x85496B), // DayOfWeekHeaderForeground
new ColorDef(0xBE6886), // SideBarBorder
new ColorDef(new int[] {0xF4E6EB, 0xF0DBE3, 0xE7C7D3, 0xECD4DD}, // SideBarBackground
new float[] {0f, .6f, .6f, 1f}, 0f),
new ColorDef(0x000000), // SideBarForeground
new ColorDef(0x85495E), // DayHeaderBorder
new ColorDef(new int[] {0xF4E6EB, 0xEFDAE2, 0xE6C6D2, 0xEDD4DD}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0xBE6886), // DayContentBorder
new ColorDef(0xF5E8EC), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0xDBACBC), // DayContentInactiveDayBackground
new ColorDef(0xBE6886), // OwnerTabBorder
new ColorDef(new int[] {0xE4BFCB, 0xD195AA}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xD195AA), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#region Steel
static ColorDef[] _Steel = new ColorDef[]
{
new ColorDef(0x9199A4), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xDCDFE2, 0xD3D6DA, 0xB4BAC1, 0xCBCED4}, // DayOfWeekHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x616A76), // DayOfWeekHeaderForeground
new ColorDef(0x9199A4), // SideBarBorder
new ColorDef(new int[] {0xDCDFE2, 0xD2D5DA, 0xB7BCC3, 0xCACED4}, // SideBarBackground
new float[] {0f, .6f, .6f, 1f}, 0f),
new ColorDef(0x000000), // SideBarForeground
new ColorDef(0x9199A4), // DayHeaderBorder
new ColorDef(new int[] {0xDCDFE2, 0xD3D6DA, 0xB4BAC1, 0xCBCED4}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0x9199A4), // DayContentBorder
new ColorDef(0xE8EAEC), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0xC7CBD1), // DayContentInactiveDayBackground
new ColorDef(0x9199A4), // OwnerTabBorder
new ColorDef(new int[] {0xCFD2D8, 0xB0B6BE}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xB0B6BE), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#region Teal
static ColorDef[] _Teal = new ColorDef[]
{
new ColorDef(0x3F7373), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xDCDFE2, 0xD7E8E8, 0xC0DDDD, 0xD0E5E5}, // DayOfWeekHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x3F7380), // DayOfWeekHeaderForeground
new ColorDef(0x5AA4A4), // SideBarBorder
new ColorDef(new int[] {0xE4F0F0, 0xD6E8E8, 0xC2DDDD, 0xD0E5E5}, // SideBarBackground
new float[] {0f, .6f, .6f, 1f}, 0f),
new ColorDef(0x000000), // SideBarForeground
new ColorDef(0x3F7373), // DayHeaderBorder
new ColorDef(new int[] {0xDCDFE2, 0xD7E8E8, 0xC0DDDD, 0xD0E5E5}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0x5AA4A4), // DayContentBorder
new ColorDef(0xE6F1F1), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0xA4CDCD), // DayContentInactiveDayBackground
new ColorDef(0x5AA4A4), // OwnerTabBorder
new ColorDef(new int[] {0xB9D9D9, 0x8CBFC0}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x8CBFC0), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#region Purple
static ColorDef[] _Purple = new ColorDef[]
{
new ColorDef(0x7171CD), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xE6E6F6, 0xDCDCF2, 0xC9C9EC, 0xD7D7F0}, // DayOfWeekHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x4F4F90), // DayOfWeekHeaderForeground
new ColorDef(0x7171CD), // SideBarBorder
new ColorDef(new int[] {0xE6E6F6, 0xDCDCF2, 0xC9C9EC, 0xD7D7F0}, // SideBarBackground
new float[] {0f, .55f, .58f, 1f}, 0f),
new ColorDef(0x000000), // SideBarForeground
new ColorDef(0x4F4F90), // DayHeaderBorder
new ColorDef(new int[] {0xE6E6F6, 0xDCDCF2, 0xC9C9EC, 0xD7D7F0}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0x7171CD), // DayContentBorder
new ColorDef(0xE9E9F7), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0x9B9BDC), // DayContentInactiveDayBackground
new ColorDef(0x7171CD), // OwnerTabBorder
new ColorDef(new int[] {0xC1C1EA, 0x8C8CD7}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x8C8CD7), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#region Olive
static ColorDef[] _Olive = new ColorDef[]
{
new ColorDef(0x9D9D57), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xEFEFE3, 0xE8E8D8, 0xDADABF, 0xE3E3CF}, // DayOfWeekHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x6E6E3D), // DayOfWeekHeaderForeground
new ColorDef(0x9D9D57), // SideBarBorder
new ColorDef(new int[] {0xEFEFE3, 0xE8E8D8, 0xDADABF, 0xE3E3CF}, // SideBarBackground
new float[] {0f, .55f, .58f, 1f}, 0f),
new ColorDef(0x000000), // SideBarForeground
new ColorDef(0x6E6E3D), // DayHeaderBorder
new ColorDef(new int[] {0xEFEFE3, 0xE8E8D8, 0xDADABF, 0xE3E3CF}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0x9D9D57), // DayContentBorder
new ColorDef(0xF0F0E5), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0xC9C9A2), // DayContentInactiveDayBackground
new ColorDef(0x9D9D57), // OwnerTabBorder
new ColorDef(new int[] {0xD5D5B8, 0xBABA89}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xBABA89), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#region Red
static ColorDef[] _Red = new ColorDef[]
{
new ColorDef(0xC16969), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xF5E6E6, 0xEFDADA, 0xE7C6C6, 0xEDD4D4}, // DayOfWeekHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x874A4A), // DayOfWeekHeaderForeground
new ColorDef(0xC16969), // SideBarBorder
new ColorDef(new int[] {0xF5E6E6, 0xEFDADA, 0xE7C6C6, 0xEDD4D4}, // SideBarBackground
new float[] {0f, .55f, .58f, 1f}, 0f),
new ColorDef(0x000000), // SideBarForeground
new ColorDef(0x874A4A), // DayHeaderBorder
new ColorDef(new int[] {0xF5E6E6, 0xEFDADA, 0xE7C6C6, 0xEDD4D4}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0xC16969), // DayContentBorder
new ColorDef(0xF6E8E8), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0xDDACAC), // DayContentInactiveDayBackground
new ColorDef(0xC16969), // OwnerTabBorder
new ColorDef(new int[] {0xE5BFBF, 0xD39696}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xD39696), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#region DarkPeach
static ColorDef[] _DarkPeach = new ColorDef[]
{
new ColorDef(0xA98F5D), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xF1EDE4, 0xE9E4D7, 0xDFD5C1, 0xE6E0D1}, // DayOfWeekHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x776441), // DayOfWeekHeaderForeground
new ColorDef(0xA98F5D), // SideBarBorder
new ColorDef(new int[] {0xF1EDE4, 0xDFD5C1, 0xDFD5C1, 0xE6E0D1}, // SideBarBackground
new float[] {0f, .55f, .58f, 1f}, 0f),
new ColorDef(0x000000), // SideBarForeground
new ColorDef(0x776441), // DayHeaderBorder
new ColorDef(new int[] {0xF1EDE4, 0xE9E4D7, 0xDFD5C1, 0xE6E0D1}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0xA98F5D), // DayContentBorder
new ColorDef(0xF2EEE6), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0xCFC1A5), // DayContentInactiveDayBackground
new ColorDef(0xA98F5D), // OwnerTabBorder
new ColorDef(new int[] {0xDBCFBA, 0xC3B08D}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xC3B08D), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#region DarkSteel
static ColorDef[] _DarkSteel = new ColorDef[]
{
new ColorDef(0x6197B1), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xE5EEF2, 0xD8E5EB, 0xC3D7E1, 0xD2E2E9}, // DayOfWeekHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x446A96), // DayOfWeekHeaderForeground
new ColorDef(0x6197B1), // SideBarBorder
new ColorDef(new int[] {0xE5EEF2, 0xD8E5EB, 0xC3D7E1, 0xD2E2E9}, // SideBarBackground
new float[] {0f, .55f, .58f, 1f}, 0f),
new ColorDef(0x000000), // SideBarForeground
new ColorDef(0x446A7C), // DayHeaderBorder
new ColorDef(new int[] {0xE5EEF2, 0xD8E5EB, 0xC3D7E1, 0xD2E2E9}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0x6197B1), // DayContentBorder
new ColorDef(0xE7EFF3), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0xA8C5D4), // DayContentInactiveDayBackground
new ColorDef(0x6197B1), // OwnerTabBorder
new ColorDef(new int[] {0xBCD2DE, 0x90B6C8}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x90B6C8), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#region DarkGreen
static ColorDef[] _DarkGreen = new ColorDef[]
{
new ColorDef(0x5AA48C), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xE4F0EC, 0xD7E8E3, 0xC0DDD4, 0xD0E5DF}, // DayOfWeekHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x3F7362), // DayOfWeekHeaderForeground
new ColorDef(0x5AA48C), // SideBarBorder
new ColorDef(new int[] {0xE4F0EC, 0xD7E8E3, 0xC0DDD4, 0xD0E5DF}, // SideBarBackground
new float[] {0f, .55f, .58f, 1f}, 0f),
new ColorDef(0x000000), // SideBarForeground
new ColorDef(0x3F7362), // DayHeaderBorder
new ColorDef(new int[] {0xE4F0EC, 0xD7E8E3, 0xC0DDD4, 0xD0E5DF}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0x5AA48C), // DayContentBorder
new ColorDef(0xE6F1ED), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0xA4CDBF), // DayContentInactiveDayBackground
new ColorDef(0x5AA48C), // OwnerTabBorder
new ColorDef(new int[] {0xB9D9CE, 0x8BBFAE}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x8BBFAE), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#region Yellow
static ColorDef[] _Yellow = new ColorDef[]
{
new ColorDef(0xFFD151), // DayOfWeekHeaderBorder
new ColorDef(new int[] {0xFFF8E2, 0xFFF5D7, 0xFFEDBD, 0xFFF2CE}, // DayOfWeekHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x7F6628), // DayOfWeekHeaderForeground
new ColorDef(0xFFD151), // SideBarBorder
new ColorDef(new int[] {0xFFF8E2, 0xFFF5D7, 0xFFEDBD, 0xFFF2CE}, // SideBarBackground
new float[] {0f, .55f, .58f, 1f}, 0f),
new ColorDef(0x7F6628), // SideBarForeground
new ColorDef(0xD3AC40), // DayHeaderBorder
new ColorDef(new int[] {0xFFF8E2, 0xFFF5D7, 0xFFEDBD, 0xFFF2CE}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x000000), // DayHeaderForeground
new ColorDef(0xFFD151), // DayContentBorder
new ColorDef(0xFFF8E4), // DayContentSelectionBackground
new ColorDef(0xFFFFFF), // DayContentActiveDayBackground
new ColorDef(0xFFE69F), // DayContentInactiveDayBackground
new ColorDef(0xFFD151), // OwnerTabBorder
new ColorDef(new int[] {0xFFEBB6, 0xFFDF86}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xFFDF86), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(0x000000), // ContentLinkForeground - DayHeaderForeground
new ColorDef(0xFFFFFF), // ContentLinkBackground - DayContentActiveBackground
};
#endregion
#endregion
}
}
#endif

View File

@@ -0,0 +1,73 @@
#if FRAMEWORK20
namespace DevComponents.DotNetBar.Schedule
{
#region enum definitions
#region eCalendarViewPart
/// <summary>
/// View calendar parts enum
/// </summary>
public enum eCalendarViewPart
{
OwnerTabBorder,
OwnerTabBackground,
OwnerTabForeground,
OwnerTabContentBackground
}
#endregion
#region eCalendarColor
/// <summary>
/// Defines available custom calendar color
/// </summary>
public enum eCalendarColor
{
Blue,
Green,
Maroon,
Steel,
Teal,
Purple,
Olive,
Red,
DarkPeach,
DarkSteel,
DarkGreen,
Yellow,
Automatic
}
#endregion
#endregion
public class CalendarViewColor : CalendarColor
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="eColor">Default color</param>
public CalendarViewColor(eCalendarColor eColor)
: base(eColor)
{
}
#region SetColorTable routine
/// <summary>
/// Sets our current color table to either
/// a local or global definition
/// </summary>
public override void SetColorTable()
{
}
#endregion
}
}
#endif

View File

@@ -0,0 +1,667 @@
#if FRAMEWORK20
using DevComponents.DotNetBar.Rendering;
namespace DevComponents.DotNetBar.Schedule
{
#region enum definitions
/// <summary>
/// Week/Day calendar parts enum
/// </summary>
public enum eCalendarWeekDayPart : int
{
DayViewBorder,
DayHeaderForeground,
DayHeaderBackground,
DayHeaderBorder,
DayWorkHoursBackground,
DayAllDayEventBackground,
DayOffWorkHoursBackground,
DayHourBorder,
DayHalfHourBorder,
SelectionBackground,
OwnerTabBorder,
OwnerTabBackground,
OwnerTabForeground,
OwnerTabContentBackground,
OwnerTabSelectedForeground,
OwnerTabSelectedBackground,
CondensedViewBackground,
NowDayHeaderBorder,
NowDayHeaderForeground,
NowDayHeaderBackground,
TimeIndicator,
TimeIndicatorBorder
}
#endregion
public class CalendarWeekDayColor : CalendarColor
{
#region Private variables
private ColorDef[][] _LocalColorTable =
{ _Blue, _Green, _Maroon, _Steel, _Teal, _Purple, _Olive,
_Red, _DarkPeach, _DarkSteel, _DarkGreen, _Yellow};
#endregion
/// <summary>
/// Constructor
/// </summary>
/// <param name="eColor">Default color</param>
public CalendarWeekDayColor(eCalendarColor eColor)
: base(eColor)
{
}
#region SetColorTable routine
/// <summary>
/// Sets our current color table to either
/// a local or global definition
/// </summary>
public override void SetColorTable()
{
if (ColorSch != eCalendarColor.Automatic)
{
// Use the requested local color table
ColorTable = _LocalColorTable[(int)ColorSch];
}
else
{
// Use the globally set color table
Office2007Renderer r =
GlobalManager.Renderer as Office2007Renderer;
ColorTable = (r != null)
? r.ColorTable.CalendarView.WeekDayViewColors
: _LocalColorTable[(int)eCalendarColor.Blue];
}
}
#endregion
#region Static Color definitions
// Array of predefined color
#region Blue
static ColorDef[] _Blue = new ColorDef[]
{
new ColorDef(0x5D8CC9), // DayViewBorder
new ColorDef(0x000000), // DayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xE4ECF6, 0xD6E2F1, 0xC2D4EB, 0xD0DEEF}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x8DAED9), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0x8DAED9), // DayAllDayEventBackground
new ColorDef(0xE6EDF7), // DayOffWorkHoursBackground
new ColorDef(0xA5BFE1), // DayHourBorder
new ColorDef(0xD5E1F1), // DayHalfHourBorder
new ColorDef(0x294C7A), // SelectionBackground
new ColorDef(0x5D8CC9), // OwnerTabBorder
new ColorDef(new int[] {0xBBCFE9, 0x8DAED9}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x8DAED9), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#region Green
static ColorDef[] _Green = new ColorDef[]
{
new ColorDef(0x72A45A), // DayViewBorder
new ColorDef(0x50734D), // DayHeaderForeground
new ColorDef(new int[] {0xE7F0E4, 0xDDE8D7, 0xCADDC0, 0xD8E5D0}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x72A45A), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0xB1CDA4), // DayAllDayEventBackground
new ColorDef(0xE9F1E6), // DayOffWorkHoursBackground
new ColorDef(0xB1CDA4), // DayHourBorder
new ColorDef(0xD6DDD2), // DayHalfHourBorder
new ColorDef(0x3F5B32), // SelectionBackground
new ColorDef(0x72A45A), // OwnerTabBorder
new ColorDef(new int[] {0xC3D9B9, 0x9CBF8B}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x9CBF8B), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#region Maroon
static ColorDef[] _Maroon = new ColorDef[]
{
new ColorDef(0xBE6886), // DayViewBorder
new ColorDef(0x85496B), // DayHeaderForeground
new ColorDef(new int[] {0xF4E6EB, 0xEFDAE2, 0xE7C8D3, 0xEDD4DD}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0xBE6886), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0xDBACBC), // DayAllDayEventBackground
new ColorDef(0xF5E8EC), // DayOffWorkHoursBackground
new ColorDef(0xDBACBC), // DayHourBorder
new ColorDef(0xE5D3D9), // DayHalfHourBorder
new ColorDef(0x693A4A), // SelectionBackground
new ColorDef(0xBE6886), // OwnerTabBorder
new ColorDef(new int[] {0xE4BFCB, 0xD195AA}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xD195AA), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#region Steel
static ColorDef[] _Steel = new ColorDef[]
{
new ColorDef(0x616A76), // DayViewBorder
new ColorDef(0x616A76), // DayHeaderForeground
new ColorDef(new int[] {0xDCDFE2, 0xD3D6DA, 0xB4BAC1, 0xCBCED4}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x9199A4), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0xC7CBD1), // DayAllDayEventBackground
new ColorDef(0xE8EAEC), // DayOffWorkHoursBackground
new ColorDef(0xC7CBD1), // DayHourBorder
new ColorDef(0xDDDDDD), // DayHalfHourBorder
new ColorDef(0x4C535C), // SelectionBackground
new ColorDef(0x9199A4), // OwnerTabBorder
new ColorDef(new int[] {0xCFD2D8, 0xB0B6BE}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xB0B6BE), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#region Teal
static ColorDef[] _Teal = new ColorDef[]
{
new ColorDef(0x5AA4A4), // DayViewBorder
new ColorDef(0x3F7380), // DayHeaderForeground
new ColorDef(new int[] {0xE4F0F0, 0xD7E8E8, 0xC0DDDD, 0xD0E5E5}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x8CBFC0), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0xA4CDCD), // DayAllDayEventBackground
new ColorDef(0xE6F1F1), // DayOffWorkHoursBackground
new ColorDef(0xA4CDCD), // DayHourBorder
new ColorDef(0xD2DDDD), // DayHalfHourBorder
new ColorDef(0x325B5B), // SelectionBackground
new ColorDef(0x5AA4A4), // OwnerTabBorder
new ColorDef(new int[] {0xB9D9D9, 0x8CBFC0}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x8CBFC0), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#region Purple
static ColorDef[] _Purple = new ColorDef[]
{
new ColorDef(0x7171CD), // DayViewBorder
new ColorDef(0x4F4F90), // DayHeaderForeground
new ColorDef(new int[] {0xE7E7F6, 0xDCDCF2, 0xC9C9EC, 0xD7D7F0}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x8C8CD7), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0x9B9BDC), // DayAllDayEventBackground
new ColorDef(0xE9E9F7), // DayOffWorkHoursBackground
new ColorDef(0x9B9BDC), // DayHourBorder
new ColorDef(0xD5D5E8), // DayHalfHourBorder
new ColorDef(0x3E3E71), // SelectionBackground
new ColorDef(0x7171CD), // OwnerTabBorder
new ColorDef(new int[] {0xC1C1EA, 0x8C8CD7}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x8C8CD7), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#region Olive
static ColorDef[] _Olive = new ColorDef[]
{
new ColorDef(0x9D9D57), // DayViewBorder
new ColorDef(0x6E6E3D), // DayHeaderForeground
new ColorDef(new int[] {0xEFEFE3, 0xE8E8D8, 0xDADABF, 0xE3E3CF}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0xBABA89), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0xC9C9A2), // DayAllDayEventBackground
new ColorDef(0xF0F0E5), // DayOffWorkHoursBackground
new ColorDef(0xC9C9A2), // DayHourBorder
new ColorDef(0xDBDBD0), // DayHalfHourBorder
new ColorDef(0x575730), // SelectionBackground
new ColorDef(0x9D9D57), // OwnerTabBorder
new ColorDef(new int[] {0xD5D5B8, 0xBABA89}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xBABA89), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#region Red
static ColorDef[] _Red = new ColorDef[]
{
new ColorDef(0xC16969), // DayViewBorder
new ColorDef(0x874A4A), // DayHeaderForeground
new ColorDef(new int[] {0xF5E6E6, 0xEFDADA, 0xE7C6C6, 0xEDD4D4}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0xD39696), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0xDDACAC), // DayAllDayEventBackground
new ColorDef(0xF6E8E8), // DayOffWorkHoursBackground
new ColorDef(0xDDACAC), // DayHourBorder
new ColorDef(0xE8D7D7), // DayHalfHourBorder
new ColorDef(0x6B3A3A), // SelectionBackground
new ColorDef(0xC16969), // OwnerTabBorder
new ColorDef(new int[] {0xE5BFBF, 0xD39696}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xD39696), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#region DarkPeach
static ColorDef[] _DarkPeach = new ColorDef[]
{
new ColorDef(0xA98F5D), // DayViewBorder
new ColorDef(0x776441), // DayHeaderForeground
new ColorDef(new int[] {0xF1EDE4, 0xE9E4D7, 0xDFD5C1, 0xE6E0D1}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0xC3B08D), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0xCFC1A5), // DayAllDayEventBackground
new ColorDef(0xF2EEE6), // DayOffWorkHoursBackground
new ColorDef(0xCFC1A5), // DayHourBorder
new ColorDef(0xE0D7C5), // DayHalfHourBorder
new ColorDef(0x5D4F33), // SelectionBackground
new ColorDef(0xA98F5D), // OwnerTabBorder
new ColorDef(new int[] {0xDBCFBA, 0xC3B08D}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xC3B08D), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#region DarkSteel
static ColorDef[] _DarkSteel = new ColorDef[]
{
new ColorDef(0x6197B1), // DayViewBorder
new ColorDef(0x446A96), // DayHeaderForeground
new ColorDef(new int[] {0xE5EEF2, 0xD8E5EB, 0xC3D7E1, 0xD2E2E9}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x90B6C8), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0xA8C5D4), // DayAllDayEventBackground
new ColorDef(0xE7EFF3), // DayOffWorkHoursBackground
new ColorDef(0xA8C5D4), // DayHourBorder
new ColorDef(0xDCE5E3), // DayHalfHourBorder
new ColorDef(0x365362), // SelectionBackground
new ColorDef(0x6197B1), // OwnerTabBorder
new ColorDef(new int[] {0xBCD2DE, 0x90B6C8}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x90B6C8), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#region DarkGreen
static ColorDef[] _DarkGreen = new ColorDef[]
{
new ColorDef(0x5AA48C), // DayViewBorder
new ColorDef(0x3F7362), // DayHeaderForeground
new ColorDef(new int[] {0xE4F0EC, 0xD7E8E3, 0xC0DDD4, 0xD0E5DF}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0x8BBFAE), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0xA4CDBF), // DayAllDayEventBackground
new ColorDef(0xE6F1ED), // DayOffWorkHoursBackground
new ColorDef(0xA4CDBF), // DayHourBorder
new ColorDef(0xD0DDD9), // DayHalfHourBorder
new ColorDef(0x325B4D), // SelectionBackground
new ColorDef(0x5AA48C), // OwnerTabBorder
new ColorDef(new int[] {0xB9D9CE, 0x8BBFAE}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0x8BBFAE), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#region Yellow
static ColorDef[] _Yellow = new ColorDef[]
{
new ColorDef(0xFFD151), // DayViewBorder
new ColorDef(0x7F6628), // DayHeaderForeground
new ColorDef(new int[] {0xFFF8E2, 0xFFF5D7, 0xFFEDBD, 0xFFF2CE}, // DayHeaderBackground
new float[] {0f, .55f, .58f, 1f}, 90f),
new ColorDef(0xFFDF86), // DayHeaderBorder
new ColorDef(0xFFFFFF), // DayWorkHoursBackground
new ColorDef(0xFFE69F), // DayAllDayEventBackground
new ColorDef(0xFFF8E4), // DayOffWorkHoursBackground
new ColorDef(0xFFE69F), // DayHourBorder
new ColorDef(0xFFE69F), // DayHalfHourBorder
new ColorDef(0xB39540), // SelectionBackground
new ColorDef(0xFFD151), // OwnerTabBorder
new ColorDef(new int[] {0xFFEBB6, 0xFFDF86}, // OwnerTabBackground
new float[] {0f, 1f}, 90f),
new ColorDef(0x000000), // OwnerTabForeground
new ColorDef(0xFFDF86), // OwnerTabContentBackground
new ColorDef(0x000000), // OwnerTabSelectedForeground
new ColorDef(0xFFFFFF), // OwnerTabSelectionBackground
new ColorDef(0xF5F5F5), // CondensedViewBackground
new ColorDef(0xEB8900), // NowDayViewBorder
new ColorDef(0x000000), // NowDayHeaderForeground - 0x15428B
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // NowDayHeaderBackground
new float[] {0f, .55f, .058f, 1f}, 90f),
new ColorDef(new int[] {0xFFED79, 0xFFD86B, 0xFFBB00, 0xFFEA77}, // TimeIndicator
new float[] {0f, .55f ,58f, 1f}, 90f),
new ColorDef(0xEB8900), // TimeIndicatorBorder
};
#endregion
#endregion
}
}
#endif

View File

@@ -0,0 +1,54 @@
#if FRAMEWORK20
using DevComponents.DotNetBar.Rendering;
namespace DevComponents.DotNetBar.Schedule
{
#region enum definitions
/// <summary>
/// Week/Day calendar parts enum
/// </summary>
public enum eTimeRulerPart : int
{
TimeRulerBackground,
TimeRulerForeground,
TimeRulerBorder,
TimeRulerTickBorder,
TimeRulerIndicator,
TimeRulerIndicatorBorder
}
#endregion
public class TimeRulerColor : CalendarColor
{
/// <summary>
/// Constructor
/// </summary>
public TimeRulerColor()
: base(eCalendarColor.Automatic)
{
}
#region SetColorTable routine
/// <summary>
/// Sets our current color table to either
/// a local or global definition
/// </summary>
public override void SetColorTable()
{
// Use the globally set color table
Office2007Renderer r =
GlobalManager.Renderer as Office2007Renderer;
if (r != null)
ColorTable = r.ColorTable.CalendarView.TimeRulerColors;
}
#endregion
}
}
#endif