[ai] Suggest non-style constants for durations.

This commit is contained in:
John Preston
2026-04-03 15:55:31 +07:00
parent df71142949
commit 8fecab58a9
+2
View File
@@ -287,6 +287,8 @@ auto margin = st::myWidgetMargin;
auto iconSize = st::myWidgetIconSize; auto iconSize = st::myWidgetIconSize;
``` ```
**Duration constants**: Animation durations should NOT go in `.style` files, this is a legacy approach. Prefer `constexpr auto kName = crl::time(N)` in an anonymous namespace in the relevant `.cpp` file.
### Usage in Code ### Usage in Code
```cpp ```cpp