Add Themes: Dark, light and automatic mode
This commit is contained in:
committed by
Frédéric Guillot
parent
65a5f0f47d
commit
aade89c9ba
@@ -195,6 +195,21 @@ class UserSession extends Base
|
||||
return session_get('user')['timezone'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get user theme
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function getTheme()
|
||||
{
|
||||
if (! $this->isLogged()) {
|
||||
return 'light';
|
||||
}
|
||||
|
||||
return session_get('user')['theme'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if subtask list toggle is active
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user