Skip to content

Commit

Permalink
Update HTML background color
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Apr 26, 2023
1 parent 7ddf019 commit b7d8dd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions framework/library/astroid/Component/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ public static function colors()
$body_link_color = Style::getColor($params->get('body_link_color', ''));
$body_link_hover_color = Style::getColor($params->get('body_link_hover_color', ''));
$body_heading_color = Style::getColor($params->get('body_heading_color', ''));
Style::addCssBySelector('html', 'background-color', $body_background_color['light']);
Style::addCssBySelector('[data-bs-theme=dark]', 'background-color', $body_background_color['dark']);

$body = new Style('body');
$body->addCss('background-color', $body_background_color['light']);
$body->addCss('color', $body_text_color['light']);
Expand Down

0 comments on commit b7d8dd6

Please sign in to comment.