Skip to content

Commit

Permalink
Update trash label icon
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhanshuguptagit committed Aug 28, 2024
1 parent 90cb558 commit 47c70b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file added public/img/eraser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
6 changes: 3 additions & 3 deletions src/bean/ui/views/sheet.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@
(let [g (new pixi/Graphics)
icon-names [:add-top-label :add-left-label
:add-top-left-label :add-skip-label
:trash-label]
:erase-label]
redraw-icons (fn []
(.removeChildren g)
(button! (new pixi/Sprite (:add-top-label icons))
Expand All @@ -486,7 +486,7 @@
(button! (new pixi/Text "𖣯" #js {:fill (:llm-icon styles/colors)})
g 5 105 20
#(ask-labels-llm frame-name selection)))
(button! (new pixi/Sprite (:trash-label icons))
(button! (new pixi/Sprite (:erase-label icons))
g 5 (if (features/llm-labelling? sheet) 135 105) 20
#(remove-label frame-name selection))
(pixi-repaint))]
Expand Down Expand Up @@ -861,7 +861,7 @@
:add-top-left-label (.from pixi/Texture "/img/top-left-label.png")
:add-skip-label (.from pixi/Texture "/img/skip-label.png")
:stripes (.from pixi/Texture "/img/stripes.jpg")
:trash-label (.from pixi/Texture "/img/trash-label.png")}})
:erase-label (.from pixi/Texture "/img/eraser.png")}})
(doseq [e ["moved" "zoomed" "moved-end" "zoomed-end"]]
(.on v e pixi-repaint))
(repaint sheet ui))))
Expand Down
2 changes: 1 addition & 1 deletion src/bean/ui/views/sidebar.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
[:span {:style {:display :inherit}}
[:a {:on-click #(rf/dispatch [::events/renaming-frame frame-name])}
frame-name]
[:a [:img {:src "img/trash-label.png"
[:a [:img {:src "img/trash-icon.png"
:on-click #(rf/dispatch [::events/remove-frame frame-name])
:style {:margin-left "10px"
:height "0.8rem"}}]]])
Expand Down

0 comments on commit 47c70b8

Please sign in to comment.