OrangeStyleColors.cs
Description du code
OrangeStyleColors.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# (OrangeStyleColors.cs) (386 lignes)
using System.Drawing; using System.Windows.Forms; namespace be.gaudry.view.style { public class OrangeStyleColors : ProfessionalColorTable { #region Static Fixed Colors - Orange Color Scheme private static Color _contextMenuBack = Color.Orange; //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.Orange; //Color.FromArgb(191, 219, 255); private static Color _separatorDark = Color.DarkOrange; //Color.FromArgb(154, 198, 255); private static Color _separatorLight = Color.Orange; //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.Orange; //Color.FromArgb(227, 239, 255); private static Color _toolStripEnd = Color.DarkOrange; //Color.FromArgb(152, 186, 230); private static Color _toolStripMiddle = Color.OrangeRed; //Color.FromArgb(222, 236, 255); private static Color _buttonBorder = Color.FromArgb(121, 153, 194); /*private static Color status_strip_gradient_begin; private static Color status_strip_gradient_end; private static Color tool_strip_border; private static Color tool_strip_content_panel_gradient_begin; private static Color tool_strip_content_panel_gradient_end; private static Color tool_strip_drop_down_background; private static Color tool_strip_gradient_begin; private static Color tool_strip_gradient_end; private static Color tool_strip_gradient_middle; private static Color tool_strip_panel_gradient_begin; private static Color tool_strip_panel_gradient_end;*/ #endregion #region constructor /// <summary> /// Initialize a new instance of the Office2007ColorTable class. /// </summary> public OrangeStyleColors() { } #endregion #region Properties #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 #endregion } }
Structure et Fichiers du projet
Afficher/masquer...Icône | Nom | Taille | Modification |
Icône | Nom | Taille | Modification |
| _ | Répertoire parent | 0 octets | 1732287057 22/11/2024 15:50:57 |
| _ | 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.
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 16/10/2009 gemaakt, de laatste keer de 26/10/2018 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/cs-broldev-source-rf-view/style//OrangeStyleColors.cs.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.