2026-04-13 16:43:17 +08:00
|
|
|
#ifndef BLINKY_THEME_RGB_UPDATE_EVENT_H_
|
|
|
|
|
#define BLINKY_THEME_RGB_UPDATE_EVENT_H_
|
|
|
|
|
|
|
|
|
|
#include <app_event_manager.h>
|
|
|
|
|
#include <app_event_manager_profiler_tracer.h>
|
|
|
|
|
|
|
|
|
|
#include "theme_color.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
struct theme_rgb_update_event {
|
|
|
|
|
struct app_event_header header;
|
|
|
|
|
struct theme_rgb theme;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
APP_EVENT_TYPE_DECLARE(theme_rgb_update_event);
|
|
|
|
|
|
2026-04-14 16:42:04 +08:00
|
|
|
static inline void submit_theme_rgb_update_event(struct theme_rgb theme)
|
|
|
|
|
{
|
|
|
|
|
struct theme_rgb_update_event *event = new_theme_rgb_update_event();
|
|
|
|
|
|
|
|
|
|
event->theme = theme;
|
|
|
|
|
APP_EVENT_SUBMIT(event);
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-13 16:43:17 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* BLINKY_THEME_RGB_UPDATE_EVENT_H_ */
|