1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2024-12-12 21:29:46 +02:00
v8-code-style/bundles/com.e1c.v8codestyle.bsl/markdown/new-color.md

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.

See