mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 13:09:22 +00:00
commit
fb58d7a4cc
@ -129,6 +129,7 @@
|
|||||||
- Fix problem with linked colors to strokes [Github #3522](https://github.com/penpot/penpot/issues/3522)
|
- Fix problem with linked colors to strokes [Github #3522](https://github.com/penpot/penpot/issues/3522)
|
||||||
- Fix problem with hand tool stuck [Github #3318](https://github.com/penpot/penpot/issues/3318)
|
- Fix problem with hand tool stuck [Github #3318](https://github.com/penpot/penpot/issues/3318)
|
||||||
- Fix problem with fix scrolling on nested elements [Github #3508](https://github.com/penpot/penpot/issues/3508)
|
- Fix problem with fix scrolling on nested elements [Github #3508](https://github.com/penpot/penpot/issues/3508)
|
||||||
|
- Fix problem when changing typography assets [Github #3683](https://github.com/penpot/penpot/issues/3683)
|
||||||
|
|
||||||
|
|
||||||
## 1.19.5
|
## 1.19.5
|
||||||
|
|||||||
@ -318,9 +318,12 @@
|
|||||||
(swap! storage assoc ::recent-fonts most-recent-fonts)))))
|
(swap! storage assoc ::recent-fonts most-recent-fonts)))))
|
||||||
|
|
||||||
(defn load-recent-fonts
|
(defn load-recent-fonts
|
||||||
[]
|
[fonts]
|
||||||
(ptk/reify ::load-recent-fonts
|
(ptk/reify ::load-recent-fonts
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(let [saved-recent-fonts (::recent-fonts @storage)]
|
(let [fonts-map (d/index-by :id fonts)
|
||||||
|
saved-recent-fonts (->> (::recent-fonts @storage)
|
||||||
|
(keep #(get fonts-map (:id %)))
|
||||||
|
(into #{}))]
|
||||||
(assoc-in state [:workspace-data :recent-fonts] saved-recent-fonts)))))
|
(assoc-in state [:workspace-data :recent-fonts] saved-recent-fonts)))))
|
||||||
|
|||||||
@ -37,17 +37,17 @@
|
|||||||
:fn #(st/emit! dv/toggle-zoom-style)}
|
:fn #(st/emit! dv/toggle-zoom-style)}
|
||||||
|
|
||||||
:toggle-fullscreen {:tooltip (ds/shift "F")
|
:toggle-fullscreen {:tooltip (ds/shift "F")
|
||||||
:command "shift+f"
|
:command ["shift+f" "alt+enter"]
|
||||||
:subsections [:zoom-viewer]
|
:subsections [:zoom-viewer]
|
||||||
:fn #(st/emit! dv/toggle-fullscreen)}
|
:fn #(st/emit! dv/toggle-fullscreen)}
|
||||||
|
|
||||||
:next-frame {:tooltip ds/left-arrow
|
:prev-frame {:tooltip ds/left-arrow
|
||||||
:command ["left" "up"]
|
:command ["left" "up" "shift+enter" "pageup" "shift+space"]
|
||||||
:subsections [:general-viewer]
|
:subsections [:general-viewer]
|
||||||
:fn #(st/emit! dv/select-prev-frame)}
|
:fn #(st/emit! dv/select-prev-frame)}
|
||||||
|
|
||||||
:prev-frame {:tooltip ds/right-arrow
|
:next-frame {:tooltip ds/right-arrow
|
||||||
:command ["right" "down"]
|
:command ["right" "down" "enter" "pagedown" "space"]
|
||||||
:subsections [:general-viewer]
|
:subsections [:general-viewer]
|
||||||
:fn #(st/emit! dv/select-next-frame)}
|
:fn #(st/emit! dv/select-next-frame)}
|
||||||
|
|
||||||
|
|||||||
@ -464,21 +464,35 @@
|
|||||||
[changes shape container update-node]
|
[changes shape container update-node]
|
||||||
(let [old-content (:content shape)
|
(let [old-content (:content shape)
|
||||||
new-content (txt/transform-nodes update-node old-content)
|
new-content (txt/transform-nodes update-node old-content)
|
||||||
|
|
||||||
|
redo-change
|
||||||
|
(make-change
|
||||||
|
container
|
||||||
|
{:type :mod-obj
|
||||||
|
:id (:id shape)
|
||||||
|
:operations [{:type :set
|
||||||
|
:attr :content
|
||||||
|
:val new-content}
|
||||||
|
{:type :set
|
||||||
|
:attr :position-data
|
||||||
|
:val nil}]})
|
||||||
|
|
||||||
|
undo-change
|
||||||
|
(make-change
|
||||||
|
container
|
||||||
|
{:type :mod-obj
|
||||||
|
:id (:id shape)
|
||||||
|
:operations [{:type :set
|
||||||
|
:attr :content
|
||||||
|
:val old-content}
|
||||||
|
{:type :set
|
||||||
|
:attr :position-data
|
||||||
|
:val nil}]})
|
||||||
|
|
||||||
changes' (-> changes
|
changes' (-> changes
|
||||||
(update :redo-changes conj (make-change
|
(update :redo-changes conj redo-change)
|
||||||
container
|
(update :undo-changes conj undo-change))]
|
||||||
{:type :mod-obj
|
|
||||||
:id (:id shape)
|
|
||||||
:operations [{:type :set
|
|
||||||
:attr :content
|
|
||||||
:val new-content}]}))
|
|
||||||
(update :undo-changes conj (make-change
|
|
||||||
container
|
|
||||||
{:type :mod-obj
|
|
||||||
:id (:id shape)
|
|
||||||
:operations [{:type :set
|
|
||||||
:attr :content
|
|
||||||
:val old-content}]})))]
|
|
||||||
(if (= new-content old-content)
|
(if (= new-content old-content)
|
||||||
changes
|
changes
|
||||||
changes')))
|
changes')))
|
||||||
|
|||||||
@ -21,7 +21,6 @@
|
|||||||
[app.main.ui.icons :as i]
|
[app.main.ui.icons :as i]
|
||||||
[app.util.dom :as dom]
|
[app.util.dom :as dom]
|
||||||
[app.util.i18n :as i18n :refer [tr]]
|
[app.util.i18n :as i18n :refer [tr]]
|
||||||
[app.util.timers :as ts]
|
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
||||||
(mf/defc libraries
|
(mf/defc libraries
|
||||||
@ -51,12 +50,13 @@
|
|||||||
|
|
||||||
toggle-palette
|
toggle-palette
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
(mf/deps @selected)
|
||||||
(fn []
|
(fn []
|
||||||
(r/set-resize-type! :bottom)
|
(r/set-resize-type! :bottom)
|
||||||
(dom/add-class! (dom/get-element-by-class "color-palette") "fade-out-down")
|
(dom/add-class! (dom/get-element-by-class "color-palette") "fade-out-down")
|
||||||
(ts/schedule 300 #(st/emit! (dw/remove-layout-flag :textpalette)
|
(st/emit! (dw/remove-layout-flag :textpalette)
|
||||||
(-> (dw/toggle-layout-flag :colorpalette)
|
(-> (mdc/show-palette @selected)
|
||||||
(vary-meta assoc ::ev/origin "workspace-colorpicker"))))))
|
(vary-meta assoc ::ev/origin "workspace-colorpicker")))))
|
||||||
|
|
||||||
shared-libs-options (mapv (fn [lib] {:value (d/name (:id lib)) :label (:name lib)}) (vals shared-libs))
|
shared-libs-options (mapv (fn [lib] {:value (d/name (:id lib)) :label (:name lib)}) (vals shared-libs))
|
||||||
|
|
||||||
|
|||||||
@ -144,8 +144,8 @@
|
|||||||
(on-select font)
|
(on-select font)
|
||||||
(on-close)))]
|
(on-close)))]
|
||||||
|
|
||||||
(mf/with-effect []
|
(mf/with-effect [fonts]
|
||||||
(st/emit! (fts/load-recent-fonts)))
|
(st/emit! (fts/load-recent-fonts fonts)))
|
||||||
|
|
||||||
(mf/with-effect [fonts]
|
(mf/with-effect [fonts]
|
||||||
(let [key (events/listen js/document "keydown" on-key-down)]
|
(let [key (events/listen js/document "keydown" on-key-down)]
|
||||||
|
|||||||
@ -81,9 +81,10 @@
|
|||||||
|
|
||||||
(when-let [id (:open local)]
|
(when-let [id (:open local)]
|
||||||
(when-let [thread (get threads-map id)]
|
(when-let [thread (get threads-map id)]
|
||||||
[:& cmt/thread-comments {:thread (update-position positions thread)
|
(when (seq (dcm/apply-filters local profile [thread]))
|
||||||
:users users
|
[:& cmt/thread-comments {:thread (update-position positions thread)
|
||||||
:zoom zoom}]))
|
:users users
|
||||||
|
:zoom zoom}])))
|
||||||
|
|
||||||
(when-let [draft (:comment drawing)]
|
(when-let [draft (:comment drawing)]
|
||||||
[:& cmt/draft-thread {:draft draft
|
[:& cmt/draft-thread {:draft draft
|
||||||
|
|||||||
@ -988,7 +988,7 @@ msgid "errors.webhooks.invalid-uri"
|
|||||||
msgstr "URL does not pass validation."
|
msgstr "URL does not pass validation."
|
||||||
|
|
||||||
msgid "errors.webhooks.last-delivery"
|
msgid "errors.webhooks.last-delivery"
|
||||||
msgstr "Last delivery was not successfull."
|
msgstr "Last delivery was not successful."
|
||||||
|
|
||||||
msgid "errors.webhooks.ssl-validation"
|
msgid "errors.webhooks.ssl-validation"
|
||||||
msgstr "Error on SSL validation."
|
msgstr "Error on SSL validation."
|
||||||
@ -3144,7 +3144,7 @@ msgid "viewer.header.sitemap"
|
|||||||
msgstr "Sitemap"
|
msgstr "Sitemap"
|
||||||
|
|
||||||
msgid "webhooks.last-delivery.success"
|
msgid "webhooks.last-delivery.success"
|
||||||
msgstr "Last delivery was successfull."
|
msgstr "Last delivery was successful."
|
||||||
|
|
||||||
#: src/app/main/ui/workspace/sidebar/align.cljs
|
#: src/app/main/ui/workspace/sidebar/align.cljs
|
||||||
msgid "workspace.align.hcenter"
|
msgid "workspace.align.hcenter"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user