Add Themes: Dark, light and automatic mode
This commit is contained in:
committed by
Frédéric Guillot
parent
65a5f0f47d
commit
aade89c9ba
29
app/Model/ThemeModel.php
Normal file
29
app/Model/ThemeModel.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Kanboard\Model;
|
||||
|
||||
use Kanboard\Core\Base;
|
||||
|
||||
/**
|
||||
* Class Theme
|
||||
*
|
||||
* @package Kanboard\Model
|
||||
* @author Frederic Guillot
|
||||
*/
|
||||
class ThemeModel extends Base
|
||||
{
|
||||
/**
|
||||
* Get available theme
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getThemes()
|
||||
{
|
||||
return [
|
||||
'light' => t('Light theme'),
|
||||
'dark' => t('Dark theme'),
|
||||
'auto' => t('Automatic theme - Sync with system'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user