mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 18:06:12 +02:00
🐛 Add shortcuts to boolean icons popups
This commit is contained in:
parent
8e0807d502
commit
b6b6b6043c
2 changed files with 6 additions and 4 deletions
|
@ -20,6 +20,7 @@
|
||||||
- Add ellipsis in long labels for input fields [Taiga #2224](https://tree.taiga.io/project/penpot/issue/2224)
|
- Add ellipsis in long labels for input fields [Taiga #2224](https://tree.taiga.io/project/penpot/issue/2224)
|
||||||
- Fix problem with text rendering on export [Taiga #2223](https://tree.taiga.io/project/penpot/issue/2223)
|
- Fix problem with text rendering on export [Taiga #2223](https://tree.taiga.io/project/penpot/issue/2223)
|
||||||
- Fix problem when flattening booleans losing styles [Taiga #2217](https://tree.taiga.io/project/penpot/issue/2217)
|
- Fix problem when flattening booleans losing styles [Taiga #2217](https://tree.taiga.io/project/penpot/issue/2217)
|
||||||
|
- Add shortcuts to boolean icons popups [Taiga #2220](https://tree.taiga.io/project/penpot/issue/2220)
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
(ns app.main.ui.workspace.sidebar.options.menus.booleans
|
(ns app.main.ui.workspace.sidebar.options.menus.booleans
|
||||||
(:require
|
(:require
|
||||||
[app.main.data.workspace :as dw]
|
[app.main.data.workspace :as dw]
|
||||||
|
[app.main.data.workspace.shortcuts :as sc]
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
[app.main.ui.icons :as i]
|
[app.main.ui.icons :as i]
|
||||||
|
@ -51,28 +52,28 @@
|
||||||
[:div.align-options
|
[:div.align-options
|
||||||
[:div.align-group
|
[:div.align-group
|
||||||
[:div.align-button.tooltip.tooltip-bottom
|
[:div.align-button.tooltip.tooltip-bottom
|
||||||
{:alt (tr "workspace.shape.menu.union")
|
{:alt (str (tr "workspace.shape.menu.union") " (" (sc/get-tooltip :boolean-union) ")")
|
||||||
:class (dom/classnames :disabled disabled-bool-btns
|
:class (dom/classnames :disabled disabled-bool-btns
|
||||||
:selected (= head-bool-type :union))
|
:selected (= head-bool-type :union))
|
||||||
:on-click (set-bool :union)}
|
:on-click (set-bool :union)}
|
||||||
i/boolean-union]
|
i/boolean-union]
|
||||||
|
|
||||||
[:div.align-button.tooltip.tooltip-bottom
|
[:div.align-button.tooltip.tooltip-bottom
|
||||||
{:alt (tr "workspace.shape.menu.difference")
|
{:alt (str (tr "workspace.shape.menu.difference") " (" (sc/get-tooltip :boolean-difference) ")")
|
||||||
:class (dom/classnames :disabled disabled-bool-btns
|
:class (dom/classnames :disabled disabled-bool-btns
|
||||||
:selected (= head-bool-type :difference))
|
:selected (= head-bool-type :difference))
|
||||||
:on-click (set-bool :difference)}
|
:on-click (set-bool :difference)}
|
||||||
i/boolean-difference]
|
i/boolean-difference]
|
||||||
|
|
||||||
[:div.align-button.tooltip.tooltip-bottom
|
[:div.align-button.tooltip.tooltip-bottom
|
||||||
{:alt (tr "workspace.shape.menu.intersection")
|
{:alt (str (tr "workspace.shape.menu.intersection") " (" (sc/get-tooltip :boolean-intersection) ")")
|
||||||
:class (dom/classnames :disabled disabled-bool-btns
|
:class (dom/classnames :disabled disabled-bool-btns
|
||||||
:selected (= head-bool-type :intersection))
|
:selected (= head-bool-type :intersection))
|
||||||
:on-click (set-bool :intersection)}
|
:on-click (set-bool :intersection)}
|
||||||
i/boolean-intersection]
|
i/boolean-intersection]
|
||||||
|
|
||||||
[:div.align-button.tooltip.tooltip-bottom
|
[:div.align-button.tooltip.tooltip-bottom
|
||||||
{:alt (tr "workspace.shape.menu.exclude")
|
{:alt (str (tr "workspace.shape.menu.exclude") " (" (sc/get-tooltip :boolean-exclude) ")")
|
||||||
:class (dom/classnames :disabled disabled-bool-btns
|
:class (dom/classnames :disabled disabled-bool-btns
|
||||||
:selected (= head-bool-type :exclude))
|
:selected (= head-bool-type :exclude))
|
||||||
:on-click (set-bool :exclude)}
|
:on-click (set-bool :exclude)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue