Auto-detect color scheme first, then override with user preference

This commit is contained in:
Kijin Sung 2020-12-13 19:55:37 +09:00
parent 6200e8d4ae
commit 0237d5c759
2 changed files with 21 additions and 10 deletions

View file

@ -2368,7 +2368,7 @@ class Context
public static function getBodyClass()
{
$class_list = self::$_instance->body_class;
if (($color_scheme = Rhymix\Framework\UA::getColorScheme()) !== 'none')
if (($color_scheme = Rhymix\Framework\UA::getColorScheme()) !== 'auto')
{
$class_list[] = 'color_scheme_' . $color_scheme;
}