diff --git a/frontend/resources/images/icons/open-refactor.svg b/frontend/resources/images/icons/open-refactor.svg deleted file mode 100644 index 294e1741b2..0000000000 --- a/frontend/resources/images/icons/open-refactor.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/frontend/resources/styles/main/partials/debug-icons-preview.scss b/frontend/resources/styles/main/partials/debug-icons-preview.scss index e08f1d274b..7634858902 100644 --- a/frontend/resources/styles/main/partials/debug-icons-preview.scss +++ b/frontend/resources/styles/main/partials/debug-icons-preview.scss @@ -3,14 +3,33 @@ flex-direction: column; overflow: scroll; height: 100%; + h1 { + color: white; + font-size: 24px; + display: block; + width: 100vw; + margin: 12px; + } } .debug-icons-preview { display: flex; flex-wrap: wrap; + h2 { + color: white; + font-size: 16px; + display: block; + width: 100vw; + margin: 12px; + } + + .subtitle-old { + color: #ff3277; + } .icon-item, - .cursor-item { + .cursor-item, + .icon-item-old { padding: 10px; display: flex; flex-direction: column; @@ -24,12 +43,28 @@ height: 100%; min-width: 16px; min-height: 16px; - fill: black; fill: none; color: transparent; - stroke: black; + stroke: #91fadb; + } + + span { + color: white; + max-width: 100px; + overflow: hidden; + font-size: 12px; + margin-top: 4px; + word-break: break-word; + min-height: 40px; } } + + .cursor-item div, + .icon-item-old svg { + fill: #aab5ba; + stroke: none; + } + .cursor-item { height: auto; } diff --git a/frontend/src/app/main/ui/icons.cljs b/frontend/src/app/main/ui/icons.cljs index 05d45d0759..f73fef49be 100644 --- a/frontend/src/app/main/ui/icons.cljs +++ b/frontend/src/app/main/ui/icons.cljs @@ -400,7 +400,6 @@ (def ^:icon msg-warning-refactor (icon-xref :msg-warning-refactor)) (def ^:icon move-refactor (icon-xref :move-refactor)) (def ^:icon open-link-refactor (icon-xref :open-link-refactor)) -(def ^:icon open-refactor (icon-xref :open-refactor)) (def ^:icon padding-bottom-refactor (icon-xref :padding-bottom-refactor)) (def ^:icon padding-top-refactor (icon-xref :padding-top-refactor)) (def ^:icon padding-top-bottom-refactor (icon-xref :padding-top-bottom-refactor)) @@ -496,17 +495,19 @@ refactor? (fn [[key]] (str/ends-with? key "Refactor"))] [:* [:section.debug-icons-preview - [:h2 "Classic"] + [:h2.subtitle-old "Classic (Deprecated)"] (for [[key val] (remove refactor? entries)] - [:div.icon-item {:key key} + [:div.icon-item-old {:key key + :title key} val [:span key]])] [:section.debug-icons-preview [:h2 "Refactor"] (for [[key val] (filter refactor? entries)] - [:div.icon-item {:key key} - (deref val) + [:div.icon-item {:key key + :title key} + val [:span key]])]])) (defn key->icon