Merged Colors and Theme Colors array into one

This commit is contained in:
johnnyq
2023-01-20 14:22:07 -05:00
parent 7d29b551e7
commit 06cca61354
2 changed files with 18 additions and 41 deletions

View File

@@ -86,26 +86,25 @@ $config_theme = $row['config_theme'];
$config_enable_dark_mode = "dark_mode"; $config_enable_dark_mode = "dark_mode";
$colors_array = array( $colors_array = array(
'green',
'olive',
'yellowgreen',
'lime',
'blue', 'blue',
'darkblue', 'green',
'cadetblue',
'cyan', 'cyan',
'purple', 'yellow',
'indigo',
'magenta',
'red', 'red',
'crimson',
'indianred',
'pink',
'orange',
'teal',
'black', 'black',
'gray-dark', 'gray-dark',
'gray' 'gray',
'light',
'indigo',
'navy',
'purple',
'fuchsia',
'pink',
'maroon',
'orange',
'lime',
'teal',
'olive'
); );
$net_terms_array = array( $net_terms_array = array(
@@ -927,26 +926,4 @@ $asset_status_array = array(
'Retired' 'Retired'
); );
$themes_array = array(
'blue',
'green',
'cyan',
'yellow',
'red',
'black',
'gray-dark',
'gray',
'light',
'indigo',
'navy',
'purple',
'fuchsia',
'pink',
'maroon',
'orange',
'lime',
'teal',
'olive'
);
?> ?>

View File

@@ -12,17 +12,17 @@
<?php <?php
foreach($themes_array as $theme_color) { foreach($colors_array as $color) {
?> ?>
<div class="col-3 text-center mb-3"> <div class="col-3 text-center mb-3">
<div class="form-check"> <div class="form-check">
<input class="form-check-input" type="radio" name="theme" value="<?php echo $theme_color; ?>" <?php if($config_theme == $theme_color){ echo "checked"; } ?>> <input class="form-check-input" type="radio" name="theme" value="<?php echo $color; ?>" <?php if($config_theme == $color){ echo "checked"; } ?>>
<label class="form-check-label"> <label class="form-check-label">
<i class="fa fa-fw fa-6x fa-circle text-<?php echo $theme_color; ?>"></i> <i class="fa fa-fw fa-6x fa-circle text-<?php echo $color; ?>"></i>
<br> <br>
<?php echo $theme_color; ?> <?php echo $color; ?>
</label> </label>
</div> </div>
</div> </div>