Add Themes: Dark, light and automatic mode

This commit is contained in:
Frédéric Guillot
2023-05-12 21:09:30 -07:00
committed by Frédéric Guillot
parent 65a5f0f47d
commit aade89c9ba
89 changed files with 1129 additions and 196 deletions

29
app/Model/ThemeModel.php Normal file
View 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'),
];
}
}