Skip to content

Commit

Permalink
always load custom palettes too
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Oct 19, 2024
1 parent 5192c7b commit 9fc1a69
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -1203,10 +1203,15 @@ public static function includeHeader(
}
$tpl_vars['css_files'][] = ['path' => 'public/lib/tabler.css'];
$tpl_vars['css_files'][] = ['path' => 'css/glpi.scss'];
if ($theme->isCustomTheme()) {
$tpl_vars['css_files'][] = ['path' => 'css/core_palettes.scss'];
foreach (ThemeManager::getInstance()->getAllThemes() as $info) {
if (!$info->isCustomTheme()) {
continue;
}
$theme_path = $info->getKey() . '?is_custom_theme=1';
// Custom theme files might be modified by external source
$theme_path .= "&lastupdate=" . filemtime($info->getPath(false));
$tpl_vars['css_files'][] = ['path' => $theme_path];
} else {
$tpl_vars['css_files'][] = ['path' => 'css/core_palettes.scss'];
}

// Add specific meta tags for plugins
Expand Down

0 comments on commit 9fc1a69

Please sign in to comment.