From 8fecab58a967e0d001aa899f2c1c4ca659e6f329 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 3 Apr 2026 15:55:31 +0700 Subject: [PATCH] [ai] Suggest non-style constants for durations. --- AGENTS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 3694a358a1..9fffd0a059 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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