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

  1. using System.Drawing;
  2. using System.Windows.Forms;
  3.  
  4. namespace be.gaudry.view.style
  5. {
  6. public class OrangeStyleColors : ProfessionalColorTable
  7. {
  8. #region Static Fixed Colors - Orange Color Scheme
  9. private static Color _contextMenuBack = Color.Orange; //Color.FromArgb(250, 250, 250);
  10. private static Color _buttonPressedBegin = Color.FromArgb(248, 181, 106);
  11. private static Color _buttonPressedEnd = Color.FromArgb(255, 208, 134);
  12. private static Color _buttonPressedMiddle = Color.FromArgb(251, 140, 60);
  13. private static Color _buttonSelectedBegin = Color.FromArgb(255, 255, 222);
  14. private static Color _buttonSelectedEnd = Color.FromArgb(255, 203, 136);
  15. private static Color _buttonSelectedMiddle = Color.FromArgb(255, 225, 172);
  16. private static Color _menuItemSelectedBegin = Color.FromArgb(255, 213, 103);
  17. private static Color _menuItemSelectedEnd = Color.FromArgb(255, 228, 145);
  18. private static Color _checkBack = Color.FromArgb(255, 227, 149);
  19. private static Color _gripDark = Color.FromArgb(111, 157, 217);
  20. private static Color _gripLight = Color.FromArgb(255, 255, 255);
  21. private static Color _imageMargin = Color.FromArgb(233, 238, 238);
  22. private static Color _menuBorder = Color.FromArgb(134, 134, 134);
  23. private static Color _overflowBegin = Color.FromArgb(167, 204, 251);
  24. private static Color _overflowEnd = Color.FromArgb(101, 147, 207);
  25. private static Color _overflowMiddle = Color.FromArgb(167, 204, 251);
  26. private static Color _menuToolBack = Color.Orange; //Color.FromArgb(191, 219, 255);
  27. private static Color _separatorDark = Color.DarkOrange; //Color.FromArgb(154, 198, 255);
  28. private static Color _separatorLight = Color.Orange; //Color.FromArgb(255, 255, 255);
  29.  
  30. private static Color _statusStripLight = Color.FromArgb(215, 229, 247);
  31. private static Color _statusStripDark = Color.FromArgb(172, 201, 238);
  32. private static Color _toolStripBorder = Color.FromArgb(111, 157, 217);
  33. private static Color _toolStripContentEnd = Color.FromArgb(164, 195, 235);
  34. private static Color _toolStripBegin = Color.Orange; //Color.FromArgb(227, 239, 255);
  35. private static Color _toolStripEnd = Color.DarkOrange; //Color.FromArgb(152, 186, 230);
  36. private static Color _toolStripMiddle = Color.OrangeRed; //Color.FromArgb(222, 236, 255);
  37. private static Color _buttonBorder = Color.FromArgb(121, 153, 194);
  38.  
  39.  
  40. /*private static Color status_strip_gradient_begin;
  41.   private static Color status_strip_gradient_end;
  42.   private static Color tool_strip_border;
  43.   private static Color tool_strip_content_panel_gradient_begin;
  44.   private static Color tool_strip_content_panel_gradient_end;
  45.   private static Color tool_strip_drop_down_background;
  46.   private static Color tool_strip_gradient_begin;
  47.   private static Color tool_strip_gradient_end;
  48.   private static Color tool_strip_gradient_middle;
  49.   private static Color tool_strip_panel_gradient_begin;
  50.   private static Color tool_strip_panel_gradient_end;*/
  51. #endregion
  52.  
  53. #region constructor
  54. /// <summary>
  55. /// Initialize a new instance of the Office2007ColorTable class.
  56. /// </summary>
  57. public OrangeStyleColors()
  58. {
  59. }
  60. #endregion
  61.  
  62. #region Properties
  63. #region ButtonPressed
  64. /// <summary>
  65. /// Gets the starting color of the gradient used when the button is pressed down.
  66. /// </summary>
  67. public override Color ButtonPressedGradientBegin
  68. {
  69. get { return _buttonPressedBegin; }
  70. }
  71.  
  72. /// <summary>
  73. /// Gets the end color of the gradient used when the button is pressed down.
  74. /// </summary>
  75. public override Color ButtonPressedGradientEnd
  76. {
  77. get { return _buttonPressedEnd; }
  78. }
  79.  
  80. /// <summary>
  81. /// Gets the middle color of the gradient used when the button is pressed down.
  82. /// </summary>
  83. public override Color ButtonPressedGradientMiddle
  84. {
  85. get { return _buttonPressedMiddle; }
  86. }
  87. #endregion
  88.  
  89. #region ButtonSelected
  90. /// <summary>
  91. /// Gets the starting color of the gradient used when the button is selected.
  92. /// </summary>
  93. public override Color ButtonSelectedGradientBegin
  94. {
  95. get { return _buttonSelectedBegin; }
  96. }
  97.  
  98. /// <summary>
  99. /// Gets the end color of the gradient used when the button is selected.
  100. /// </summary>
  101. public override Color ButtonSelectedGradientEnd
  102. {
  103. get { return _buttonSelectedEnd; }
  104. }
  105.  
  106. /// <summary>
  107. /// Gets the middle color of the gradient used when the button is selected.
  108. /// </summary>
  109. public override Color ButtonSelectedGradientMiddle
  110. {
  111. get { return _buttonSelectedMiddle; }
  112. }
  113.  
  114. /// <summary>
  115. /// Gets the border color to use with ButtonSelectedHighlight.
  116. /// </summary>
  117. public override Color ButtonSelectedHighlightBorder
  118. {
  119. get { return _buttonBorder; }
  120. }
  121. #endregion
  122.  
  123. #region Check
  124. /// <summary>
  125. /// Gets the solid color to use when the check box is selected and gradients are being used.
  126. /// </summary>
  127. public override Color CheckBackground
  128. {
  129. get { return _checkBack; }
  130. }
  131. #endregion
  132.  
  133. #region Grip
  134. /// <summary>
  135. /// Gets the color to use for shadow effects on the grip or move handle.
  136. /// </summary>
  137. public override Color GripDark
  138. {
  139. get { return _gripDark; }
  140. }
  141.  
  142. /// <summary>
  143. /// Gets the color to use for highlight effects on the grip or move handle.
  144. /// </summary>
  145. public override Color GripLight
  146. {
  147. get { return _gripLight; }
  148. }
  149. #endregion
  150.  
  151. #region ImageMargin
  152. /// <summary>
  153. /// Gets the starting color of the gradient used in the image margin of a ToolStripDropDownMenu.
  154. /// </summary>
  155. public override Color ImageMarginGradientBegin
  156. {
  157. get { return _imageMargin; }
  158. }
  159. #endregion
  160.  
  161. #region MenuBorder
  162. /// <summary>
  163. /// Gets the border color or a MenuStrip.
  164. /// </summary>
  165. public override Color MenuBorder
  166. {
  167. get { return _menuBorder; }
  168. }
  169. #endregion
  170.  
  171. #region MenuItem
  172. /// <summary>
  173. /// Gets the starting color of the gradient used when a top-level ToolStripMenuItem is pressed down.
  174. /// </summary>
  175. public override Color MenuItemPressedGradientBegin
  176. {
  177. get { return _toolStripBegin; }
  178. }
  179.  
  180. /// <summary>
  181. /// Gets the end color of the gradient used when a top-level ToolStripMenuItem is pressed down.
  182. /// </summary>
  183. public override Color MenuItemPressedGradientEnd
  184. {
  185. get { return _toolStripEnd; }
  186. }
  187.  
  188. /// <summary>
  189. /// Gets the middle color of the gradient used when a top-level ToolStripMenuItem is pressed down.
  190. /// </summary>
  191. public override Color MenuItemPressedGradientMiddle
  192. {
  193. get { return _toolStripMiddle; }
  194. }
  195.  
  196. /// <summary>
  197. /// Gets the starting color of the gradient used when the ToolStripMenuItem is selected.
  198. /// </summary>
  199. public override Color MenuItemSelectedGradientBegin
  200. {
  201. get { return _menuItemSelectedBegin; }
  202. }
  203.  
  204. /// <summary>
  205. /// Gets the end color of the gradient used when the ToolStripMenuItem is selected.
  206. /// </summary>
  207. public override Color MenuItemSelectedGradientEnd
  208. {
  209. get { return _menuItemSelectedEnd; }
  210. }
  211. #endregion
  212.  
  213. #region MenuStrip
  214. /// <summary>
  215. /// Gets the starting color of the gradient used in the MenuStrip.
  216. /// </summary>
  217. public override Color MenuStripGradientBegin
  218. {
  219. get { return _menuToolBack; }
  220. }
  221.  
  222. /// <summary>
  223. /// Gets the end color of the gradient used in the MenuStrip.
  224. /// </summary>
  225. public override Color MenuStripGradientEnd
  226. {
  227. get { return _menuToolBack; }
  228. }
  229. #endregion
  230.  
  231. #region OverflowButton
  232. /// <summary>
  233. /// Gets the starting color of the gradient used in the ToolStripOverflowButton.
  234. /// </summary>
  235. public override Color OverflowButtonGradientBegin
  236. {
  237. get { return _overflowBegin; }
  238. }
  239.  
  240. /// <summary>
  241. /// Gets the end color of the gradient used in the ToolStripOverflowButton.
  242. /// </summary>
  243. public override Color OverflowButtonGradientEnd
  244. {
  245. get { return _overflowEnd; }
  246. }
  247.  
  248. /// <summary>
  249. /// Gets the middle color of the gradient used in the ToolStripOverflowButton.
  250. /// </summary>
  251. public override Color OverflowButtonGradientMiddle
  252. {
  253. get { return _overflowMiddle; }
  254. }
  255. #endregion
  256.  
  257. #region RaftingContainer
  258. /// <summary>
  259. /// Gets the starting color of the gradient used in the ToolStripContainer.
  260. /// </summary>
  261. public override Color RaftingContainerGradientBegin
  262. {
  263. get { return _menuToolBack; }
  264. }
  265.  
  266. /// <summary>
  267. /// Gets the end color of the gradient used in the ToolStripContainer.
  268. /// </summary>
  269. public override Color RaftingContainerGradientEnd
  270. {
  271. get { return _menuToolBack; }
  272. }
  273. #endregion
  274.  
  275. #region Separator
  276. /// <summary>
  277. /// Gets the color to use to for shadow effects on the ToolStripSeparator.
  278. /// </summary>
  279. public override Color SeparatorDark
  280. {
  281. get { return _separatorDark; }
  282. }
  283.  
  284. /// <summary>
  285. /// Gets the color to use to for highlight effects on the ToolStripSeparator.
  286. /// </summary>
  287. public override Color SeparatorLight
  288. {
  289. get { return _separatorLight; }
  290. }
  291. #endregion
  292.  
  293. #region StatusStrip
  294. /// <summary>
  295. /// Gets the starting color of the gradient used on the StatusStrip.
  296. /// </summary>
  297. public override Color StatusStripGradientBegin
  298. {
  299. get { return _statusStripLight; }
  300. }
  301.  
  302. /// <summary>
  303. /// Gets the end color of the gradient used on the StatusStrip.
  304. /// </summary>
  305. public override Color StatusStripGradientEnd
  306. {
  307. get { return _statusStripDark; }
  308. }
  309. #endregion
  310.  
  311. #region ToolStrip
  312. /// <summary>
  313. /// Gets the border color to use on the bottom edge of the ToolStrip.
  314. /// </summary>
  315. public override Color ToolStripBorder
  316. {
  317. get { return _toolStripBorder; }
  318. }
  319.  
  320. /// <summary>
  321. /// Gets the starting color of the gradient used in the ToolStripContentPanel.
  322. /// </summary>
  323. public override Color ToolStripContentPanelGradientBegin
  324. {
  325. get { return _toolStripContentEnd; }
  326. }
  327.  
  328. /// <summary>
  329. /// Gets the end color of the gradient used in the ToolStripContentPanel.
  330. /// </summary>
  331. public override Color ToolStripContentPanelGradientEnd
  332. {
  333. get { return _menuToolBack; }
  334. }
  335.  
  336. /// <summary>
  337. /// Gets the solid background color of the ToolStripDropDown.
  338. /// </summary>
  339. public override Color ToolStripDropDownBackground
  340. {
  341. get { return _contextMenuBack; }
  342. }
  343.  
  344. /// <summary>
  345. /// Gets the starting color of the gradient used in the ToolStrip background.
  346. /// </summary>
  347. public override Color ToolStripGradientBegin
  348. {
  349. get { return _toolStripBegin; }
  350. }
  351.  
  352. /// <summary>
  353. /// Gets the end color of the gradient used in the ToolStrip background.
  354. /// </summary>
  355. public override Color ToolStripGradientEnd
  356. {
  357. get { return _toolStripEnd; }
  358. }
  359.  
  360. /// <summary>
  361. /// Gets the middle color of the gradient used in the ToolStrip background.
  362. /// </summary>
  363. public override Color ToolStripGradientMiddle
  364. {
  365. get { return _toolStripMiddle; }
  366. }
  367.  
  368. /// <summary>
  369. /// Gets the starting color of the gradient used in the ToolStripPanel.
  370. /// </summary>
  371. public override Color ToolStripPanelGradientBegin
  372. {
  373. get { return _menuToolBack; }
  374. }
  375.  
  376. /// <summary>
  377. /// Gets the end color of the gradient used in the ToolStripPanel.
  378. /// </summary>
  379. public override Color ToolStripPanelGradientEnd
  380. {
  381. get { return _menuToolBack; }
  382. }
  383. #endregion
  384. #endregion
  385. }
  386. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/broldev/src/view/style/ 
IcôneNomTailleModification
IcôneNomTailleModification
| _ Répertoire parent0 octets1714360296 29/04/2024 05:11:36
| _vista0 octets1541007202 31/10/2018 18:33:22
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/broldev/src/view/style/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .cs|.csOffice2007Renderer.cs58.44 Ko31/10/2018 18:33:16-refusé-
Afficher le fichier .cs|.csStyleHelper.cs1.44 Ko31/10/2018 18:33:16-refusé-
Afficher le fichier .cs|.csProfessionalColorTableFactory.cs57.94 Ko31/10/2018 18:33:16-refusé-
Afficher le fichier .cs|.csControlStyleColors.cs4.76 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .cs|.csCustomSystemColors.cs14.28 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .cs|.csStyleFactory.cs18.11 Ko31/10/2018 18:33:16-refusé-
Afficher le fichier .cs|.csRebarRenderer.cs11.97 Ko31/10/2018 18:33:16-refusé-
Afficher le fichier .cs|.csOrangeStyleColors.cs14.47 Ko31/10/2018 18:33:16-refusé-
Afficher le fichier .cs|.csOffice2007ColorTable.cs13.46 Ko31/10/2018 18:33:15-refusé-
Afficher le fichier .cs|.csXpStyle.cs1.42 Ko31/10/2018 18:33:16-refusé-
Afficher le fichier .cs|.csOffice2007Helpers.cs4.16 Ko31/10/2018 18:33:15-refusé-

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.

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/OrangeStyleColors.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.