fix banner and chart color
This commit is contained in:
+6
-6
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user