-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duotone: Make it possible to define duotone settings in theme.json #34073
Closed
Closed
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
db3b192
Duotone: Make it possible to define duotone settings in theme.json
scruffian d2813c7
Apply duotone in the editor
scruffian 331e7e4
Rename value_wrapper to value_format and use vsprintf to replace it
scruffian 3685c25
Update lib/block-supports/duotone.php
scruffian 2ff3e0f
fix typo
scruffian 9c5d970
fix another typo and remove the important declaration
scruffian 660a1e2
fix comment
scruffian 7632db4
simplify the approach
scruffian 3bb578d
Add Duotone to paths with merge
scruffian b95ebb6
move the code that generates the duotone filters to the theme generator
scruffian 4a3011b
add space
scruffian fbc6daf
remove space
scruffian d0ffc54
show the filters on the image
scruffian 20e0f2c
make it possible to unset the duotone filter coming from theme.json
scruffian 7d0a0f2
formatting
scruffian 0ba9fd0
add a disable duotone option to the duotone picker
scruffian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll likely want to extract this one and make it either a reusable component to be used by the Global Styles system (whose mockups the icon came from), or put it in the Icon library and publish it with the others, even though it doesn't specifically match the icon grid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think that will require quite a significant reworking of how this component works though :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @jasmussen here. I can see this added as a special option of
CircularOptionPicker
. It would be useful for other components that use the picker like the regular gradient and color pickers.As far as I'm aware, right now there isn't a way to unset a gradient or color background either (on the cover block, for example). So having an
unset
value doesn't seem essential to me for this PR, and may be something worth moving into a follow-up PR instead of this one. There we could discuss a unified way that will work for those other cases as well without holding this PR up.