• rose18

    (@rose18)


    Hi,

    I want to set the opacity level for background color, and I know there is a feature for that when custom color is set to true in the theme.json file.
    This is what I have under Settings:

    "color": {
            "custom": true,
    		"text": true,
    		"background": true,
    		"link": true,
            "defaultGradients": false,
            "defaultPalette":false,
    		"defaultDuotone": false,
            "customDuotone": false,
            "customGradient": false,
            "duotone": [],
            "gradients": [],
            "palette": [
    					{
      					"slug": "pink",
      					"color": "#FFB6C1",
      					"name": "Pink"
      				},
      				{
      					"slug": "red",
      					"color": "#E2574C",
      					"name": "Red"
      				},
    					{
      					"slug": "white",
      					"color": "#FFFFFF",
      					"name": "White"
      				},
    					{
      					"slug": "black",
      					"color": "#000000",
      					"name": "Black"
      				}
      			]
        },

    This is how the ui control look like with the opacity control: https://snipboard.io/LFukzG.jpg

    However, I don’t want the custom color picker, I want to keep the opacity control from the left popup window (screenshot here: https://snipboard.io/UlD2KE.jpg)

    Is there a way to disable the custom color picker and keep the opacity control?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mario Santos

    (@santosguillamot)

    Hello @rose18 ! I’m not an expert here, but in this GitHub issue, they are proposing what you are trying to do, if I am not mistaken. It seems it is still open, so I believe that option is not available at this moment, sorry.

    I guess you can always hide the color picker part from the editor using CSS, but that would be a bit hacky.

    Thread Starter rose18

    (@rose18)

    thank you for the update @santosguillamot !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove custom color picker, but keep opacity level control for Background Colors’ is closed to new replies.