ProfessionalColorTableFactory. cs

Description du code

ProfessionalColorTableFactory.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. using be.gaudry.model.enums;
  4.  
  5. namespace be.gaudry.view.style
  6. {
  7. public class ProfessionalColorTableFactory : ProfessionalColorTable
  8. {
  9. #region Private Variables
  10. private bool use_system_colors = false;
  11.  
  12. private Color button_checked_gradient_begin;
  13. private Color button_checked_gradient_end;
  14. private Color button_checked_gradient_middle;
  15. private Color button_checked_highlight;
  16. private Color button_checked_highlight_border;
  17. private Color button_pressed_border;
  18. private Color button_pressed_gradient_begin;
  19. private Color button_pressed_gradient_end;
  20. private Color button_pressed_gradient_middle;
  21. private Color button_pressed_highlight;
  22. private Color button_pressed_highlight_border;
  23. private Color button_selected_border;
  24. private Color button_selected_gradient_begin;
  25. private Color button_selected_gradient_end;
  26. private Color button_selected_gradient_middle;
  27. private Color button_selected_highlight;
  28. private Color button_selected_highlight_border;
  29. private Color check_background;
  30. private Color check_pressed_background;
  31. private Color check_selected_background;
  32. private Color grip_dark;
  33. private Color grip_light;
  34. private Color image_margin_gradient_begin;
  35. private Color image_margin_gradient_end;
  36. private Color image_margin_gradient_middle;
  37. private Color image_margin_revealed_gradient_begin;
  38. private Color image_margin_revealed_gradient_end;
  39. private Color image_margin_revealed_gradient_middle;
  40. private Color menu_border;
  41. private Color menu_item_border;
  42. private Color menu_item_pressed_gradient_begin;
  43. private Color menu_item_pressed_gradient_end;
  44. private Color menu_item_pressed_gradient_middle;
  45. private Color menu_item_selected;
  46. private Color menu_item_selected_gradient_begin;
  47. private Color menu_item_selected_gradient_end;
  48. private Color menu_strip_gradient_begin;
  49. private Color menu_strip_gradient_end;
  50. private Color overflow_button_gradient_begin;
  51. private Color overflow_button_gradient_end;
  52. private Color overflow_button_gradient_middle;
  53. private Color rafting_container_gradient_begin;
  54. private Color rafting_container_gradient_end;
  55. private Color separator_dark;
  56. private Color separator_light;
  57. private Color status_strip_gradient_begin;
  58. private Color status_strip_gradient_end;
  59. private Color tool_strip_border;
  60. private Color tool_strip_content_panel_gradient_begin;
  61. private Color tool_strip_content_panel_gradient_end;
  62. private Color tool_strip_drop_down_background;
  63. private Color tool_strip_gradient_begin;
  64. private Color tool_strip_gradient_end;
  65. private Color tool_strip_gradient_middle;
  66. private Color tool_strip_panel_gradient_begin;
  67. private Color tool_strip_panel_gradient_end;
  68. #endregion
  69.  
  70. #region Public Constructor
  71. public ProfessionalColorTableFactory():this(STYLE.Classic)
  72. {
  73. }
  74. public ProfessionalColorTableFactory(STYLE style)
  75. {
  76. setColors(style);
  77. }
  78. #endregion
  79.  
  80. #region Public Properties
  81. /*
  82.   public virtual Color ButtonCheckedGradientBegin { get { return this.button_checked_gradient_begin; } }
  83.   public virtual Color ButtonCheckedGradientEnd { get { return this.button_checked_gradient_end; } }
  84.   public virtual Color ButtonCheckedGradientMiddle { get { return this.button_checked_gradient_middle; } }
  85.   public virtual Color ButtonCheckedHighlight { get { return this.button_checked_highlight; } }
  86.   public virtual Color ButtonCheckedHighlightBorder { get { return this.button_checked_highlight_border; } }
  87.   public virtual Color ButtonPressedBorder { get { return this.button_pressed_border; } }
  88.   public virtual Color ButtonPressedGradientBegin { get { return this.button_pressed_gradient_begin; } }
  89.   public virtual Color ButtonPressedGradientEnd { get { return this.button_pressed_gradient_end; } }
  90.   public virtual Color ButtonPressedGradientMiddle { get { return this.button_pressed_gradient_middle; } }
  91.   public virtual Color ButtonPressedHighlight { get { return this.button_pressed_highlight; } }
  92.   public virtual Color ButtonPressedHighlightBorder { get { return this.button_pressed_highlight_border; } }
  93.   public virtual Color ButtonSelectedBorder { get { return this.button_selected_border; } }
  94.   public virtual Color ButtonSelectedGradientBegin { get { return this.button_selected_gradient_begin; } }
  95.   public virtual Color ButtonSelectedGradientEnd { get { return this.button_selected_gradient_end; } }
  96.   public virtual Color ButtonSelectedGradientMiddle { get { return this.button_selected_gradient_middle; } }
  97.   public virtual Color ButtonSelectedHighlight { get { return this.button_selected_highlight; } }
  98.   public virtual Color ButtonSelectedHighlightBorder { get { return this.button_selected_highlight_border; } }
  99.   public virtual Color CheckBackground { get { return this.check_background; } }
  100.   public virtual Color CheckPressedBackground { get { return this.check_pressed_background; } }
  101.   public virtual Color CheckSelectedBackground { get { return this.check_selected_background; } }
  102.   public virtual Color GripDark { get { return this.grip_dark; } }
  103.   public virtual Color GripLight { get { return this.grip_light; } }
  104.   public virtual Color ImageMarginGradientBegin { get { return this.image_margin_gradient_begin; } }
  105.   public virtual Color ImageMarginGradientEnd { get { return this.image_margin_gradient_end; } }
  106.   public virtual Color ImageMarginGradientMiddle { get { return this.image_margin_gradient_middle; } }
  107.   public virtual Color ImageMarginRevealedGradientBegin { get { return this.image_margin_revealed_gradient_begin; } }
  108.   public virtual Color ImageMarginRevealedGradientEnd { get { return this.image_margin_revealed_gradient_end; } }
  109.   public virtual Color ImageMarginRevealedGradientMiddle { get { return this.image_margin_revealed_gradient_middle; } }
  110.   public virtual Color MenuBorder { get { return this.menu_border; } }
  111.   public virtual Color MenuItemBorder { get { return this.menu_item_border; } }
  112.   public virtual Color MenuItemPressedGradientBegin { get { return this.menu_item_pressed_gradient_begin; } }
  113.   public virtual Color MenuItemPressedGradientEnd { get { return this.menu_item_pressed_gradient_end; } }
  114.   public virtual Color MenuItemPressedGradientMiddle { get { return this.menu_item_pressed_gradient_middle; } }
  115.   public virtual Color MenuItemSelected { get { return this.menu_item_selected; } }
  116.   public virtual Color MenuItemSelectedGradientBegin { get { return this.menu_item_selected_gradient_begin; } }
  117.   public virtual Color MenuItemSelectedGradientEnd { get { return this.menu_item_selected_gradient_end; } }
  118.   public virtual Color MenuStripGradientBegin { get { return this.menu_strip_gradient_begin; } }
  119.   public virtual Color MenuStripGradientEnd { get { return this.menu_strip_gradient_end; } }
  120.   public virtual Color OverflowButtonGradientBegin { get { return this.overflow_button_gradient_begin; } }
  121.   public virtual Color OverflowButtonGradientEnd { get { return this.overflow_button_gradient_end; } }
  122.   public virtual Color OverflowButtonGradientMiddle { get { return this.overflow_button_gradient_middle; } }
  123.   public virtual Color RaftingContainerGradientBegin { get { return this.rafting_container_gradient_begin; } }
  124.   public virtual Color RaftingContainerGradientEnd { get { return this.rafting_container_gradient_end; } }
  125.   public virtual Color SeparatorDark { get { return this.separator_dark; } }
  126.   public virtual Color SeparatorLight { get { return this.separator_light; } }
  127.   public virtual Color StatusStripGradientBegin { get { return this.status_strip_gradient_begin; } }
  128.   public virtual Color StatusStripGradientEnd { get { return this.status_strip_gradient_end; } }
  129.   public virtual Color ToolStripBorder { get { return this.tool_strip_border; } }
  130.   public virtual Color ToolStripContentPanelGradientBegin { get { return this.tool_strip_content_panel_gradient_begin; } }
  131.   public virtual Color ToolStripContentPanelGradientEnd { get { return this.tool_strip_content_panel_gradient_end; } }
  132.   public virtual Color ToolStripDropDownBackground { get { return this.tool_strip_drop_down_background; } }
  133.   public virtual Color ToolStripGradientBegin { get { return this.tool_strip_gradient_begin; } }
  134.   public virtual Color ToolStripGradientEnd { get { return this.tool_strip_gradient_end; } }
  135.   public virtual Color ToolStripGradientMiddle { get { return this.tool_strip_gradient_middle; } }
  136.   public virtual Color ToolStripPanelGradientBegin { get { return this.tool_strip_panel_gradient_begin; } }
  137.   public virtual Color ToolStripPanelGradientEnd { get { return this.tool_strip_panel_gradient_end; } }
  138.   */
  139.  
  140. #region ButtonPressed
  141. /// <summary>
  142. /// Gets the starting color of the gradient used when the button is pressed down.
  143. /// </summary>
  144. public override Color ButtonPressedGradientBegin
  145. {
  146. get { return button_pressed_gradient_begin; }
  147. }
  148.  
  149. /// <summary>
  150. /// Gets the end color of the gradient used when the button is pressed down.
  151. /// </summary>
  152. public override Color ButtonPressedGradientEnd
  153. {
  154. get { return button_pressed_gradient_end; }
  155. }
  156.  
  157. /// <summary>
  158. /// Gets the middle color of the gradient used when the button is pressed down.
  159. /// </summary>
  160. public override Color ButtonPressedGradientMiddle
  161. {
  162. get { return button_pressed_gradient_middle; }
  163. }
  164. #endregion
  165.  
  166. #region ButtonSelected
  167. /// <summary>
  168. /// Gets the starting color of the gradient used when the button is selected.
  169. /// </summary>
  170. public override Color ButtonSelectedGradientBegin
  171. {
  172. get { return button_selected_gradient_begin; }
  173. }
  174.  
  175. /// <summary>
  176. /// Gets the end color of the gradient used when the button is selected.
  177. /// </summary>
  178. public override Color ButtonSelectedGradientEnd
  179. {
  180. get { return button_selected_gradient_end; }
  181. }
  182.  
  183. /// <summary>
  184. /// Gets the middle color of the gradient used when the button is selected.
  185. /// </summary>
  186. public override Color ButtonSelectedGradientMiddle
  187. {
  188. get { return button_selected_gradient_middle; }
  189. }
  190.  
  191. /// <summary>
  192. /// Gets the border color to use with ButtonSelectedHighlight.
  193. /// </summary>
  194. public override Color ButtonSelectedHighlightBorder
  195. {
  196. get { return button_selected_highlight_border; }
  197. }
  198. #endregion
  199.  
  200. #region Check
  201. /// <summary>
  202. /// Gets the solid color to use when the check box is selected and gradients are being used.
  203. /// </summary>
  204. public override Color CheckBackground
  205. {
  206. get { return check_background; }
  207. }
  208. #endregion
  209.  
  210. #region Grip
  211. /// <summary>
  212. /// Gets the color to use for shadow effects on the grip or move handle.
  213. /// </summary>
  214. public override Color GripDark
  215. {
  216. get { return grip_dark; }
  217. }
  218.  
  219. /// <summary>
  220. /// Gets the color to use for highlight effects on the grip or move handle.
  221. /// </summary>
  222. public override Color GripLight
  223. {
  224. get { return grip_light; }
  225. }
  226. #endregion
  227.  
  228. #region ImageMargin
  229. /// <summary>
  230. /// Gets the starting color of the gradient used in the image margin of a ToolStripDropDownMenu.
  231. /// </summary>
  232. public override Color ImageMarginGradientBegin
  233. {
  234. get { return image_margin_gradient_begin; }
  235. }
  236. #endregion
  237.  
  238. #region MenuBorder
  239. /// <summary>
  240. /// Gets the border color or a MenuStrip.
  241. /// </summary>
  242. public override Color MenuBorder
  243. {
  244. get { return menu_border; }
  245. }
  246. #endregion
  247.  
  248. #region MenuItem
  249. /// <summary>
  250. /// Gets the starting color of the gradient used when a top-level ToolStripMenuItem is pressed down.
  251. /// </summary>
  252. public override Color MenuItemPressedGradientBegin
  253. {
  254. get { return menu_item_pressed_gradient_begin; }
  255. }
  256.  
  257. /// <summary>
  258. /// Gets the end color of the gradient used when a top-level ToolStripMenuItem is pressed down.
  259. /// </summary>
  260. public override Color MenuItemPressedGradientEnd
  261. {
  262. get { return menu_item_pressed_gradient_end; }
  263. }
  264.  
  265. /// <summary>
  266. /// Gets the middle color of the gradient used when a top-level ToolStripMenuItem is pressed down.
  267. /// </summary>
  268. public override Color MenuItemPressedGradientMiddle
  269. {
  270. get { return menu_item_pressed_gradient_middle; }
  271. }
  272.  
  273. /// <summary>
  274. /// Gets the starting color of the gradient used when the ToolStripMenuItem is selected.
  275. /// </summary>
  276. public override Color MenuItemSelectedGradientBegin
  277. {
  278. get { return menu_item_selected_gradient_begin; }
  279. }
  280.  
  281. /// <summary>
  282. /// Gets the end color of the gradient used when the ToolStripMenuItem is selected.
  283. /// </summary>
  284. public override Color MenuItemSelectedGradientEnd
  285. {
  286. get { return menu_item_selected_gradient_end; }
  287. }
  288. #endregion
  289.  
  290. #region MenuStrip
  291. /// <summary>
  292. /// Gets the starting color of the gradient used in the MenuStrip.
  293. /// </summary>
  294. public override Color MenuStripGradientBegin
  295. {
  296. get { return menu_strip_gradient_begin; }
  297. }
  298.  
  299. /// <summary>
  300. /// Gets the end color of the gradient used in the MenuStrip.
  301. /// </summary>
  302. public override Color MenuStripGradientEnd
  303. {
  304. get { return menu_strip_gradient_end; }
  305. }
  306. #endregion
  307.  
  308. #region OverflowButton
  309. /// <summary>
  310. /// Gets the starting color of the gradient used in the ToolStripOverflowButton.
  311. /// </summary>
  312. public override Color OverflowButtonGradientBegin
  313. {
  314. get { return overflow_button_gradient_begin; }
  315. }
  316.  
  317. /// <summary>
  318. /// Gets the end color of the gradient used in the ToolStripOverflowButton.
  319. /// </summary>
  320. public override Color OverflowButtonGradientEnd
  321. {
  322. get { return overflow_button_gradient_end; }
  323. }
  324.  
  325. /// <summary>
  326. /// Gets the middle color of the gradient used in the ToolStripOverflowButton.
  327. /// </summary>
  328. public override Color OverflowButtonGradientMiddle
  329. {
  330. get { return overflow_button_gradient_middle; }
  331. }
  332. #endregion
  333.  
  334. #region RaftingContainer
  335. /// <summary>
  336. /// Gets the starting color of the gradient used in the ToolStripContainer.
  337. /// </summary>
  338. public override Color RaftingContainerGradientBegin
  339. {
  340. get { return rafting_container_gradient_begin; }
  341. }
  342.  
  343. /// <summary>
  344. /// Gets the end color of the gradient used in the ToolStripContainer.
  345. /// </summary>
  346. public override Color RaftingContainerGradientEnd
  347. {
  348. get { return rafting_container_gradient_end; }
  349. }
  350. #endregion
  351.  
  352. #region Separator
  353. /// <summary>
  354. /// Gets the color to use to for shadow effects on the ToolStripSeparator.
  355. /// </summary>
  356. public override Color SeparatorDark
  357. {
  358. get { return separator_dark; }
  359. }
  360.  
  361. /// <summary>
  362. /// Gets the color to use to for highlight effects on the ToolStripSeparator.
  363. /// </summary>
  364. public override Color SeparatorLight
  365. {
  366. get { return separator_light; }
  367. }
  368. #endregion
  369.  
  370. #region StatusStrip
  371. /// <summary>
  372. /// Gets the starting color of the gradient used on the StatusStrip.
  373. /// </summary>
  374. public override Color StatusStripGradientBegin
  375. {
  376. get { return status_strip_gradient_begin; }
  377. }
  378.  
  379. /// <summary>
  380. /// Gets the end color of the gradient used on the StatusStrip.
  381. /// </summary>
  382. public override Color StatusStripGradientEnd
  383. {
  384. get { return status_strip_gradient_end; }
  385. }
  386. #endregion
  387.  
  388. #region ToolStrip
  389. /// <summary>
  390. /// Gets the border color to use on the bottom edge of the ToolStrip.
  391. /// </summary>
  392. public override Color ToolStripBorder
  393. {
  394. get { return tool_strip_border; }
  395. }
  396.  
  397. /// <summary>
  398. /// Gets the starting color of the gradient used in the ToolStripContentPanel.
  399. /// </summary>
  400. public override Color ToolStripContentPanelGradientBegin
  401. {
  402. get { return tool_strip_content_panel_gradient_begin; }
  403. }
  404.  
  405. /// <summary>
  406. /// Gets the end color of the gradient used in the ToolStripContentPanel.
  407. /// </summary>
  408. public override Color ToolStripContentPanelGradientEnd
  409. {
  410. get { return tool_strip_content_panel_gradient_end; }
  411. }
  412.  
  413. /// <summary>
  414. /// Gets the solid background color of the ToolStripDropDown.
  415. /// </summary>
  416. public override Color ToolStripDropDownBackground
  417. {
  418. get { return tool_strip_drop_down_background; }
  419. }
  420.  
  421. /// <summary>
  422. /// Gets the starting color of the gradient used in the ToolStrip background.
  423. /// </summary>
  424. public override Color ToolStripGradientBegin
  425. {
  426. get { return tool_strip_gradient_begin; }
  427. }
  428.  
  429. /// <summary>
  430. /// Gets the end color of the gradient used in the ToolStrip background.
  431. /// </summary>
  432. public override Color ToolStripGradientEnd
  433. {
  434. get { return tool_strip_gradient_end; }
  435. }
  436.  
  437. /// <summary>
  438. /// Gets the middle color of the gradient used in the ToolStrip background.
  439. /// </summary>
  440. public override Color ToolStripGradientMiddle
  441. {
  442. get { return tool_strip_gradient_middle; }
  443. }
  444.  
  445. /// <summary>
  446. /// Gets the starting color of the gradient used in the ToolStripPanel.
  447. /// </summary>
  448. public override Color ToolStripPanelGradientBegin
  449. {
  450. get { return tool_strip_panel_gradient_begin; }
  451. }
  452.  
  453. /// <summary>
  454. /// Gets the end color of the gradient used in the ToolStripPanel.
  455. /// </summary>
  456. public override Color ToolStripPanelGradientEnd
  457. {
  458. get { return tool_strip_panel_gradient_end; }
  459. }
  460. #endregion
  461.  
  462. /*public override bool UseSystemColors
  463.   {
  464.   get { return use_system_colors; }
  465.   set
  466.   {
  467.   if (value != use_system_colors)
  468.   {
  469.   use_system_colors = value;
  470.   setColors(StyleHelper.getCurrentStyle());
  471.   }
  472.   }
  473.   }*/
  474. #endregion
  475.  
  476. #region Private Methods
  477. private void setColors(STYLE style)
  478. {
  479. switch (style)
  480. {
  481. case STYLE.Classic:
  482. button_checked_gradient_begin = Color.Empty;
  483. button_checked_gradient_end = Color.Empty;
  484. button_checked_gradient_middle = Color.Empty;
  485. button_checked_highlight = Color.FromArgb(184, 191, 211);
  486. button_checked_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  487.  
  488. button_pressed_border = Color.FromKnownColor(KnownColor.Highlight);
  489. button_pressed_gradient_begin = Color.FromArgb(133, 146, 181);
  490. button_pressed_gradient_end = Color.FromArgb(133, 146, 181);
  491. button_pressed_gradient_middle = Color.FromArgb(133, 146, 181);
  492. button_pressed_highlight = Color.FromArgb(131, 144, 179);
  493. button_pressed_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  494.  
  495. button_selected_border = Color.FromKnownColor(KnownColor.Highlight);
  496. button_selected_gradient_begin = Color.FromArgb(182, 189, 210);
  497. button_selected_gradient_end = Color.FromArgb(182, 189, 210);
  498. button_selected_gradient_middle = Color.FromArgb(182, 189, 210);
  499. button_selected_highlight = Color.FromArgb(184, 191, 211);
  500. button_selected_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  501.  
  502. check_background = Color.FromKnownColor(KnownColor.Highlight);
  503. check_pressed_background = Color.FromArgb(133, 146, 181);
  504. check_selected_background = Color.FromArgb(133, 146, 181);
  505.  
  506. grip_dark = Color.FromArgb(160, 160, 160);
  507. grip_light = SystemColors.Window;
  508.  
  509. image_margin_gradient_begin = Color.FromArgb(245, 244, 242);
  510. image_margin_gradient_end = SystemColors.Control;
  511. image_margin_gradient_middle = Color.FromArgb(234, 232, 228);
  512. image_margin_revealed_gradient_begin = Color.FromArgb(238, 236, 233);
  513. image_margin_revealed_gradient_end = Color.FromArgb(216, 213, 206);
  514. image_margin_revealed_gradient_middle = Color.FromArgb(225, 222, 217);
  515.  
  516. menu_border = Color.FromArgb(102, 102, 102);
  517. menu_item_border = SystemColors.Highlight;
  518.  
  519. menu_item_pressed_gradient_begin = Color.FromArgb(245, 244, 242);
  520. menu_item_pressed_gradient_end = Color.FromArgb(234, 232, 228);
  521. menu_item_pressed_gradient_middle = Color.FromArgb(225, 222, 217);
  522. menu_item_selected = SystemColors.Window;
  523. menu_item_selected_gradient_begin = Color.FromArgb(182, 189, 210);
  524. menu_item_selected_gradient_end = Color.FromArgb(182, 189, 210);
  525.  
  526. menu_strip_gradient_begin = SystemColors.ButtonFace;
  527. menu_strip_gradient_end = Color.FromArgb(246, 245, 244);
  528.  
  529. overflow_button_gradient_begin = Color.FromArgb(225, 222, 217);
  530. overflow_button_gradient_end = SystemColors.ButtonShadow;
  531. overflow_button_gradient_middle = Color.FromArgb(216, 213, 206);
  532.  
  533. rafting_container_gradient_begin = SystemColors.ButtonFace;
  534. rafting_container_gradient_end = Color.FromArgb(246, 245, 244);
  535.  
  536. separator_dark = Color.FromArgb(166, 166, 166);
  537. separator_light = SystemColors.ButtonHighlight;
  538.  
  539. status_strip_gradient_begin = SystemColors.ButtonFace;
  540. status_strip_gradient_end = Color.FromArgb(246, 245, 244);
  541.  
  542. tool_strip_border = Color.FromArgb(219, 216, 209);
  543. tool_strip_content_panel_gradient_begin = SystemColors.ButtonFace;
  544. tool_strip_content_panel_gradient_end = Color.FromArgb(246, 245, 244);
  545. tool_strip_drop_down_background = Color.FromArgb(249, 248, 247);
  546.  
  547. tool_strip_gradient_begin = Color.FromArgb(245, 244, 242);
  548. tool_strip_gradient_end = SystemColors.ButtonFace;
  549. tool_strip_gradient_middle = Color.FromArgb(234, 232, 228);
  550.  
  551. tool_strip_panel_gradient_begin = SystemColors.ButtonFace;
  552. tool_strip_panel_gradient_end = Color.FromArgb(246, 245, 244);
  553. break;
  554. case STYLE.NormalColor:
  555. button_checked_gradient_begin = use_system_colors ? Color.Empty : Color.FromArgb(255, 223, 154);
  556. button_checked_gradient_end = use_system_colors ? Color.Empty : Color.FromArgb(255, 166, 76);
  557. button_checked_gradient_middle = use_system_colors ? Color.Empty : Color.FromArgb(255, 195, 116);
  558. button_checked_highlight = Color.FromArgb(195, 211, 237);
  559. button_checked_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  560. button_pressed_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(0, 0, 128);
  561. button_pressed_gradient_begin = use_system_colors ? Color.FromArgb(152, 181, 226) : Color.FromArgb(254, 128, 62);
  562. button_pressed_gradient_end = use_system_colors ? Color.FromArgb(152, 181, 226) : Color.FromArgb(255, 223, 154);
  563. button_pressed_gradient_middle = use_system_colors ? Color.FromArgb(152, 181, 226) : Color.FromArgb(255, 177, 109);
  564. button_pressed_highlight = use_system_colors ? Color.FromArgb(150, 179, 225) : Color.FromArgb(150, 179, 225);
  565. button_pressed_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  566. button_selected_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(0, 0, 128);
  567. button_selected_gradient_begin = use_system_colors ? Color.FromArgb(193, 210, 238) : Color.FromArgb(255, 255, 222);
  568. button_selected_gradient_end = use_system_colors ? Color.FromArgb(193, 210, 238) : Color.FromArgb(255, 203, 136);
  569. button_selected_gradient_middle = use_system_colors ? Color.FromArgb(193, 210, 238) : Color.FromArgb(255, 225, 172);
  570. button_selected_highlight = use_system_colors ? Color.FromArgb(195, 211, 237) : Color.FromArgb(195, 211, 237);
  571. button_selected_highlight_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(0, 0, 128);
  572.  
  573. check_background = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(255, 192, 111);
  574. check_pressed_background = use_system_colors ? Color.FromArgb(152, 181, 226) : Color.FromArgb(254, 128, 62);
  575. check_selected_background = use_system_colors ? Color.FromArgb(152, 181, 226) : Color.FromArgb(254, 128, 62);
  576.  
  577. grip_dark = use_system_colors ? Color.FromArgb(193, 190, 179) : Color.FromArgb(39, 65, 118);
  578. grip_light = use_system_colors ? SystemColors.Window : Color.FromArgb(255, 255, 255);
  579.  
  580. image_margin_gradient_begin = use_system_colors ? Color.FromArgb(251, 250, 246) : Color.FromArgb(227, 239, 255);
  581. image_margin_gradient_end = use_system_colors ? SystemColors.Control : Color.FromArgb(123, 164, 224);
  582. image_margin_gradient_middle = use_system_colors ? Color.FromArgb(246, 244, 236) : Color.FromArgb(203, 225, 252);
  583. image_margin_revealed_gradient_begin = use_system_colors ? Color.FromArgb(247, 246, 239) : Color.FromArgb(203, 221, 246);
  584. image_margin_revealed_gradient_end = use_system_colors ? Color.FromArgb(238, 235, 220) : Color.FromArgb(114, 155, 215);
  585. image_margin_revealed_gradient_middle = use_system_colors ? Color.FromArgb(242, 240, 228) : Color.FromArgb(161, 197, 249);
  586.  
  587. menu_border = use_system_colors ? Color.FromArgb(138, 134, 122) : Color.FromArgb(0, 45, 150);
  588. menu_item_border = use_system_colors ? SystemColors.Highlight : Color.FromArgb(0, 0, 128);
  589.  
  590. menu_item_pressed_gradient_begin = use_system_colors ? Color.FromArgb(251, 250, 246) : Color.FromArgb(227, 239, 255);
  591. menu_item_pressed_gradient_end = use_system_colors ? Color.FromArgb(246, 244, 236) : Color.FromArgb(123, 164, 224);
  592. menu_item_pressed_gradient_middle = use_system_colors ? Color.FromArgb(242, 240, 228) : Color.FromArgb(161, 197, 249);
  593. menu_item_selected = use_system_colors ? SystemColors.Window : Color.FromArgb(255, 238, 194);
  594. menu_item_selected_gradient_begin = use_system_colors ? Color.FromArgb(193, 210, 238) : Color.FromArgb(255, 255, 222);
  595. menu_item_selected_gradient_end = use_system_colors ? Color.FromArgb(193, 210, 238) : Color.FromArgb(255, 203, 136);
  596.  
  597. menu_strip_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(158, 190, 245);
  598. menu_strip_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 247) : Color.FromArgb(196, 218, 250);
  599.  
  600. overflow_button_gradient_begin = use_system_colors ? Color.FromArgb(242, 240, 228) : Color.FromArgb(127, 177, 250);
  601. overflow_button_gradient_end = use_system_colors ? SystemColors.ButtonShadow : Color.FromArgb(0, 53, 145);
  602. overflow_button_gradient_middle = use_system_colors ? Color.FromArgb(238, 235, 220) : Color.FromArgb(82, 127, 208);
  603.  
  604. rafting_container_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(158, 190, 245);
  605. rafting_container_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 247) : Color.FromArgb(196, 218, 250);
  606.  
  607. separator_dark = use_system_colors ? Color.FromArgb(197, 194, 184) : Color.FromArgb(106, 140, 203);
  608. separator_light = use_system_colors ? SystemColors.ButtonHighlight : Color.FromArgb(241, 249, 255);
  609.  
  610. status_strip_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(158, 190, 245);
  611. status_strip_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 247) : Color.FromArgb(196, 218, 250);
  612.  
  613. tool_strip_border = use_system_colors ? Color.FromArgb(239, 237, 222) : Color.FromArgb(59, 97, 156);
  614. tool_strip_content_panel_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(158, 190, 245);
  615. tool_strip_content_panel_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 247) : Color.FromArgb(196, 218, 250);
  616. tool_strip_drop_down_background = use_system_colors ? Color.FromArgb(252, 252, 249) : Color.FromArgb(246, 246, 246);
  617.  
  618. tool_strip_gradient_begin = use_system_colors ? Color.FromArgb(251, 250, 246) : Color.FromArgb(227, 239, 255);
  619. tool_strip_gradient_end = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(123, 164, 224);
  620. tool_strip_gradient_middle = use_system_colors ? Color.FromArgb(246, 244, 236) : Color.FromArgb(203, 225, 252);
  621.  
  622. tool_strip_panel_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(158, 190, 245);
  623. tool_strip_panel_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 247) : Color.FromArgb(196, 218, 250);
  624. break;
  625. case STYLE.HomeStead:
  626. button_checked_gradient_begin = use_system_colors ? Color.Empty : Color.FromArgb(255, 223, 154);
  627. button_checked_gradient_end = use_system_colors ? Color.Empty : Color.FromArgb(255, 166, 76);
  628. button_checked_gradient_middle = use_system_colors ? Color.Empty : Color.FromArgb(255, 195, 116);
  629. button_checked_highlight = Color.FromArgb(223, 227, 213);
  630. button_checked_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  631.  
  632. button_pressed_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(63, 93, 56);
  633. button_pressed_gradient_begin = use_system_colors ? Color.FromArgb(201, 208, 184) : Color.FromArgb(254, 128, 62);
  634. button_pressed_gradient_end = use_system_colors ? Color.FromArgb(201, 208, 184) : Color.FromArgb(255, 223, 154);
  635. button_pressed_gradient_middle = use_system_colors ? Color.FromArgb(201, 208, 184) : Color.FromArgb(255, 177, 109);
  636. button_pressed_highlight = use_system_colors ? Color.FromArgb(200, 206, 182) : Color.FromArgb(200, 206, 182);
  637. button_pressed_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  638.  
  639. button_selected_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(63, 93, 56);
  640. button_selected_gradient_begin = use_system_colors ? Color.FromArgb(223, 227, 212) : Color.FromArgb(255, 255, 222);
  641. button_selected_gradient_end = use_system_colors ? Color.FromArgb(223, 227, 212) : Color.FromArgb(255, 203, 136);
  642. button_selected_gradient_middle = use_system_colors ? Color.FromArgb(223, 227, 212) : Color.FromArgb(255, 225, 172);
  643. button_selected_highlight = use_system_colors ? Color.FromArgb(223, 227, 213) : Color.FromArgb(223, 227, 213);
  644. button_selected_highlight_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(63, 93, 56);
  645.  
  646. check_background = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(255, 192, 111);
  647. check_pressed_background = use_system_colors ? Color.FromArgb(201, 208, 184) : Color.FromArgb(254, 128, 62);
  648. check_selected_background = use_system_colors ? Color.FromArgb(201, 208, 184) : Color.FromArgb(254, 128, 62);
  649.  
  650. grip_dark = use_system_colors ? Color.FromArgb(193, 190, 179) : Color.FromArgb(81, 94, 51);
  651. grip_light = use_system_colors ? SystemColors.Window : Color.FromArgb(255, 255, 255);
  652.  
  653. image_margin_gradient_begin = use_system_colors ? Color.FromArgb(251, 250, 246) : Color.FromArgb(255, 255, 237);
  654. image_margin_gradient_end = use_system_colors ? SystemColors.Control : Color.FromArgb(181, 196, 143);
  655. image_margin_gradient_middle = use_system_colors ? Color.FromArgb(246, 244, 236) : Color.FromArgb(206, 220, 167);
  656. image_margin_revealed_gradient_begin = use_system_colors ? Color.FromArgb(247, 246, 239) : Color.FromArgb(230, 230, 209);
  657. image_margin_revealed_gradient_end = use_system_colors ? Color.FromArgb(238, 235, 220) : Color.FromArgb(160, 177, 116);
  658. image_margin_revealed_gradient_middle = use_system_colors ? Color.FromArgb(242, 240, 228) : Color.FromArgb(186, 201, 143);
  659.  
  660. menu_border = use_system_colors ? Color.FromArgb(138, 134, 122) : Color.FromArgb(117, 141, 94);
  661. menu_item_border = use_system_colors ? SystemColors.Highlight : Color.FromArgb(63, 93, 56);
  662.  
  663. menu_item_pressed_gradient_begin = use_system_colors ? Color.FromArgb(251, 250, 246) : Color.FromArgb(237, 240, 214);
  664. menu_item_pressed_gradient_end = use_system_colors ? Color.FromArgb(246, 244, 236) : Color.FromArgb(181, 196, 143);
  665. menu_item_pressed_gradient_middle = use_system_colors ? Color.FromArgb(242, 240, 228) : Color.FromArgb(186, 201, 143);
  666. menu_item_selected = use_system_colors ? SystemColors.Window : Color.FromArgb(255, 238, 194);
  667. menu_item_selected_gradient_begin = use_system_colors ? Color.FromArgb(223, 227, 212) : Color.FromArgb(255, 255, 222);
  668. menu_item_selected_gradient_end = use_system_colors ? Color.FromArgb(223, 227, 212) : Color.FromArgb(255, 203, 136);
  669.  
  670. menu_strip_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(217, 217, 167);
  671. menu_strip_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 247) : Color.FromArgb(242, 241, 228);
  672.  
  673. overflow_button_gradient_begin = use_system_colors ? Color.FromArgb(242, 240, 228) : Color.FromArgb(186, 204, 150);
  674. overflow_button_gradient_end = use_system_colors ? SystemColors.ButtonShadow : Color.FromArgb(96, 119, 107);
  675. overflow_button_gradient_middle = use_system_colors ? Color.FromArgb(238, 235, 220) : Color.FromArgb(141, 160, 107);
  676.  
  677. rafting_container_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(217, 217, 167);
  678. rafting_container_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 247) : Color.FromArgb(242, 241, 228);
  679.  
  680. separator_dark = use_system_colors ? Color.FromArgb(197, 194, 184) : Color.FromArgb(96, 128, 88);
  681. separator_light = use_system_colors ? SystemColors.ButtonHighlight : Color.FromArgb(244, 247, 222);
  682.  
  683. status_strip_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(217, 217, 167);
  684. status_strip_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 247) : Color.FromArgb(242, 241, 228);
  685.  
  686. tool_strip_border = use_system_colors ? Color.FromArgb(239, 237, 222) : Color.FromArgb(96, 128, 88);
  687. tool_strip_content_panel_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(217, 217, 167);
  688. tool_strip_content_panel_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 247) : Color.FromArgb(242, 241, 228);
  689. tool_strip_drop_down_background = use_system_colors ? Color.FromArgb(252, 252, 249) : Color.FromArgb(244, 244, 238);
  690.  
  691. tool_strip_gradient_begin = use_system_colors ? Color.FromArgb(251, 250, 246) : Color.FromArgb(255, 255, 237);
  692. tool_strip_gradient_end = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(181, 196, 143);
  693. tool_strip_gradient_middle = use_system_colors ? Color.FromArgb(246, 244, 236) : Color.FromArgb(206, 220, 167);
  694.  
  695. tool_strip_panel_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(217, 217, 167);
  696. tool_strip_panel_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 247) : Color.FromArgb(242, 241, 228);
  697. break;
  698. case STYLE.Metallic:
  699. button_checked_gradient_begin = use_system_colors ? Color.Empty : Color.FromArgb(255, 223, 154);
  700. button_checked_gradient_end = use_system_colors ? Color.Empty : Color.FromArgb(255, 166, 76);
  701. button_checked_gradient_middle = use_system_colors ? Color.Empty : Color.FromArgb(255, 195, 116);
  702. button_checked_highlight = Color.FromArgb(231, 232, 235);
  703. button_checked_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  704.  
  705. button_pressed_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(75, 75, 111);
  706. button_pressed_gradient_begin = use_system_colors ? Color.FromArgb(217, 218, 223) : Color.FromArgb(254, 128, 62);
  707. button_pressed_gradient_end = use_system_colors ? Color.FromArgb(217, 218, 223) : Color.FromArgb(255, 223, 154);
  708. button_pressed_gradient_middle = use_system_colors ? Color.FromArgb(217, 218, 223) : Color.FromArgb(255, 177, 109);
  709. button_pressed_highlight = use_system_colors ? Color.FromArgb(215, 216, 222) : Color.FromArgb(215, 216, 222);
  710. button_pressed_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  711.  
  712. button_selected_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(75, 75, 111);
  713. button_selected_gradient_begin = use_system_colors ? Color.FromArgb(232, 233, 236) : Color.FromArgb(255, 255, 222);
  714. button_selected_gradient_end = use_system_colors ? Color.FromArgb(232, 233, 236) : Color.FromArgb(255, 203, 136);
  715. button_selected_gradient_middle = use_system_colors ? Color.FromArgb(232, 233, 236) : Color.FromArgb(255, 225, 172);
  716. button_selected_highlight = use_system_colors ? Color.FromArgb(231, 232, 235) : Color.FromArgb(231, 232, 235);
  717. button_selected_highlight_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(75, 75, 111);
  718.  
  719. check_background = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(255, 192, 111);
  720. check_pressed_background = use_system_colors ? Color.FromArgb(217, 218, 223) : Color.FromArgb(254, 128, 62);
  721. check_selected_background = use_system_colors ? Color.FromArgb(217, 218, 223) : Color.FromArgb(254, 128, 62);
  722.  
  723. grip_dark = use_system_colors ? Color.FromArgb(182, 182, 185) : Color.FromArgb(84, 84, 117);
  724. grip_light = use_system_colors ? SystemColors.Window : Color.FromArgb(255, 255, 255);
  725.  
  726. image_margin_gradient_begin = use_system_colors ? Color.FromArgb(248, 248, 249) : Color.FromArgb(249, 249, 255);
  727. image_margin_gradient_end = use_system_colors ? SystemColors.Control : Color.FromArgb(147, 145, 176);
  728. image_margin_gradient_middle = use_system_colors ? Color.FromArgb(240, 239, 241) : Color.FromArgb(225, 226, 236);
  729. image_margin_revealed_gradient_begin = use_system_colors ? Color.FromArgb(243, 242, 244) : Color.FromArgb(215, 215, 226);
  730. image_margin_revealed_gradient_end = use_system_colors ? Color.FromArgb(227, 226, 230) : Color.FromArgb(118, 116, 151);
  731. image_margin_revealed_gradient_middle = use_system_colors ? Color.FromArgb(233, 233, 235) : Color.FromArgb(184, 185, 202);
  732.  
  733. menu_border = use_system_colors ? Color.FromArgb(126, 126, 129) : Color.FromArgb(124, 124, 148);
  734. menu_item_border = use_system_colors ? SystemColors.Highlight : Color.FromArgb(75, 75, 111);
  735.  
  736. menu_item_pressed_gradient_begin = use_system_colors ? Color.FromArgb(248, 248, 249) : Color.FromArgb(232, 233, 242);
  737. menu_item_pressed_gradient_end = use_system_colors ? Color.FromArgb(240, 239, 241) : Color.FromArgb(172, 170, 194);
  738. menu_item_pressed_gradient_middle = use_system_colors ? Color.FromArgb(233, 233, 235) : Color.FromArgb(184, 185, 202);
  739. menu_item_selected = use_system_colors ? SystemColors.Window : Color.FromArgb(255, 238, 194);
  740. menu_item_selected_gradient_begin = use_system_colors ? Color.FromArgb(232, 233, 236) : Color.FromArgb(255, 255, 222);
  741. menu_item_selected_gradient_end = use_system_colors ? Color.FromArgb(232, 233, 236) : Color.FromArgb(255, 203, 136);
  742.  
  743. menu_strip_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(215, 215, 229);
  744. menu_strip_gradient_end = use_system_colors ? Color.FromArgb(249, 248, 249) : Color.FromArgb(243, 243, 247);
  745.  
  746. overflow_button_gradient_begin = use_system_colors ? Color.FromArgb(233, 233, 235) : Color.FromArgb(186, 185, 206);
  747. overflow_button_gradient_end = use_system_colors ? SystemColors.ButtonShadow : Color.FromArgb(118, 116, 146);
  748. overflow_button_gradient_middle = use_system_colors ? Color.FromArgb(227, 226, 230) : Color.FromArgb(156, 155, 180);
  749.  
  750. rafting_container_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(215, 215, 229);
  751. rafting_container_gradient_end = use_system_colors ? Color.FromArgb(249, 248, 249) : Color.FromArgb(243, 243, 247);
  752.  
  753. separator_dark = use_system_colors ? Color.FromArgb(186, 186, 189) : Color.FromArgb(110, 109, 143);
  754. separator_light = use_system_colors ? SystemColors.ButtonHighlight : Color.FromArgb(255, 255, 255);
  755.  
  756. status_strip_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(215, 215, 229);
  757. status_strip_gradient_end = use_system_colors ? Color.FromArgb(249, 248, 249) : Color.FromArgb(243, 243, 247);
  758.  
  759. tool_strip_border = use_system_colors ? Color.FromArgb(229, 228, 232) : Color.FromArgb(124, 124, 148);
  760. tool_strip_content_panel_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(215, 215, 229);
  761. tool_strip_content_panel_gradient_end = use_system_colors ? Color.FromArgb(249, 248, 249) : Color.FromArgb(243, 243, 247);
  762. tool_strip_drop_down_background = use_system_colors ? Color.FromArgb(251, 250, 251) : Color.FromArgb(253, 250, 255);
  763.  
  764. tool_strip_gradient_begin = use_system_colors ? Color.FromArgb(248, 248, 249) : Color.FromArgb(249, 249, 255);
  765. tool_strip_gradient_end = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(147, 145, 176);
  766. tool_strip_gradient_middle = use_system_colors ? Color.FromArgb(240, 239, 241) : Color.FromArgb(225, 226, 236);
  767.  
  768. tool_strip_panel_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(215, 215, 229);
  769. tool_strip_panel_gradient_end = use_system_colors ? Color.FromArgb(249, 248, 249) : Color.FromArgb(243, 243, 247);
  770. break;
  771. case STYLE.MediaCenter:
  772. button_checked_gradient_begin = use_system_colors ? Color.Empty : Color.FromArgb(226, 229, 238);
  773. button_checked_gradient_end = use_system_colors ? Color.Empty : Color.FromArgb(226, 229, 238);
  774. button_checked_gradient_middle = use_system_colors ? Color.Empty : Color.FromArgb(226, 229, 238);
  775. button_checked_highlight = Color.FromArgb(196, 208, 229);
  776. button_checked_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  777.  
  778. button_pressed_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(51, 94, 168);
  779. button_pressed_gradient_begin = use_system_colors ? Color.FromArgb(153, 175, 212) : Color.FromArgb(153, 175, 212);
  780. button_pressed_gradient_end = use_system_colors ? Color.FromArgb(153, 175, 212) : Color.FromArgb(153, 175, 212);
  781. button_pressed_gradient_middle = use_system_colors ? Color.FromArgb(153, 175, 212) : Color.FromArgb(153, 175, 212);
  782. button_pressed_highlight = use_system_colors ? Color.FromArgb(152, 173, 210) : Color.FromArgb(152, 173, 210);
  783. button_pressed_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  784.  
  785. button_selected_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(51, 94, 168);
  786. button_selected_gradient_begin = use_system_colors ? Color.FromArgb(194, 207, 229) : Color.FromArgb(194, 207, 229);
  787. button_selected_gradient_end = use_system_colors ? Color.FromArgb(194, 207, 229) : Color.FromArgb(194, 207, 229);
  788. button_selected_gradient_middle = use_system_colors ? Color.FromArgb(194, 207, 229) : Color.FromArgb(194, 207, 229);
  789. button_selected_highlight = use_system_colors ? Color.FromArgb(196, 208, 229) : Color.FromArgb(196, 208, 229);
  790. button_selected_highlight_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(51, 94, 168);
  791.  
  792. check_background = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(226, 229, 238);
  793. check_pressed_background = use_system_colors ? Color.FromArgb(153, 175, 212) : Color.FromArgb(51, 94, 168);
  794. check_selected_background = use_system_colors ? Color.FromArgb(153, 175, 212) : Color.FromArgb(51, 94, 168);
  795.  
  796. grip_dark = use_system_colors ? Color.FromArgb(189, 188, 191) : Color.FromArgb(189, 188, 191);
  797. grip_light = use_system_colors ? SystemColors.Window : Color.FromArgb(255, 255, 255);
  798.  
  799. image_margin_gradient_begin = use_system_colors ? Color.FromArgb(250, 250, 251) : Color.FromArgb(252, 252, 252);
  800. image_margin_gradient_end = use_system_colors ? SystemColors.Control : Color.FromArgb(235, 233, 237);
  801. image_margin_gradient_middle = use_system_colors ? Color.FromArgb(245, 244, 246) : Color.FromArgb(245, 244, 246);
  802. image_margin_revealed_gradient_begin = use_system_colors ? Color.FromArgb(247, 246, 248) : Color.FromArgb(247, 246, 248);
  803. image_margin_revealed_gradient_end = use_system_colors ? Color.FromArgb(237, 235, 239) : Color.FromArgb(228, 226, 230);
  804. image_margin_revealed_gradient_middle = use_system_colors ? Color.FromArgb(241, 240, 242) : Color.FromArgb(241, 240, 242);
  805.  
  806. menu_border = use_system_colors ? Color.FromArgb(134, 133, 136) : Color.FromArgb(134, 133, 136);
  807. menu_item_border = use_system_colors ? SystemColors.Highlight : Color.FromArgb(51, 94, 168);
  808.  
  809. menu_item_pressed_gradient_begin = use_system_colors ? Color.FromArgb(250, 250, 251) : Color.FromArgb(252, 252, 252);
  810. menu_item_pressed_gradient_end = use_system_colors ? Color.FromArgb(245, 244, 246) : Color.FromArgb(245, 244, 246);
  811. menu_item_pressed_gradient_middle = use_system_colors ? Color.FromArgb(241, 240, 242) : Color.FromArgb(241, 240, 242);
  812. menu_item_selected = use_system_colors ? SystemColors.Window : Color.FromArgb(194, 207, 229);
  813. menu_item_selected_gradient_begin = use_system_colors ? Color.FromArgb(194, 207, 229) : Color.FromArgb(194, 207, 229);
  814. menu_item_selected_gradient_end = use_system_colors ? Color.FromArgb(194, 207, 229) : Color.FromArgb(194, 207, 229);
  815.  
  816. menu_strip_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(235, 233, 237);
  817. menu_strip_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 251) : Color.FromArgb(251, 250, 251);
  818.  
  819. overflow_button_gradient_begin = use_system_colors ? Color.FromArgb(241, 240, 242) : Color.FromArgb(242, 242, 242);
  820. overflow_button_gradient_end = use_system_colors ? SystemColors.ButtonShadow : Color.FromArgb(167, 166, 170);
  821. overflow_button_gradient_middle = use_system_colors ? Color.FromArgb(237, 235, 239) : Color.FromArgb(224, 224, 225);
  822.  
  823. rafting_container_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(235, 233, 237);
  824. rafting_container_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 251) : Color.FromArgb(251, 250, 251);
  825.  
  826. separator_dark = use_system_colors ? Color.FromArgb(193, 193, 196) : Color.FromArgb(193, 193, 196);
  827. separator_light = use_system_colors ? SystemColors.ButtonHighlight : Color.FromArgb(255, 255, 255);
  828.  
  829. status_strip_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(235, 233, 237);
  830. status_strip_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 251) : Color.FromArgb(251, 250, 251);
  831.  
  832. tool_strip_border = use_system_colors ? Color.FromArgb(238, 237, 240) : Color.FromArgb(238, 237, 240);
  833. tool_strip_content_panel_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(235, 233, 237);
  834. tool_strip_content_panel_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 251) : Color.FromArgb(251, 250, 251);
  835. tool_strip_drop_down_background = use_system_colors ? Color.FromArgb(252, 252, 252) : Color.FromArgb(252, 252, 252);
  836.  
  837. tool_strip_gradient_begin = use_system_colors ? Color.FromArgb(250, 250, 251) : Color.FromArgb(252, 252, 252);
  838. tool_strip_gradient_end = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(235, 233, 237);
  839. tool_strip_gradient_middle = use_system_colors ? Color.FromArgb(245, 244, 246) : Color.FromArgb(245, 244, 246);
  840.  
  841. tool_strip_panel_gradient_begin = use_system_colors ? SystemColors.ButtonFace : Color.FromArgb(235, 233, 237);
  842. tool_strip_panel_gradient_end = use_system_colors ? Color.FromArgb(251, 250, 251) : Color.FromArgb(251, 250, 251);
  843. break;
  844. case STYLE.Aero:
  845. button_checked_gradient_begin = Color.Empty;
  846. button_checked_gradient_end = Color.Empty;
  847. button_checked_gradient_middle = Color.Empty;
  848. button_checked_highlight = Color.FromArgb(196, 225, 255);
  849. button_checked_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  850.  
  851. button_pressed_border = Color.FromKnownColor(KnownColor.Highlight);
  852. button_pressed_gradient_begin = Color.FromArgb(153, 204, 255);
  853. button_pressed_gradient_end = Color.FromArgb(153, 204, 255);
  854. button_pressed_gradient_middle = Color.FromArgb(153, 204, 255);
  855. button_pressed_highlight = Color.FromArgb(152, 203, 255);
  856. button_pressed_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  857.  
  858. button_selected_border = use_system_colors ? Color.FromKnownColor(KnownColor.Highlight) : Color.FromArgb(51, 94, 168);
  859. button_selected_gradient_begin = Color.FromArgb(194, 224, 255);
  860. button_selected_gradient_end = Color.FromArgb(194, 224, 255);
  861. button_selected_gradient_middle = Color.FromArgb(194, 224, 255);
  862. button_selected_highlight = Color.FromArgb(196, 225, 255);
  863. button_selected_highlight_border = Color.FromKnownColor(KnownColor.Highlight);
  864.  
  865. check_background = Color.FromKnownColor(KnownColor.Highlight);
  866. check_pressed_background = Color.FromArgb(153, 204, 255);
  867. check_selected_background = Color.FromArgb(153, 204, 255);
  868.  
  869. grip_dark = Color.FromArgb(184, 184, 184);
  870. grip_light = SystemColors.Window;
  871.  
  872. image_margin_gradient_begin = Color.FromArgb(252, 252, 252);
  873. image_margin_gradient_end = SystemColors.Control;
  874. image_margin_gradient_middle = Color.FromArgb(250, 250, 250);
  875. image_margin_revealed_gradient_begin = Color.FromArgb(251, 251, 251);
  876. image_margin_revealed_gradient_end = Color.FromArgb(245, 245, 245);
  877. image_margin_revealed_gradient_middle = Color.FromArgb(247, 247, 247);
  878.  
  879. menu_border = Color.FromArgb(128, 128, 128);
  880. menu_item_border = SystemColors.Highlight;
  881.  
  882. menu_item_pressed_gradient_begin = Color.FromArgb(252, 252, 252);
  883. menu_item_pressed_gradient_end = Color.FromArgb(250, 250, 250);
  884. menu_item_pressed_gradient_middle = Color.FromArgb(247, 247, 247);
  885. menu_item_selected = SystemColors.Window;
  886. menu_item_selected_gradient_begin = Color.FromArgb(194, 224, 255);
  887. menu_item_selected_gradient_end = Color.FromArgb(194, 224, 255);
  888.  
  889. menu_strip_gradient_begin = SystemColors.ButtonFace;
  890. menu_strip_gradient_end = Color.FromArgb(253, 253, 253);
  891.  
  892. overflow_button_gradient_begin = Color.FromArgb(247, 247, 247);
  893. overflow_button_gradient_end = SystemColors.ButtonShadow;
  894. overflow_button_gradient_middle = Color.FromArgb(245, 245, 245);
  895.  
  896. rafting_container_gradient_begin = SystemColors.ButtonFace;
  897. rafting_container_gradient_end = Color.FromArgb(253, 253, 253);
  898.  
  899. separator_dark = Color.FromArgb(189, 189, 189);
  900. separator_light = SystemColors.ButtonHighlight;
  901.  
  902. status_strip_gradient_begin = SystemColors.ButtonFace;
  903. status_strip_gradient_end = Color.FromArgb(253, 253, 253);
  904.  
  905. tool_strip_border = Color.FromArgb(246, 246, 246);
  906. tool_strip_content_panel_gradient_begin = SystemColors.ButtonFace;
  907. tool_strip_content_panel_gradient_end = Color.FromArgb(253, 253, 253);
  908. tool_strip_drop_down_background = Color.FromArgb(253, 253, 253);
  909.  
  910. tool_strip_gradient_begin = Color.FromArgb(252, 252, 252);
  911. tool_strip_gradient_end = SystemColors.ButtonFace;
  912. tool_strip_gradient_middle = Color.FromArgb(250, 250, 250);
  913.  
  914. tool_strip_panel_gradient_begin = SystemColors.ButtonFace;
  915. tool_strip_panel_gradient_end = Color.FromArgb(253, 253, 253);
  916. break;
  917. default: setColors(STYLE.Classic); break;
  918. }
  919. }
  920. #endregion
  921. }
  922. }

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 octets1732536240 25/11/2024 13:04:00
| _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.

Version en cache

25/11/2024 13:03:59 Cette version de la page est en cache (à la date du 25/11/2024 13:03:59) 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//ProfessionalColorTableFactory.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.