WindowsVistaColorTable.cs

Description du code

WindowsVistaColorTable.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.  
  3. namespace be.gaudry.view.style
  4. {
  5. /// <summary>
  6. /// Provides colors used by WindowsVista style rendering
  7. /// </summary>
  8. /// <remarks>
  9. /// 2007 José Manuel Menéndez Poo
  10. /// Visit my blog for upgrades and other renderers - www.menendezpoo.com
  11. /// </remarks>
  12. public class WindowsVistaColorTable
  13. {
  14. #region Fields
  15. private Color _bgNorth;
  16. private Color _bgSouth;
  17. private Color _glossyNorth;
  18. private Color _glossySouth;
  19. private Color _bgborder;
  20. private Color _bgglow;
  21. private Color _text;
  22. private Color _buttonInnerBorder;
  23. private Color _buttonBorder;
  24. private Color _buttonOuterBorder;
  25. private Color _buttonFill;
  26. private Color _buttonFillPressed;
  27. private Color _glow;
  28. private Color _buttonInnerBorderPressed;
  29. private Color _buttonFillSouth;
  30. private Color _buttonFillSouthPressed;
  31. private Color _dropDownArrow;
  32. private Color _menuHighlight;
  33. private Color _menuHiglightNorth;
  34. private Color _menuHighlightSouth;
  35. private Color _menuBackground;
  36. private Color _menuDark;
  37. private Color _menuLight;
  38. private Color _separatorNorth;
  39. private Color _separatorSouth;
  40. private Color _menuText;
  41. private Color _checkedGlow;
  42. private Color _checkedButtonFill;
  43. private Color _checkedButtonFillHot;
  44. private Color _checkedGlowHot;
  45.  
  46. #endregion
  47.  
  48. #region Ctor
  49.  
  50. public WindowsVistaColorTable()
  51. {
  52. BackgroundNorth = Color.Black;
  53. BackgroundSouth = Color.Black;
  54.  
  55. GlossyEffectNorth = Color.FromArgb(217, 0x68, 0x7C, 0xAC);
  56. GlossyEffectSouth = Color.FromArgb(74, 0xAA, 0xB5, 0xD0);
  57.  
  58. BackgroundBorder = Color.FromArgb(0x85, 0x85, 0x87);
  59. BackgroundGlow = Color.FromArgb(0x43, 0x53, 0x7A);
  60.  
  61. Text = Color.White;
  62.  
  63. ButtonOuterBorder = Color.FromArgb(0x75, 0x7D, 0x95);
  64. ButtonInnerBorder = Color.FromArgb(0xBF, 0xC4, 0xCE);
  65. ButtonInnerBorderPressed = Color.FromArgb(0x4b, 0x4b, 0x4b);
  66. ButtonBorder = Color.FromArgb(0x03, 0x07, 0x0D);
  67. ButtonFillNorth = Color.FromArgb(85, Color.White);
  68. ButtonFillSouth = Color.FromArgb(1, Color.White);
  69. ButtonFillNorthPressed = Color.FromArgb(150, Color.Black);
  70. ButtonFillSouthPressed = Color.FromArgb(100, Color.Black);
  71.  
  72. Glow = Color.FromArgb(0x30, 0x73, 0xCE);
  73. DropDownArrow = Color.White;
  74.  
  75. MenuHighlight = Color.FromArgb(0xA8, 0xD8, 0xEB);
  76. MenuHighlightNorth = Color.FromArgb(25, MenuHighlight);
  77. MenuHighlightSouth = Color.FromArgb(102, MenuHighlight);
  78. MenuBackground = Color.FromArgb(0xF1, 0xF1, 0xF1);
  79. MenuDark = Color.FromArgb(0xE2, 0xE3, 0xE3);
  80. MenuLight = Color.White;
  81.  
  82. SeparatorNorth = BackgroundSouth;
  83. SeparatorSouth = GlossyEffectNorth;
  84.  
  85. MenuText = Color.Black;
  86.  
  87. CheckedGlow = Color.FromArgb(0x57, 0xC6, 0xEF);
  88. CheckedGlowHot = Color.FromArgb(0x70, 0xD4, 0xFF);
  89. CheckedButtonFill = Color.FromArgb(0x18, 0x38, 0x9E);
  90. CheckedButtonFillHot = Color.FromArgb(0x0F, 0x3A, 0xBF);
  91.  
  92. }
  93.  
  94. #endregion
  95.  
  96. #region Properties
  97.  
  98.  
  99. public Color CheckedGlowHot
  100. {
  101. get { return _checkedGlowHot; }
  102. set { _checkedGlowHot = value; }
  103. }
  104.  
  105.  
  106. public Color CheckedButtonFillHot
  107. {
  108. get { return _checkedButtonFillHot; }
  109. set { _checkedButtonFillHot = value; }
  110. }
  111.  
  112.  
  113. public Color CheckedButtonFill
  114. {
  115. get { return _checkedButtonFill; }
  116. set { _checkedButtonFill = value; }
  117. }
  118.  
  119.  
  120. public Color CheckedGlow
  121. {
  122. get { return _checkedGlow; }
  123. set { _checkedGlow = value; }
  124. }
  125.  
  126.  
  127. public Color MenuText
  128. {
  129. get { return _menuText; }
  130. set { _menuText = value; }
  131. }
  132.  
  133.  
  134. public Color SeparatorNorth
  135. {
  136. get { return _separatorNorth; }
  137. set { _separatorNorth = value; }
  138. }
  139.  
  140.  
  141. public Color SeparatorSouth
  142. {
  143. get { return _separatorSouth; }
  144. set { _separatorSouth = value; }
  145. }
  146.  
  147.  
  148. public Color MenuLight
  149. {
  150. get { return _menuLight; }
  151. set { _menuLight = value; }
  152. }
  153.  
  154.  
  155. public Color MenuDark
  156. {
  157. get { return _menuDark; }
  158. set { _menuDark = value; }
  159. }
  160.  
  161.  
  162. public Color MenuBackground
  163. {
  164. get { return _menuBackground; }
  165. set { _menuBackground = value; }
  166. }
  167.  
  168.  
  169. public Color MenuHighlightSouth
  170. {
  171. get { return _menuHighlightSouth; }
  172. set { _menuHighlightSouth = value; }
  173. }
  174.  
  175.  
  176. public Color MenuHighlightNorth
  177. {
  178. get { return _menuHiglightNorth; }
  179. set { _menuHiglightNorth = value; }
  180. }
  181.  
  182.  
  183. public Color MenuHighlight
  184. {
  185. get { return _menuHighlight; }
  186. set { _menuHighlight = value; }
  187. }
  188.  
  189. /// <summary>
  190. /// Gets or sets the color for the dropwown arrow
  191. /// </summary>
  192. public Color DropDownArrow
  193. {
  194. get { return _dropDownArrow; }
  195. set { _dropDownArrow = value; }
  196. }
  197.  
  198.  
  199. /// <summary>
  200. /// Gets or sets the south color of the button fill when pressed
  201. /// </summary>
  202. public Color ButtonFillSouthPressed
  203. {
  204. get { return _buttonFillSouthPressed; }
  205. set { _buttonFillSouthPressed = value; }
  206. }
  207.  
  208. /// <summary>
  209. /// Gets or sets the south color of the button fill
  210. /// </summary>
  211. public Color ButtonFillSouth
  212. {
  213. get { return _buttonFillSouth; }
  214. set { _buttonFillSouth = value; }
  215. }
  216.  
  217. /// <summary>
  218. /// Gets or sets the color of the inner border when pressed
  219. /// </summary>
  220. public Color ButtonInnerBorderPressed
  221. {
  222. get { return _buttonInnerBorderPressed; }
  223. set { _buttonInnerBorderPressed = value; }
  224. }
  225.  
  226. /// <summary>
  227. /// Gets or sets the glow color
  228. /// </summary>
  229. public Color Glow
  230. {
  231. get { return _glow; }
  232. set { _glow = value; }
  233. }
  234.  
  235. /// <summary>
  236. /// Gets or sets the buttons fill color
  237. /// </summary>
  238. public Color ButtonFillNorth
  239. {
  240. get { return _buttonFill; }
  241. set { _buttonFill = value; }
  242. }
  243.  
  244. /// <summary>
  245. /// Gets or sets the buttons fill color when pressed
  246. /// </summary>
  247. public Color ButtonFillNorthPressed
  248. {
  249. get { return _buttonFillPressed; }
  250. set { _buttonFillPressed = value; }
  251. }
  252.  
  253. /// <summary>
  254. /// Gets or sets the buttons inner border color
  255. /// </summary>
  256. public Color ButtonInnerBorder
  257. {
  258. get { return _buttonInnerBorder; }
  259. set { _buttonInnerBorder = value; }
  260. }
  261.  
  262. /// <summary>
  263. /// Gets or sets the buttons border color
  264. /// </summary>
  265. public Color ButtonBorder
  266. {
  267. get { return _buttonBorder; }
  268. set { _buttonBorder = value; }
  269. }
  270.  
  271. /// <summary>
  272. /// Gets or sets the buttons outer border color
  273. /// </summary>
  274. public Color ButtonOuterBorder
  275. {
  276. get { return _buttonOuterBorder; }
  277. set { _buttonOuterBorder = value; }
  278. }
  279.  
  280. /// <summary>
  281. /// Gets or sets the color of the text
  282. /// </summary>
  283. public Color Text
  284. {
  285. get { return _text; }
  286. set { _text = value; }
  287. }
  288.  
  289. /// <summary>
  290. /// Gets or sets the background glow color
  291. /// </summary>
  292. public Color BackgroundGlow
  293. {
  294. get { return _bgglow; }
  295. set { _bgglow = value; }
  296. }
  297.  
  298. /// <summary>
  299. /// Gets or sets the color of the background border
  300. /// </summary>
  301. public Color BackgroundBorder
  302. {
  303. get { return _bgborder; }
  304. set { _bgborder = value; }
  305. }
  306.  
  307. /// <summary>
  308. /// Background north part
  309. /// </summary>
  310. public Color BackgroundNorth
  311. {
  312. get { return _bgNorth; }
  313. set { _bgNorth = value; }
  314. }
  315.  
  316. /// <summary>
  317. /// Background south color
  318. /// </summary>
  319. public Color BackgroundSouth
  320. {
  321. get { return _bgSouth; }
  322. set { _bgSouth = value; }
  323. }
  324.  
  325. /// <summary>
  326. /// Gets ors sets the glossy effect north color
  327. /// </summary>
  328. public Color GlossyEffectNorth
  329. {
  330. get { return _glossyNorth; }
  331. set { _glossyNorth = value; }
  332. }
  333.  
  334. /// <summary>
  335. /// Gets or sets the glossy effect south color
  336. /// </summary>
  337. public Color GlossyEffectSouth
  338. {
  339. get { return _glossySouth; }
  340. set { _glossySouth = value; }
  341. }
  342.  
  343.  
  344. #endregion
  345. }
  346. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/broldev/src/view/style/vista/ 
IcôneNomTailleModification
Pas de sous-répertoires.
IcôneNomTailleModification
| _ Répertoire parent0 octets1732286606 22/11/2024 15:43:26
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/broldev/src/view/style/vista/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .cs|.csGraphicsTools.cs3.9 Ko31/10/2018 18:33:22-refusé-
Afficher le fichier .cs|.csWindowsVistaRenderer.cs26.15 Ko31/10/2018 18:33:22-refusé-
Afficher le fichier .cs|.csWindowsVistaColorTable.cs9.6 Ko31/10/2018 18:33:22-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.

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 16/10/2009, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/cs-broldev-source-rf-view/style/vista/WindowsVistaColorTable.cs.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.