refacor media widget, apply clang format rule

This commit is contained in:
2026-02-07 14:14:50 +01:00
parent 64b3babd3d
commit d9ac353a0d
54 changed files with 642 additions and 878 deletions

View File

@@ -4,12 +4,10 @@
#include <string>
class Icon {
public:
public:
enum Type {
HOME_ASSISTANT,
CONTROL_CENTER,
MENU,
SKIP_PREVIOUS,
SKIP_NEXT,
@@ -22,6 +20,8 @@ class Icon {
SAVE,
CONTENT_COPY,
TOKEN,
};
static const std::string toString(Type type) {
@@ -31,7 +31,7 @@ class Icon {
private:
static inline std::map<Type, const std::string> typeToString = {
{HOME_ASSISTANT, "\uf024"},
{CONTROL_CENTER, "\ue062"},
{MENU, "\ue5d2"},
{SKIP_PREVIOUS, "\ue045"},
{SKIP_NEXT, "\ue044"},
@@ -44,5 +44,7 @@ class Icon {
{SAVE, "\ue161"},
{CONTENT_COPY, "\ue14d"},
{TOKEN, "\uea25"},
};
};