Add led element
This commit is contained in:
2024-08-23 22:30:53 +02:00
parent 7b8a3ccff5
commit 163b9e2534
4 changed files with 39 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#pragma once
#include <string>
#include "UI_item.hpp"
#define UI_LED_TYPE std::string("UIled")
class UI_led : public UI_item
{
public:
UI_led(std::string id, std::string text, Color fg_color, Color bg_color);
UI_led(const json& j);
void from_json(const json& j) override;
json to_json() const override;
};