mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 22:02:13 +09:00
Auto-detect color scheme first, then override with user preference
This commit is contained in:
parent
6200e8d4ae
commit
0237d5c759
2 changed files with 21 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue