Skip to content

Commit

Permalink
chore: Sync Theme-Customs
Browse files Browse the repository at this point in the history
Signed-off-by: Diego Andrés <[email protected]>
  • Loading branch information
DiegoAndresCortes committed Feb 7, 2025
1 parent adcada2 commit 7995006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themecustoms/Theme/Compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function styles() : void
loadCSSFile('compat/variables.css', ['minimize' => true, 'order_pos' => -2], 'smf_variables');

// Dark Mode?
if (!empty(Config::$current->darkMode) && (!empty($context['theme_can_change_mode']) || $settings['st_theme_mode_default'] !== 'light')) {
if (!empty(Config::$current->darkMode) && (!empty($context['theme_can_change_mode']) || (!empty($settings['st_theme_mode_default']) && $settings['st_theme_mode_default'] !== 'light'))) {
loadCSSFile('compat/dark.css', ['order_pos' => 2, 'attributes' => (isset($context['theme_colormode']) && $context['theme_colormode'] == 'system' ? ['media' => '(prefers-color-scheme: dark)'] : [])], 'smf_dark');
}

Expand Down

0 comments on commit 7995006

Please sign in to comment.