feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等

This commit is contained in:
zhanjunhao
2026-11-10 17:27:36 +08:00
parent 5463a0c772
commit ed9820e6a6
195 changed files with 3546 additions and 1984 deletions
@@ -17,6 +17,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import {
Wallet as ActionWallet,
RotateCcw as ActionRotateCcw,
ChevronDown as ActionChevronDown,
ChevronUp as ActionChevronUp,
History as ActionHistory,
Settings as ActionSettings,
} from '@/components/common/icons/ActionIcons';
import React, { useEffect, useRef, useState } from 'react';
import {
Button,
@@ -31,17 +39,11 @@ import {
Typography,
} from '@/components/ui';
import {
ChevronDown,
ChevronUp,
Command,
History as HistoryIcon,
Image as ImageIcon,
Lock,
RotateCcw,
Settings,
Sparkles,
Type,
Wallet,
} from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
@@ -364,7 +366,7 @@ const ImageGenerationForm = ({ creation }) => {
theme='solid'
size='large'
block
icon={<Wallet size={16} />}
icon={<ActionWallet size={16} />}
onClick={() => navigate('/console/topup')}
className='!rounded-2xl'
style={{ height: '48px', fontSize: '15px', fontWeight: 700 }}
@@ -569,7 +571,7 @@ const ImageGenerationForm = ({ creation }) => {
<div className='flex items-center gap-1'>
{!formBodyHidden && (
<Button
icon={<RotateCcw size={12} />}
icon={<ActionRotateCcw size={12} />}
size='small'
theme='borderless'
onClick={handleReset}
@@ -582,9 +584,9 @@ const ImageGenerationForm = ({ creation }) => {
<Button
icon={
mobileCollapsed ? (
<ChevronDown size={14} />
<ActionChevronDown size={14} />
) : (
<ChevronUp size={14} />
<ActionChevronUp size={14} />
)
}
size='small'
@@ -655,11 +657,16 @@ const ImageGenerationForm = ({ creation }) => {
onClick={handleOptimizePrompt}
aria-label={t('AI 优化提示词')}
className={[
'flex items-center gap-1 text-[10px] transition-colors',
optimizing
? 'text-brand-from'
: 'text-gray-400 hover:text-brand-deep dark:hover:text-brand-from',
].join(' ')}
'app-action-button',
[
'flex items-center gap-1 text-[10px] transition-colors',
optimizing
? 'text-brand-from'
: 'text-gray-400 hover:text-brand-deep dark:hover:text-brand-from',
].join(' '),
]
.filter(Boolean)
.join(' ')}
title={
textModels?.length
? t('AI 优化提示词 (使用 {{m}})', {
@@ -701,9 +708,9 @@ const ImageGenerationForm = ({ creation }) => {
>
<button
type='button'
className='flex items-center gap-1 text-[10px] text-gray-400 hover:text-brand-deep dark:hover:text-brand-from transition-colors'
className='app-action-button flex items-center gap-1 text-[10px] text-gray-400 hover:text-brand-deep dark:hover:text-brand-from transition-colors'
>
<HistoryIcon size={10} />
<ActionHistory size={10} />
<span>{t('历史')}</span>
</button>
</Dropdown>
@@ -819,14 +826,14 @@ const ImageGenerationForm = ({ creation }) => {
type='button'
onClick={() => setShowAdvanced(!showAdvanced)}
aria-expanded={showAdvanced}
className='flex items-center gap-1.5 text-xs text-gray-500 dark:text-gray-400 hover:text-brand-deep dark:hover:text-brand-from transition-colors'
className='app-action-button flex items-center gap-1.5 text-xs text-gray-500 dark:text-gray-400 hover:text-brand-deep dark:hover:text-brand-from transition-colors'
>
<Settings size={12} />
<ActionSettings size={12} />
<span>{t('高级选项')}</span>
{showAdvanced ? (
<ChevronUp size={12} />
<ActionChevronUp size={12} />
) : (
<ChevronDown size={12} />
<ActionChevronDown size={12} />
)}
</button>
<Collapsible isOpen={showAdvanced} keepDOM>