import type { ThemeProps } from "../../types"; import "./titanium.css"; export default function TitaniumTheme({ config, state }: ThemeProps) { const { step, progress, installPath } = state; const { texts } = config; const getStatusText = () => { for (let i = texts.progressFrames.length - 1; i >= 0; i--) { if (progress <= texts.progressFrames[i].limit) return texts.progressFrames[i].text; } return texts.progressFrames[texts.progressFrames.length - 1]?.text ?? ""; }; return (
{/* 左侧:窄边控制台状态侧栏 */}
{config.appDisplayName.toUpperCase()}
{/* 侧栏步骤 */}
1 ? 'completed' : ''}`}>
01 准备部署
2 ? 'completed' : ''}`}>
02 系统解压
03 启幕运行
版本 {config.appVersion} PRO
{/* 右侧:核心控制台面板 */}

{step === 1 && "系统部署准备"} {step === 2 && "核心正在部署"} {step === 3 && "系统就绪"}

{/* 内嵌物理声学舱 */}
{/* 步骤 1 面板 */} {step === 1 && (

{texts.welcomeSubtitle}

{installPath}
)} {/* 步骤 2 面板 */} {step === 2 && (
{progress < 10 ? '0' : ''}{progress}%
{getStatusText()}
)} {/* 步骤 3 面板 */} {step === 3 && (
部署完毕
{texts.successSubtitle}
)} {/* 精密声波等高柱(背景律动) */}
{Array.from({ length: 8 }).map((_, i) => (
))}
{/* 底部操作栏 */}
{step === 1 && ( <>
我已接受并授权 {texts.licenseAgreement}
)} {step === 2 && ( <>
核心解压中...
)} {step === 3 && ( <>
)}
); }