15-Improve_visual_console_2
This commit is contained in:
parent
1f07d8a022
commit
774d6bf231
File diff suppressed because one or more lines are too long
|
@ -431,6 +431,22 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend,
|
|||
$force_integer = 'false';
|
||||
}
|
||||
|
||||
//modify internal grid lines and legend text color
|
||||
|
||||
if(substr($background_style, -6, 4) == '#fff'){
|
||||
$background_color = "#eee";
|
||||
$legend_color = "#151515";
|
||||
|
||||
}
|
||||
else if(substr($background_style, -6, 4) == '#000'){
|
||||
$background_color = "#151515";
|
||||
$legend_color = "#BDBDBD";
|
||||
}
|
||||
else{
|
||||
$background_color = "#A4A4A4";
|
||||
$legend_color = "#A4A4A4";
|
||||
}
|
||||
|
||||
// Trick to get translated string from javascript
|
||||
$return .= html_print_input_hidden('unknown_text', __('Unknown'),
|
||||
true);
|
||||
|
@ -473,7 +489,13 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend,
|
|||
"'$series_suffix_str',
|
||||
" . json_encode($dashboard) . ",\n
|
||||
" . json_encode($vconsole) . ",\n" .
|
||||
"'$xaxisname');";
|
||||
"'$xaxisname', \n" .
|
||||
"'$background_color', \n" .
|
||||
"'$legend_color'
|
||||
|
||||
);";
|
||||
|
||||
|
||||
$return .= "\n//]]>";
|
||||
$return .= "</script>";
|
||||
|
||||
|
|
|
@ -175,7 +175,8 @@
|
|||
theme_advanced_blockformats : "p,address,pre,h1,h2,h3,h4,h5,h6",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
theme_advanced_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
|
||||
//theme_advanced_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
|
||||
theme_advanced_fonts : "Roboto=roboto;Lato=lato;Open sans=opensans;League gothic=leaguegothic",
|
||||
theme_advanced_more_colors : 1,
|
||||
theme_advanced_row_height : 23,
|
||||
theme_advanced_resize_horizontal : 1,
|
||||
|
@ -1153,7 +1154,10 @@
|
|||
fz = n.style.fontSize;
|
||||
|
||||
if (!fn && n.style.fontFamily)
|
||||
fn = n.style.fontFamily.replace(/[\"\']+/g, '').replace(/^([^,]+).*/, '$1').toLowerCase();
|
||||
$( "#text-label_ifr" ).contents().find( "span" ).css("font-family",n.style.fontFamily);
|
||||
$( "#text-label_ifr" ).contents().find( "em" ).css("font-family",n.style.fontFamily);
|
||||
$( "#text-label_ifr").contents().find( "strong" ).css("font-family",n.style.fontFamily);
|
||||
fn = n.style.fontFamily.replace(/[\"\']+/g, '').replace(/^([^,]+).*/, '$1').toLowerCase();
|
||||
|
||||
if (!fc && n.style.color)
|
||||
fc = n.style.color;
|
||||
|
|
Loading…
Reference in New Issue