Office2007ColorTable.cs
Description du code
Office2007ColorTable.cs est un fichier du projet BrolDev.Ce fichier est situé dans /var/www/bin/sniplets/bibliobrol/broldev/src/.
Projet BrolDev : Librairie de composants réutilisables pour les applications BrolDev en CSharp.
Code source ou contenu du fichier
Code c# (Office2007ColorTable.cs) (386 lignes)
/********************************************************************/ /* Office 2007 Renderer Project */ /* */ /* Use the Office2007Renderer class as a custom renderer by */ /* providing it to the ToolStripManager.Renderer property. Then */ /* all tool strips, menu strips, status strips etc will be drawn */ /* using the Office 2007 style renderer in your application. */ /* */ /* Author: Phil Wright */ /* Website: www.componentfactory.com */ /* Contact: phil.wright@componentfactory.com */ /********************************************************************/ using System.Drawing; using System.Windows.Forms; namespace Office2007Renderer { /// <summary> /// Provide Office 2007 Blue Theme colors /// </summary> public class Office2007ColorTable : ProfessionalColorTable { #region Static Fixed Colors - Blue Color Scheme private static Color _contextMenuBack = Color.FromArgb(250, 250, 250); private static Color _buttonPressedBegin = Color.FromArgb(248, 181, 106); private static Color _buttonPressedEnd = Color.FromArgb(255, 208, 134); private static Color _buttonPressedMiddle = Color.FromArgb(251, 140, 60); private static Color _buttonSelectedBegin = Color.FromArgb(255, 255, 222); private static Color _buttonSelectedEnd = Color.FromArgb(255, 203, 136); private static Color _buttonSelectedMiddle = Color.FromArgb(255, 225, 172); private static Color _menuItemSelectedBegin = Color.FromArgb(255, 213, 103); private static Color _menuItemSelectedEnd = Color.FromArgb(255, 228, 145); private static Color _checkBack = Color.FromArgb(255, 227, 149); private static Color _gripDark = Color.FromArgb(111, 157, 217); private static Color _gripLight = Color.FromArgb(255, 255, 255); private static Color _imageMargin = Color.FromArgb(233, 238, 238); private static Color _menuBorder = Color.FromArgb(134, 134, 134); private static Color _overflowBegin = Color.FromArgb(167, 204, 251); private static Color _overflowEnd = Color.FromArgb(101, 147, 207); private static Color _overflowMiddle = Color.FromArgb(167, 204, 251); private static Color _menuToolBack = Color.FromArgb(191, 219, 255); private static Color _separatorDark = Color.FromArgb(154, 198, 255); private static Color _separatorLight = Color.FromArgb(255, 255, 255); private static Color _statusStripLight = Color.FromArgb(215, 229, 247); private static Color _statusStripDark = Color.FromArgb(172, 201, 238); private static Color _toolStripBorder = Color.FromArgb(111, 157, 217); private static Color _toolStripContentEnd = Color.FromArgb(164, 195, 235); private static Color _toolStripBegin = Color.FromArgb(227, 239, 255); private static Color _toolStripEnd = Color.FromArgb(152, 186, 230); private static Color _toolStripMiddle = Color.FromArgb(222, 236, 255); private static Color _buttonBorder = Color.FromArgb(121, 153, 194); #endregion #region Identity /// <summary> /// Initialize a new instance of the Office2007ColorTable class. /// </summary> public Office2007ColorTable() { } #endregion #region ButtonPressed /// <summary> /// Gets the starting color of the gradient used when the button is pressed down. /// </summary> public override Color ButtonPressedGradientBegin { get { return _buttonPressedBegin; } } /// <summary> /// Gets the end color of the gradient used when the button is pressed down. /// </summary> public override Color ButtonPressedGradientEnd { get { return _buttonPressedEnd; } } /// <summary> /// Gets the middle color of the gradient used when the button is pressed down. /// </summary> public override Color ButtonPressedGradientMiddle { get { return _buttonPressedMiddle; } } #endregion #region ButtonSelected /// <summary> /// Gets the starting color of the gradient used when the button is selected. /// </summary> public override Color ButtonSelectedGradientBegin { get { return _buttonSelectedBegin; } } /// <summary> /// Gets the end color of the gradient used when the button is selected. /// </summary> public override Color ButtonSelectedGradientEnd { get { return _buttonSelectedEnd; } } /// <summary> /// Gets the middle color of the gradient used when the button is selected. /// </summary> public override Color ButtonSelectedGradientMiddle { get { return _buttonSelectedMiddle; } } /// <summary> /// Gets the border color to use with ButtonSelectedHighlight. /// </summary> public override Color ButtonSelectedHighlightBorder { get { return _buttonBorder; } } #endregion #region Check /// <summary> /// Gets the solid color to use when the check box is selected and gradients are being used. /// </summary> public override Color CheckBackground { get { return _checkBack; } } #endregion #region Grip /// <summary> /// Gets the color to use for shadow effects on the grip or move handle. /// </summary> public override Color GripDark { get { return _gripDark; } } /// <summary> /// Gets the color to use for highlight effects on the grip or move handle. /// </summary> public override Color GripLight { get { return _gripLight; } } #endregion #region ImageMargin /// <summary> /// Gets the starting color of the gradient used in the image margin of a ToolStripDropDownMenu. /// </summary> public override Color ImageMarginGradientBegin { get { return _imageMargin; } } #endregion #region MenuBorder /// <summary> /// Gets the border color or a MenuStrip. /// </summary> public override Color MenuBorder { get { return _menuBorder; } } #endregion #region MenuItem /// <summary> /// Gets the starting color of the gradient used when a top-level ToolStripMenuItem is pressed down. /// </summary> public override Color MenuItemPressedGradientBegin { get { return _toolStripBegin; } } /// <summary> /// Gets the end color of the gradient used when a top-level ToolStripMenuItem is pressed down. /// </summary> public override Color MenuItemPressedGradientEnd { get { return _toolStripEnd; } } /// <summary> /// Gets the middle color of the gradient used when a top-level ToolStripMenuItem is pressed down. /// </summary> public override Color MenuItemPressedGradientMiddle { get { return _toolStripMiddle; } } /// <summary> /// Gets the starting color of the gradient used when the ToolStripMenuItem is selected. /// </summary> public override Color MenuItemSelectedGradientBegin { get { return _menuItemSelectedBegin; } } /// <summary> /// Gets the end color of the gradient used when the ToolStripMenuItem is selected. /// </summary> public override Color MenuItemSelectedGradientEnd { get { return _menuItemSelectedEnd; } } #endregion #region MenuStrip /// <summary> /// Gets the starting color of the gradient used in the MenuStrip. /// </summary> public override Color MenuStripGradientBegin { get { return _menuToolBack; } } /// <summary> /// Gets the end color of the gradient used in the MenuStrip. /// </summary> public override Color MenuStripGradientEnd { get { return _menuToolBack; } } #endregion #region OverflowButton /// <summary> /// Gets the starting color of the gradient used in the ToolStripOverflowButton. /// </summary> public override Color OverflowButtonGradientBegin { get { return _overflowBegin; } } /// <summary> /// Gets the end color of the gradient used in the ToolStripOverflowButton. /// </summary> public override Color OverflowButtonGradientEnd { get { return _overflowEnd; } } /// <summary> /// Gets the middle color of the gradient used in the ToolStripOverflowButton. /// </summary> public override Color OverflowButtonGradientMiddle { get { return _overflowMiddle; } } #endregion #region RaftingContainer /// <summary> /// Gets the starting color of the gradient used in the ToolStripContainer. /// </summary> public override Color RaftingContainerGradientBegin { get { return _menuToolBack; } } /// <summary> /// Gets the end color of the gradient used in the ToolStripContainer. /// </summary> public override Color RaftingContainerGradientEnd { get { return _menuToolBack; } } #endregion #region Separator /// <summary> /// Gets the color to use to for shadow effects on the ToolStripSeparator. /// </summary> public override Color SeparatorDark { get { return _separatorDark; } } /// <summary> /// Gets the color to use to for highlight effects on the ToolStripSeparator. /// </summary> public override Color SeparatorLight { get { return _separatorLight; } } #endregion #region StatusStrip /// <summary> /// Gets the starting color of the gradient used on the StatusStrip. /// </summary> public override Color StatusStripGradientBegin { get { return _statusStripLight; } } /// <summary> /// Gets the end color of the gradient used on the StatusStrip. /// </summary> public override Color StatusStripGradientEnd { get { return _statusStripDark; } } #endregion #region ToolStrip /// <summary> /// Gets the border color to use on the bottom edge of the ToolStrip. /// </summary> public override Color ToolStripBorder { get { return _toolStripBorder; } } /// <summary> /// Gets the starting color of the gradient used in the ToolStripContentPanel. /// </summary> public override Color ToolStripContentPanelGradientBegin { get { return _toolStripContentEnd; } } /// <summary> /// Gets the end color of the gradient used in the ToolStripContentPanel. /// </summary> public override Color ToolStripContentPanelGradientEnd { get { return _menuToolBack; } } /// <summary> /// Gets the solid background color of the ToolStripDropDown. /// </summary> public override Color ToolStripDropDownBackground { get { return _contextMenuBack; } } /// <summary> /// Gets the starting color of the gradient used in the ToolStrip background. /// </summary> public override Color ToolStripGradientBegin { get { return _toolStripBegin; } } /// <summary> /// Gets the end color of the gradient used in the ToolStrip background. /// </summary> public override Color ToolStripGradientEnd { get { return _toolStripEnd; } } /// <summary> /// Gets the middle color of the gradient used in the ToolStrip background. /// </summary> public override Color ToolStripGradientMiddle { get { return _toolStripMiddle; } } /// <summary> /// Gets the starting color of the gradient used in the ToolStripPanel. /// </summary> public override Color ToolStripPanelGradientBegin { get { return _menuToolBack; } } /// <summary> /// Gets the end color of the gradient used in the ToolStripPanel. /// </summary> public override Color ToolStripPanelGradientEnd { get { return _menuToolBack; } } #endregion } }
Structure et Fichiers du projet
Afficher/masquer...Icône | Nom | Taille | Modification |
Icône | Nom | Taille | Modification |
| _ | Répertoire parent | 0 octets | 1730789673 05/11/2024 07:54:33 |
| _ | vista | 0 octets | 1541007202 31/10/2018 18:33:22 |
Utilisation de l'explorateur de code
- Navigation :
- Un clic sur une icône de répertoire ouvre ce répertoire pour en afficher les fichiers.
- Lorsque le répertoire en cours ne contient pas de sous-répertoires il est possible de remonter vers le répertoire parent.
- La structure de répertoires en treetable (tableau en forme d'arborescence) n'est plus possibledans cette version.
- Un clic sur une icône de fichier ouvre ce fichier pour en afficher le code avec la coloration syntaxique adaptée en fonction du langage principal utilisé dans le fichier.
- Affichage :
- Il est possible de trier les répertoires ou les fichiers selon certains critères (nom, taille, date).
- Actions :
- Les actions possible sur les fichiers dépendent de vos droits d'utilisateur sur le site. Veuillez activer le mode utilisateur pour activer les actions.
Version en cache
05/11/2024 07:54:33 Cette version de la page est en cache (à la date du 05/11/2024 07:54:33) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 16/10/2009, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/cs-broldev-source-rf-view/style//Office2007ColorTable.cs.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.