fix banner and chart color

This commit is contained in:
2026-06-24 11:52:09 +03:30
parent 6c89375370
commit d083469710
6 changed files with 31 additions and 15 deletions
+6 -6
View File
@@ -93,16 +93,17 @@ export function getProjectBrandRed() {
return isBoursecuProject() ? BOURSECU_BRAND_RED : null
}
/** رنگ اصلی دکمه‌ها و چارت — boursecu ثابت آبی، بقیه از تنظیمات tenant */
/** رنگ accent تم از تنظیمات tenant — بدون override پروژه‌ای */
export function getProjectPrimaryColor() {
if (isBoursecuProject()) {
return BOURSECU_BRAND_BLUE
}
const color = getConfigApp('color')
return color != null ? String(color) : undefined
}
/** فقط رنگ خط/ناحیه نمودار قیمت در بورس مس */
export function getBoursecuChartColor() {
return BOURSECU_BRAND_BLUE
}
export function resolveProjectColor(color?: string | null) {
if (!color || !isBoursecuProject()) {
return color
@@ -266,7 +267,6 @@ export function applyProjectTheme() {
}
document.documentElement.classList.add('project-boursecu')
document.documentElement.style.setProperty('--App-primary-color', BOURSECU_BRAND_BLUE)
document.documentElement.style.setProperty('--App-brand-nav', BOURSECU_BRAND_NAV)
document.documentElement.style.setProperty('--App-brand-red', BOURSECU_BRAND_RED)
document.documentElement.style.setProperty('--App-brand-red-50', '#f8ecec')