Buttons color

Status
Not open for further replies.

Mikeme

Member
Apr 26, 2021
186
4
18
39
Hi friends,
I would like to set global settings for button colors.
In most of pages there are 3 types of buttons - save, back and delete.
How it's possible to set globally color for each type?
I believe that it can be done from default settings with new variables?
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
You need to alter the cascading style sheet for the installation.
The default CSS is created on th efly by fusionpbx/themes/default/css.php. There are defaults here that are used when the specified default setting does not exist. The following snippet of code from css.php may explain this a little better:

Code:
$button_height = $_SESSION['theme']['button_height']['text'] ?? '28px';
$button_padding = $_SESSION['theme']['button_padding']['text'] ?? '5px 8px';
$button_border_size = $_SESSION['theme']['button_border_size']['text'] ?? '1px';
$button_border_color = $_SESSION['theme']['button_border_color']['text'] ?? '#242424';
$button_border_radius = $_SESSION['theme']['button_border_radius']['text'] ?? null;
$button_background_color = $_SESSION['theme']['button_background_color']['text'] ?? '#4f4f4f';
$button_background_color_bottom = $_SESSION['theme']['button_background_color_bottom']['text'] ?? '#000000';
$button_text_font = $_SESSION['theme']['button_text_font']['text'] ?? 'Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif';
$button_text_color = $_SESSION['theme']['button_text_color']['text'] ?? '#ffffff';
$button_text_weight = $_SESSION['theme']['button_text_weight']['text'] ?? 'bold';
$button_text_size = $_SESSION['theme']['button_text_size']['text'] ?? '11px';
$button_border_color_hover = $_SESSION['theme']['button_border_color_hover']['text'] ?? '#000000';
$button_background_color_hover = $_SESSION['theme']['button_background_color_hover']['text'] ?? '#000000';
$button_background_color_bottom_hover = $_SESSION['theme']['button_background_color_bottom_hover']['text'] ?? '#000000';
$button_text_color_hover = $_SESSION['theme']['button_text_color_hover']['text'] ?? '#ffffff';
$button_icons = $_SESSION['theme']['button_icons']['text'] ?? 'auto';
 
Status
Not open for further replies.