From 4d3ee33c01d178b33890374ede3271f49e028689 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sun, 13 Jul 2025 07:24:06 +0800 Subject: [PATCH] Add aio:colors() table description --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 5afb2c1..581082d 100644 --- a/README.md +++ b/README.md @@ -416,6 +416,22 @@ Format of table elements returned by `aio:actions()`: `args` - action arguments if any. ``` +Format of table elements returned by `aio:colors()`: + +``` +`primary_text` – base text color; +`secondary_text` – color for secondary text (e.g., sender name, time, etc.); +`button` – button background color; +`button_text` – text color inside buttons; +`progress` – general progress bar color; +`progress_good` – color for positive progress states (e.g., full battery or charging); +`progress_bad` – color for negative progress states (e.g., battery level below 15%); +`enabled_icon` – color for enabled icons (see the Control Panel widget); +`disabled_icon` – color for disabled icons (see the Control Panel widget); +`accent` – accent color; +`badge` – badge color. +``` + To accept a value sent by the `send_message` function, the receiving script must implement a callback `on_message(value)`. The script can track screen operations such as adding, removing or moving a widget with the `on_widget_action()` callback. For example: