mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2024-12-12 21:29:46 +02:00
526 B
526 B
Using the "New Color" construction
To change the design, you should use style elements, and not set specific values directly in the controls.
Noncompliant Code Example
Color = new Color(0,0,0); ...
Compliant Solution
Color = StyleColors.<Name of style element>; ...
This is required in order for similar controls to look the same in all forms where they occur.