fix ذشزنلقخعدی
This commit is contained in:
@@ -7,6 +7,8 @@ import boursecuConvertIcon from '@/assets/img/boursecu-convert-icon.png'
|
||||
import boursecuWalletIcon from '@/assets/img/boursecu-wallet-icon.png'
|
||||
import boursecuBuySellIcon from '@/assets/img/boursecu-buy-sell-icon.png'
|
||||
import boursecuAssetsIcon from '@/assets/img/boursecu-assets-icon.png'
|
||||
import boursecuHomeIcon from '@/assets/img/boursecu-home-icon.png'
|
||||
import boursecuSettingsIcon from '@/assets/img/boursecu-settings-icon.png'
|
||||
import bazretalaLoginLogo from '@/assets/img/bazretala-login-logo.png'
|
||||
import bazretalaNavLogo from '@/assets/img/bazretala-nav-logo.png'
|
||||
import bazretalaFundBg from '@/assets/img/bazretala-fund-bg.png'
|
||||
@@ -53,6 +55,14 @@ export function getBoursecuAssetsIcon() {
|
||||
return boursecuAssetsIcon
|
||||
}
|
||||
|
||||
export function getBoursecuHomeIcon() {
|
||||
return boursecuHomeIcon
|
||||
}
|
||||
|
||||
export function getBoursecuSettingsIcon() {
|
||||
return boursecuSettingsIcon
|
||||
}
|
||||
|
||||
export function getBoursecuActionIconSrc(actionId: string): string | undefined {
|
||||
const icons: Record<string, string> = {
|
||||
buySell: boursecuBuySellIcon,
|
||||
@@ -61,6 +71,8 @@ export function getBoursecuActionIconSrc(actionId: string): string | undefined {
|
||||
transactions: boursecuTransactionsIcon,
|
||||
physicalReceive: boursecuPhysicalReceiveIcon,
|
||||
convert: boursecuConvertIcon,
|
||||
home: boursecuHomeIcon,
|
||||
settings: boursecuSettingsIcon,
|
||||
}
|
||||
|
||||
return icons[actionId]
|
||||
@@ -71,12 +83,26 @@ export function hasCustomLoginLogoLayout() {
|
||||
}
|
||||
|
||||
export const BOURSECU_BRAND_RED = '#bc3c3b'
|
||||
export const BOURSECU_BRAND_BLUE = '#2178b5'
|
||||
export const BOURSECU_BRAND_NAV = '#133050'
|
||||
export const BOURSECU_COPPER_BG = '#b87333'
|
||||
export const BOURSECU_COPPER_BG_LIGHT = '#fdf0e6'
|
||||
export const BOURSECU_COPPER_BG_GRADIENT = 'linear-gradient(135deg, #c98a4a 0%, #a86528 100%)'
|
||||
|
||||
export function getProjectBrandRed() {
|
||||
return isBoursecuProject() ? BOURSECU_BRAND_RED : null
|
||||
}
|
||||
|
||||
/** رنگ اصلی دکمهها و چارت — boursecu ثابت آبی، بقیه از تنظیمات tenant */
|
||||
export function getProjectPrimaryColor() {
|
||||
if (isBoursecuProject()) {
|
||||
return BOURSECU_BRAND_BLUE
|
||||
}
|
||||
|
||||
const color = getConfigApp('color')
|
||||
return color != null ? String(color) : undefined
|
||||
}
|
||||
|
||||
export function resolveProjectColor(color?: string | null) {
|
||||
if (!color || !isBoursecuProject()) {
|
||||
return color
|
||||
@@ -240,6 +266,7 @@ 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