From 16249ccd63b42531047178b95639e56b465285c3 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 24 Dec 2015 19:34:13 +0200 Subject: [PATCH] Convert keyword color representation into string. --- frontend/uxbox/schema.cljs | 1 - frontend/uxbox/ui/dashboard/builtins.cljs | 57 ++++++++++++----------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/frontend/uxbox/schema.cljs b/frontend/uxbox/schema.cljs index bed73138d..32a12227f 100644 --- a/frontend/uxbox/schema.cljs +++ b/frontend/uxbox/schema.cljs @@ -43,4 +43,3 @@ ([schema data] (when-let [errors (validate schema data)] (throw (ex-info "Invalid data" errors))))) - diff --git a/frontend/uxbox/ui/dashboard/builtins.cljs b/frontend/uxbox/ui/dashboard/builtins.cljs index 3782c7e41..acfe9d925 100644 --- a/frontend/uxbox/ui/dashboard/builtins.cljs +++ b/frontend/uxbox/ui/dashboard/builtins.cljs @@ -3,37 +3,38 @@ (def ^:static +color-collections+ [{:name "Generic 1" :id 1 - :colors #{:00f9ff - :009fff - :0078ff - :005eff - :0900ff - :7502f1 - :ffe705 - :00ffab - :f52105 + :builtin true + :colors #{"#00f9ff" + "#009fff" + "#0078ff" + "#005eff" + "#0900ff" + "#7502f1" + "#ffe705" + "#00ffab" + "#f52105" }} {:name "Generic 2" :id 2 - :colors #{:20f9ff - :209fff - :2078ff - :205eff - :2900ff - :3502f1 - :3fe705 - :30ffab - :352105 - - :209f20 - :207820 - :205e20 - :290020 - :350220 - :3fe720 - :30ff20 - :352120 - :352140 + :builtin true + :colors #{"#20f9ff" + "#209fff" + "#2078ff" + "#205eff" + "#2900ff" + "#3502f1" + "#3fe705" + "#30ffab" + "#352105" + "#209f20" + "#207820" + "#205e20" + "#290020" + "#350220" + "#3fe720" + "#30ff20" + "#352120" + "#352140" }}]) (def ^:static +color-collections-by-id+