Add suport of themes AZURE and GRAY in VM editor

This commit is contained in:
bergware
2017-08-22 09:38:42 +02:00
parent 2141f1f700
commit 5677755a3d
2 changed files with 13 additions and 5 deletions

View File

@@ -160,7 +160,11 @@ if (!empty($_GET['uuid'])) {
#vmform table.multiple {
margin: 10px 0;
<?if ($display['theme'] == 'black'):?>
<?if ($display['theme']=='gray'):?>
background:#121510;
<?elseif ($display['theme']=='azure'):?>
background:#EDEAEF;
<?elseif ($display['theme']=='black'):?>
background:linear-gradient(90deg, #0A0A0A, #000000);
<?else:?>
background:linear-gradient(90deg, #F5F5F5, #FFFFFF);

View File

@@ -484,10 +484,14 @@
function bcolor($row) {
global $display;
if (empty($display) || $display['theme'] == "white")
return ($row % 2 == 0) ? "transparent" : "#F8F8F8";
return ($row % 2 == 0) ? "transparent" : "#0C0C0C";
if ($display['theme']=='gray')
return "transparent";
elseif ($display['theme']=='azure')
return "transparent";
elseif ($display['theme']=='black')
return ($row % 2 == 0) ? "transparent":"#0C0C0C";
else
return ($row % 2 == 0) ? "transparent":"#F8F8F8";
}
function mk_dropdown_options($arrOptions, $strSelected) {