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

24 lines
526 B
Markdown
Raw Normal View History

# 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
```bsl
Color = new Color(0,0,0); ...
```
## Compliant Solution
```bsl
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
- [Styles and style elements](https://support.1ci.com/hc/en-us/articles/4403174580370-5-5-22-Styles-and-style-elements)