diff --git a/CHANGES.md b/CHANGES.md index 7e4045c001..d66afd6221 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,7 @@ - Allow basic math operations in inputs [Taiga 1383](https://tree.taiga.io/project/penpot/us/1383) - Autocomplete color names in hex inputs [Taiga 1596](https://tree.taiga.io/project/penpot/us/1596) - Allow to group assets (components and graphics) [Taiga #1289](https://tree.taiga.io/project/penpot/us/1289) +- Change icon of pinned projects [Taiga 1298](https://tree.taiga.io/project/penpot/us/1298) - Internal: refactor of http client, replace internal xhr usage with more modern Fetch API. - New features for paths: snap points on edition, add/remove nodes, merge/join/split nodes. [Taiga #907](https://tree.taiga.io/project/penpot/us/907) - Add OpenID-Connect support. diff --git a/frontend/resources/images/icons/pin-fill.svg b/frontend/resources/images/icons/pin-fill.svg new file mode 100644 index 0000000000..5119bbf6d5 --- /dev/null +++ b/frontend/resources/images/icons/pin-fill.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/shadow-cljs.edn b/frontend/shadow-cljs.edn index 78887e521c..f8268a0aa1 100644 --- a/frontend/shadow-cljs.edn +++ b/frontend/shadow-cljs.edn @@ -3,8 +3,7 @@ :jvm-opts ["-Xmx700m" "-Xms100m" "-XX:+UseSerialGC"] :dev-http {8888 "classpath:public"} - :source-paths ["src", "vendor", "resources", "../common"] - + :source-paths ["src", "vendor", "resources", "../common", "tests"] :dependencies [[binaryage/devtools "RELEASE"] diff --git a/frontend/src/app/main/ui/dashboard/files.cljs b/frontend/src/app/main/ui/dashboard/files.cljs index b3f1557df7..4a5aca8d6d 100644 --- a/frontend/src/app/main/ui/dashboard/files.cljs +++ b/frontend/src/app/main/ui/dashboard/files.cljs @@ -71,7 +71,9 @@ [:div.icon.pin-icon {:class (when (:is-pinned project) "active") :on-click toggle-pin} - i/pin]])) + (if (:is-pinned project) + i/pin-fill + i/pin)]])) [:a.btn-secondary.btn-small {:on-click on-create-clicked} (tr "dashboard.new-file")]])) diff --git a/frontend/src/app/main/ui/dashboard/projects.cljs b/frontend/src/app/main/ui/dashboard/projects.cljs index 5ecf0278af..b75d0545c6 100644 --- a/frontend/src/app/main/ui/dashboard/projects.cljs +++ b/frontend/src/app/main/ui/dashboard/projects.cljs @@ -120,7 +120,9 @@ [:span.pin-icon {:class (when (:is-pinned project) "active") :on-click toggle-pin} - i/pin]) + (if (:is-pinned project) + i/pin-fill + i/pin)]) (if (:edition? @local) [:& inline-edition {:content (:name project) :on-end on-edit}] diff --git a/frontend/src/app/main/ui/icons.cljs b/frontend/src/app/main/ui/icons.cljs index 0003704c05..d871be38b4 100644 --- a/frontend/src/app/main/ui/icons.cljs +++ b/frontend/src/app/main/ui/icons.cljs @@ -97,6 +97,7 @@ (def picker-hsv (icon-xref :picker-hsv)) (def picker-ramp (icon-xref :picker-ramp)) (def pin (icon-xref :pin)) +(def pin-fill (icon-xref :pin-fill)) (def play (icon-xref :play)) (def plus (icon-xref :plus)) (def pointer-inner (icon-xref :pointer-inner))