mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
✨ Add change theme shortcut on help section
This commit is contained in:
parent
a3a7c597b5
commit
a24d5676a6
4 changed files with 14 additions and 6 deletions
|
@ -32,9 +32,10 @@
|
|||
:subsections [:general-dashboard]
|
||||
:fn #(st/emit! (dd/create-element))}
|
||||
|
||||
:toggle-light-dark {:tooltip (ds/meta (ds/alt "Q"))
|
||||
:command (ds/c-mod "alt+q")
|
||||
:fn #(st/emit! (du/toggle-theme))}})
|
||||
:toggle-theme {:tooltip (ds/meta (ds/alt "M"))
|
||||
:command (ds/c-mod "alt+m")
|
||||
:subsections [:general-dashboard]
|
||||
:fn #(st/emit! (du/toggle-theme))}})
|
||||
|
||||
(defn get-tooltip [shortcut]
|
||||
(assert (contains? shortcuts shortcut) (str shortcut))
|
||||
|
|
|
@ -551,9 +551,10 @@
|
|||
|
||||
|
||||
;; THEME
|
||||
:toggle-light-dark {:tooltip (ds/meta (ds/alt "Q"))
|
||||
:command (ds/c-mod "alt+q")
|
||||
:fn #(st/emit! (du/toggle-theme))}})
|
||||
:toggle-theme {:tooltip (ds/meta (ds/alt "M"))
|
||||
:command (ds/c-mod "alt+m")
|
||||
:subsections [:basics]
|
||||
:fn #(st/emit! (du/toggle-theme))}})
|
||||
|
||||
(def opacity-shortcuts
|
||||
(into {} (->>
|
||||
|
|
|
@ -2976,6 +2976,9 @@ msgstr "Snap to guides"
|
|||
msgid "shortcuts.toggle-textpalette"
|
||||
msgstr "Toggle text palette"
|
||||
|
||||
msgid "shortcuts.toggle-theme"
|
||||
msgstr "Change theme"
|
||||
|
||||
msgid "shortcuts.toggle-visibility"
|
||||
msgstr "Show / Hide"
|
||||
|
||||
|
|
|
@ -3022,6 +3022,9 @@ msgstr "Alinear a las guias"
|
|||
msgid "shortcuts.toggle-textpalette"
|
||||
msgstr "Mostrar/ocultar paleta de textos"
|
||||
|
||||
msgid "shortcuts.toggle-theme"
|
||||
msgstr "Cambiar tema"
|
||||
|
||||
msgid "shortcuts.toggle-visibility"
|
||||
msgstr "Mostrar/ocultar elemento"
|
||||
|
||||
|
|
Loading…
Reference in a new issue