Commit 42e29250 authored by maikelkoopman's avatar maikelkoopman
Browse files

#2912755 by maikelkoopman: split up border radius settings into cards, form-controls, buttons

parent 603e828d
......@@ -2,4 +2,6 @@ font_primary: 'Montserrat'
color_primary: '#29abe2'
color_secondary: '#1f80aa'
color_accents: '#ffc142'
border_radius: '10'
card_radius: '10'
form_control_radius: '5'
button_radius: '10'
......@@ -50,10 +50,25 @@ function socialblue_form_system_theme_settings_alter(&$form, FormStateInterface
'#collapsed' => TRUE,
);
$form['os_color_settings']['border_radius'] = array(
'#type' => 'textfield',
'#title' => t('Border radius (px)'),
'#default_value' => $config->get('border_radius'),
$form['os_color_settings']['card_radius'] = array(
'#type' => 'number',
'#title' => t('Card border radius (px)'),
'#default_value' => $config->get('card_radius'),
'#description' => t('Define the roundness of cards corners.'),
);
$form['os_color_settings']['form_control_radius'] = array(
'#type' => 'number',
'#title' => t('Form control border radius (px)'),
'#default_value' => $config->get('form_control_radius'),
'#description' => t('Define the roundness of the corners of form-controls, like <code>input</code>, <code>textarea</code> and <code>select</code>'),
);
$form['os_color_settings']['button_radius'] = array(
'#type' => 'number',
'#title' => t('Button border radius (px)'),
'#default_value' => $config->get('button_radius'),
'#description' => t('Define the roundness of buttons corners.'),
);
$form['os_email_settings'] = array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment