mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
[ai] Suggest non-style constants for durations.
This commit is contained in:
@@ -287,6 +287,8 @@ auto margin = st::myWidgetMargin;
|
||||
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
|
||||
|
||||
```cpp
|
||||
|
||||
Reference in New Issue
Block a user