mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 17:46:10 +02:00
🐛 Update icon of locked aspect ratio
This commit is contained in:
parent
918ecc7b37
commit
c49d6d4ecf
4 changed files with 13 additions and 6 deletions
|
@ -337,6 +337,7 @@
|
|||
(def ^:icon delete-text-refactor (icon-xref :delete-text-refactor))
|
||||
(def ^:icon desc-sort-refactor (icon-xref :desc-sort-refactor))
|
||||
(def ^:icon detach-refactor (icon-xref :detach-refactor))
|
||||
(def ^:icon detached-refactor (icon-xref :detached-refactor))
|
||||
(def ^:icon document-refactor (icon-xref :document-refactor))
|
||||
(def ^:icon download-refactor (icon-xref :download-refactor))
|
||||
(def ^:icon drop-refactor (icon-xref :drop-refactor))
|
||||
|
|
|
@ -54,6 +54,8 @@
|
|||
|
||||
(def ^:private clip-content-icon (i/icon-xref :clip-content-refactor (stl/css :checkbox-button)))
|
||||
(def ^:private play-icon (i/icon-xref :play-refactor (stl/css :checkbox-button)))
|
||||
(def ^:private locked-icon (i/icon-xref :detach-refactor (stl/css :lock-ratio-icon)))
|
||||
(def ^:private unlocked-icon (i/icon-xref :detached-refactor (stl/css :lock-ratio-icon)))
|
||||
|
||||
(defn select-measure-keys
|
||||
"Consider some shapes can be drawn from bottom to top or from left to right"
|
||||
|
@ -416,8 +418,8 @@
|
|||
:disabled (= proportion-lock :multiple))
|
||||
:on-click on-proportion-lock-change}
|
||||
(if proportion-lock
|
||||
i/lock-refactor
|
||||
i/unlock-refactor)]])
|
||||
locked-icon
|
||||
unlocked-icon)]])
|
||||
(when (options :position)
|
||||
[:div {:class (stl/css :position)}
|
||||
[:div {:class (stl/css-case :x-position true
|
||||
|
|
|
@ -128,15 +128,16 @@
|
|||
border-radius: $br-8;
|
||||
height: $s-32;
|
||||
width: $s-28;
|
||||
svg {
|
||||
@extend .button-icon;
|
||||
stroke: var(--icon-foreground);
|
||||
}
|
||||
&.selected {
|
||||
@extend .button-icon-selected;
|
||||
}
|
||||
}
|
||||
|
||||
.lock-ratio-icon {
|
||||
@extend .button-icon;
|
||||
stroke: var(--icon-foreground);
|
||||
}
|
||||
|
||||
.position {
|
||||
@include flexRow;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue