<?php /**
 * Header Main Row Options
 *
 * @package Kadence
 */

namespace Kadence;

use Kadence\Theme_Customizer;
use function Kadence\kadence;

Theme_Customizer::add_settings(
	array(
		'buttons_color' => array(
			'control_type' =&gt; 'kadence_color_control',
			'section'      =&gt; 'general_buttons',
			'label'        =&gt; esc_html__( 'Text Colors', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'buttons_color' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'global',
					'selector' =&gt; '--global-palette-btn',
					'property' =&gt; 'color',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'color',
				),
				array(
					'type'     =&gt; 'global',
					'selector' =&gt; '--global-palette-btn-hover',
					'property' =&gt; 'color',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'hover',
				),
			),
			'input_attrs'  =&gt; array(
				'colors' =&gt; array(
					'color' =&gt; array(
						'tooltip' =&gt; __( 'Initial Color', 'kadence' ),
						'palette' =&gt; true,
					),
					'hover' =&gt; array(
						'tooltip' =&gt; __( 'Hover Color', 'kadence' ),
						'palette' =&gt; true,
					),
				),
			),
		),
		'buttons_background' =&gt; array(
			'control_type' =&gt; 'kadence_color_control',
			'section'      =&gt; 'general_buttons',
			'label'        =&gt; esc_html__( 'Background Colors', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'buttons_background' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'global',
					'selector' =&gt; '--global-palette-btn-bg',
					'property' =&gt; 'background',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'color',
				),
				array(
					'type'     =&gt; 'global',
					'selector' =&gt; '--global-palette-btn-bg-hover',
					'property' =&gt; 'background',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'hover',
				),
			),
			'input_attrs'  =&gt; array(
				'colors' =&gt; array(
					'color' =&gt; array(
						'tooltip' =&gt; __( 'Initial Color', 'kadence' ),
						'palette' =&gt; true,
					),
					'hover' =&gt; array(
						'tooltip' =&gt; __( 'Hover Color', 'kadence' ),
						'palette' =&gt; true,
					),
				),
				'allowGradient' =&gt; true,
			),
		),
		'buttons_border_colors' =&gt; array(
			'control_type' =&gt; 'kadence_color_control',
			'section'      =&gt; 'general_buttons',
			'label'        =&gt; esc_html__( 'Border Colors', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'buttons_border' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css',
					'selector' =&gt; 'button, .button, .wp-block-button__link, input[type="button"], input[type="reset"], input[type="submit"]',
					'property' =&gt; 'border-color',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'color',
				),
				array(
					'type'     =&gt; 'css',
					'selector' =&gt; 'button:hover, .button:hover, .wp-block-button__link:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover',
					'property' =&gt; 'border-color',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'hover',
				),
			),
			'input_attrs'  =&gt; array(
				'colors' =&gt; array(
					'color' =&gt; array(
						'tooltip' =&gt; __( 'Initial Color', 'kadence' ),
						'palette' =&gt; true,
					),
					'hover' =&gt; array(
						'tooltip' =&gt; __( 'Hover Color', 'kadence' ),
						'palette' =&gt; true,
					),
				),
			),
		),
		'buttons_border' =&gt; array(
			'control_type' =&gt; 'kadence_border_control',
			'section'      =&gt; 'general_buttons',
			'label'        =&gt; esc_html__( 'Border', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'buttons_border' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_border',
					'selector' =&gt; 'button, .button, .wp-block-button__link, input[type="button"], input[type="reset"], input[type="submit"]',
					'property' =&gt; 'border',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'border',
				),
			),
			'input_attrs'  =&gt; array(
				'responsive' =&gt; true,
				'color'      =&gt; false,
			),
		),
		'buttons_border_radius' =&gt; array(
			'control_type' =&gt; 'kadence_range_control',
			'section'      =&gt; 'general_buttons',
			'label'        =&gt; esc_html__( 'Border Radius', 'kadence' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css',
					'selector' =&gt; 'button, .button, .wp-block-button__link, input[type="button"], input[type="reset"], input[type="submit"]',
					'property' =&gt; 'border-radius',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'size',
				),
			),
			'default'      =&gt; kadence()-&gt;default( 'buttons_border_radius' ),
			'input_attrs'  =&gt; array(
				'min'        =&gt; array(
					'px'  =&gt; 0,
					'em'  =&gt; 0,
					'rem' =&gt; 0,
					'%'   =&gt; 0,
				),
				'max'        =&gt; array(
					'px'  =&gt; 100,
					'em'  =&gt; 12,
					'rem' =&gt; 12,
					'%'   =&gt; 100,
				),
				'step'       =&gt; array(
					'px'  =&gt; 1,
					'em'  =&gt; 0.01,
					'rem' =&gt; 0.01,
					'%'   =&gt; 1,
				),
				'units'      =&gt; array( 'px', 'em', 'rem', '%' ),
				'responsive' =&gt; true,
			),
		),
		'buttons_typography' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'general_buttons',
			'label'        =&gt; esc_html__( 'Font', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'buttons_typography' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; 'button, .button, .wp-block-button__link, input[type="button"], input[type="reset"], input[type="submit"]',
					'pattern'  =&gt; array(
						'desktop' =&gt; '$',
						'tablet'  =&gt; '$',
						'mobile'  =&gt; '$',
					),
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
			),
			'input_attrs'  =&gt; array(
				'id' =&gt; 'buttons_typography',
				'options' =&gt; 'no-color',
			),
		),
		'buttons_padding' =&gt; array(
			'control_type' =&gt; 'kadence_measure_control',
			'section'      =&gt; 'general_buttons',
			'priority'     =&gt; 10,
			'default'      =&gt; kadence()-&gt;default( 'buttons_margin' ),
			'label'        =&gt; esc_html__( 'Padding', 'kadence' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css',
					'selector' =&gt; 'button, .button, .wp-block-button__link, input[type="button"], input[type="reset"], input[type="submit"]',
					'property' =&gt; 'padding',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'measure',
				),
			),
			'input_attrs'  =&gt; array(
				'responsive' =&gt; true,
			),
		),
		'buttons_shadow' =&gt; array(
			'control_type' =&gt; 'kadence_shadow_control',
			'section'      =&gt; 'general_buttons',
			'priority'     =&gt; 20,
			'label'        =&gt; esc_html__( 'Button Shadow', 'kadence' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_boxshadow',
					'selector' =&gt; 'button, .button, .wp-block-button__link, input[type="button"], input[type="reset"], input[type="submit"]',
					'property' =&gt; 'box-shadow',
					'pattern'  =&gt; '$',
					'key'      =&gt; '',
				),
			),
			'default'      =&gt; kadence()-&gt;default( 'buttons_shadow' ),
		),
		'buttons_shadow_hover' =&gt; array(
			'control_type' =&gt; 'kadence_shadow_control',
			'section'      =&gt; 'general_buttons',
			'priority'     =&gt; 20,
			'label'        =&gt; esc_html__( 'Button Hover State Shadow', 'kadence' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_boxshadow',
					'selector' =&gt; 'button:hover, .button:hover, .wp-block-button__link:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover',
					'property' =&gt; 'box-shadow',
					'pattern'  =&gt; '$',
					'key'      =&gt; '',
				),
			),
			'default'      =&gt; kadence()-&gt;default( 'buttons_shadow_hover' ),
		),
	)
);
