From 81cce0ddb776cc861956c69d0fb354017756db3a Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sun, 24 Mar 2024 12:46:14 +0200 Subject: [PATCH] light theme by default --- application/Espo/Resources/defaults/config.php | 2 +- install/core/Installer.php | 6 +++--- install/entry.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/Espo/Resources/defaults/config.php b/application/Espo/Resources/defaults/config.php index 673953a3c3..fed98ab738 100644 --- a/application/Espo/Resources/defaults/config.php +++ b/application/Espo/Resources/defaults/config.php @@ -185,7 +185,7 @@ return [ 'followCreatedEntities' => false, 'b2cMode' => false, 'restrictedMode' => false, - 'theme' => 'Violet', + 'theme' => 'Light', 'themeParams' => (object) ['navbar' => 'side'], 'massEmailMaxPerHourCount' => 100, 'massEmailMaxPerBatchCount' => null, diff --git a/install/core/Installer.php b/install/core/Installer.php index 5d43be5cfe..5855eda18d 100644 --- a/install/core/Installer.php +++ b/install/core/Installer.php @@ -269,11 +269,11 @@ class Installer public function getThemeList(): array { return [ + 'Light', 'Violet', - 'Espo', 'Dark', 'Glass', - 'Light', + 'Espo', 'Sakura', 'Hazyblue', ]; @@ -392,7 +392,7 @@ class Installer 'passwordSalt' => $this->getPasswordHash()->generateSalt(), 'cryptKey' => Util::generateSecretKey(), 'hashSecretKey' => Util::generateSecretKey(), - 'theme' => $saveData['theme'] ?? 'Violet', + 'theme' => $saveData['theme'] ?? 'Light', ]; if (empty($saveData['defaultPermissions']['user'])) { diff --git a/install/entry.php b/install/entry.php index 8e92d4af03..4d76db1c93 100644 --- a/install/entry.php +++ b/install/entry.php @@ -195,7 +195,7 @@ $smarty->assign('action', ucfirst($action)); $smarty->assign('config', $config); $smarty->assign('installerConfig', $installer->getInstallerConfigData()); -$theme = $_SESSION['install']['theme'] ?? 'Violet'; +$theme = $_SESSION['install']['theme'] ?? 'Light'; $stylesheet = $installer->getMetadata()->get(['themes', $theme, 'stylesheet']); $smarty->assign('stylesheet', $stylesheet);