0
Fork 0
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:
Eva 2024-01-23 13:15:35 +01:00 committed by Andrey Antukh
parent a3a7c597b5
commit a24d5676a6
4 changed files with 14 additions and 6 deletions

View file

@ -32,8 +32,9 @@
:subsections [:general-dashboard]
:fn #(st/emit! (dd/create-element))}
:toggle-light-dark {:tooltip (ds/meta (ds/alt "Q"))
:command (ds/c-mod "alt+q")
: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]

View file

@ -551,8 +551,9 @@
;; THEME
:toggle-light-dark {:tooltip (ds/meta (ds/alt "Q"))
:command (ds/c-mod "alt+q")
: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

View file

@ -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"

View file

@ -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"