refacor media widget, apply clang format rule
This commit is contained in:
@@ -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"},
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user