docs(development): keep battery icon clear of the top-right cloud
The battery indicator shows in the top-right by default, but the corner already has a cloud decoration (add_cloud, around x≈188, y≈8). Place the battery in the clear sky space beside or below the cloud, or at the very top-right edge, so it does not overlap or cover the cloud. Documented in agent-guide and coding-conventions in both languages.
This commit is contained in:
1 parent
a8d415ad15
commit
9ffe9dfa81
4 files changed
+4
-4
No files matched your search
@@ -8,7 +8,7 @@
|
||||
- Keep UI text and default documentation in English. Explanatory source comments may use Chinese while retaining established English technical terms.
|
||||
- Put reusable hardware behavior in `components/bsp`; keep menus, animations, product interaction, and validation pages in `main`.
|
||||
- The `ui_pixel` theme (sky background, grass, title plate, mascot, ink-outlined panels) is part of the user interface, not a removable component. When trimming components or routing straight to a feature screen, keep the theme and build the screen through `ui_pixel_screen_create()` / `ui_pixel_panel_create()`.
|
||||
- Show the battery level in the top-right corner of a user interface by default, unless the developer specifies a different placement or explicitly does not want it. Read it from `bsp_battery_soc()` (and `bsp_battery_mv()` where useful); render it as a small battery indicator or percentage in the reserved top-right area of the screen, and degrade gracefully when it reads `-1` (unavailable).
|
||||
- Show the battery level in the top-right corner of a user interface by default, unless the developer specifies a different placement or explicitly does not want it. Read it from `bsp_battery_soc()` (and `bsp_battery_mv()` where useful); render it as a small battery indicator or percentage in the top-right area of the screen, and degrade gracefully when it reads `-1` (unavailable). Place it where it does not overlap the existing cloud decoration (`add_cloud`, around `x≈188, y≈8`): use the clear sky space beside or below the cloud, or the very top-right edge, rather than covering the cloud.
|
||||
- Document non-trivial functions, state, ownership, blocking behavior, task context, initialization order, failure values, register choices, timing, synchronization, and hardware-specific constants. Explain why, not merely what.
|
||||
- Add or update tests with code changes. If automation is not practical, record the test gap and exact manual validation path.
|
||||
- If adding a cache, define expiration and cleanup unless durable retention is explicitly justified.
|
||||
|
||||
Reference in new issue
Block a user