From 56fed2e9f072a9632ebdf1bc1465f844e7c2998c Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sun, 15 Dec 2024 21:25:34 +0200 Subject: [PATCH] espo theme default --- application/Espo/Resources/defaults/config.php | 2 +- install/core/Installer.php | 10 +++++----- install/entry.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/application/Espo/Resources/defaults/config.php b/application/Espo/Resources/defaults/config.php index 31c0476bac..137d57b854 100644 --- a/application/Espo/Resources/defaults/config.php +++ b/application/Espo/Resources/defaults/config.php @@ -189,7 +189,7 @@ return [ 'followCreatedEntities' => false, 'b2cMode' => false, 'restrictedMode' => false, - 'theme' => 'Light', + 'theme' => 'Espo', 'themeParams' => (object) ['navbar' => 'side'], 'massEmailMaxPerHourCount' => 100, 'massEmailMaxPerBatchCount' => null, diff --git a/install/core/Installer.php b/install/core/Installer.php index ab2e547428..e8294c365b 100644 --- a/install/core/Installer.php +++ b/install/core/Installer.php @@ -270,11 +270,11 @@ class Installer public function getThemeList(): array { return [ - 'Light', - 'Violet', - 'Dark', - 'Glass', 'Espo', + 'Dark', + 'Light', + 'Glass', + 'Violet', 'Sakura', 'Hazyblue', ]; @@ -396,7 +396,7 @@ class Installer 'siteUrl' => $siteUrl, 'cryptKey' => Util::generateSecretKey(), 'hashSecretKey' => Util::generateSecretKey(), - 'theme' => $saveData['theme'] ?? 'Light', + 'theme' => $saveData['theme'] ?? 'Espo', ]; if (empty($saveData['defaultPermissions']['user'])) { diff --git a/install/entry.php b/install/entry.php index 4d76db1c93..611c3b19d3 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'] ?? 'Light'; +$theme = $_SESSION['install']['theme'] ?? 'Espo'; $stylesheet = $installer->getMetadata()->get(['themes', $theme, 'stylesheet']); $smarty->assign('stylesheet', $stylesheet);