mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 21:06:38 +02:00
🐛 Use new icons in stroke cap dropdown
This commit is contained in:
parent
9c47d34f98
commit
67b343660a
9 changed files with 35 additions and 7 deletions
|
@ -441,6 +441,13 @@
|
|||
(def ^:icon status-update-refactor (icon-xref :status-update-refactor))
|
||||
(def ^:icon status-tick-refactor (icon-xref :status-tick-refactor))
|
||||
(def ^:icon status-wrong-refactor (icon-xref :status-wrong-refactor))
|
||||
(def ^:icon stroke-arrow-refactor (icon-xref :stroke-arrow-refactor))
|
||||
(def ^:icon stroke-circle-refactor (icon-xref :stroke-circle-refactor))
|
||||
(def ^:icon stroke-diamond-refactor (icon-xref :stroke-diamond-refactor))
|
||||
(def ^:icon stroke-rectangle-refactor (icon-xref :stroke-rectangle-refactor))
|
||||
(def ^:icon stroke-rounded-refactor (icon-xref :stroke-rounded-refactor))
|
||||
(def ^:icon stroke-squared-refactor (icon-xref :stroke-squared-refactor))
|
||||
(def ^:icon stroke-triangle-refactor (icon-xref :stroke-triangle-refactor))
|
||||
(def ^:icon stroke-size-refactor (icon-xref :stroke-size-refactor))
|
||||
(def ^:icon svg-refactor (icon-xref :svg-refactor))
|
||||
(def ^:icon swatches-refactor (icon-xref :swatches-refactor))
|
||||
|
|
|
@ -123,14 +123,14 @@
|
|||
stroke-caps-options
|
||||
[{:value nil :label (tr "workspace.options.stroke-cap.none")}
|
||||
:separator
|
||||
{:value :line-arrow :label (tr "workspace.options.stroke-cap.line-arrow-short") :icon :cap-line-arrow}
|
||||
{:value :triangle-arrow :label (tr "workspace.options.stroke-cap.triangle-arrow-short") :icon :cap-triangle-arrow}
|
||||
{:value :square-marker :label (tr "workspace.options.stroke-cap.square-marker-short") :icon :cap-square-marker}
|
||||
{:value :circle-marker :label (tr "workspace.options.stroke-cap.circle-marker-short") :icon :cap-circle-marker}
|
||||
{:value :diamond-marker :label (tr "workspace.options.stroke-cap.diamond-marker-short") :icon :cap-diamond-marker}
|
||||
{:value :line-arrow :label (tr "workspace.options.stroke-cap.line-arrow-short") :icon :stroke-arrow-refactor}
|
||||
{:value :triangle-arrow :label (tr "workspace.options.stroke-cap.triangle-arrow-short") :icon :stroke-triangle-refactor}
|
||||
{:value :square-marker :label (tr "workspace.options.stroke-cap.square-marker-short") :icon :stroke-rectangle-refactor}
|
||||
{:value :circle-marker :label (tr "workspace.options.stroke-cap.circle-marker-short") :icon :stroke-circle-refactor}
|
||||
{:value :diamond-marker :label (tr "workspace.options.stroke-cap.diamond-marker-short") :icon :stroke-diamond-refactor}
|
||||
:separator
|
||||
{:value :round :label (tr "workspace.options.stroke-cap.round") :icon :cap-round}
|
||||
{:value :square :label (tr "workspace.options.stroke-cap.square") :icon :cap-square}]
|
||||
{:value :round :label (tr "workspace.options.stroke-cap.round") :icon :stroke-rounded-refactor}
|
||||
{:value :square :label (tr "workspace.options.stroke-cap.square") :icon :stroke-squared-refactor}]
|
||||
|
||||
on-cap-switch
|
||||
(mf/use-callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue