Skip to content

fix(settings): add visible background to log file path display#650

Merged
XingYu-Zhong merged 1 commit into
KunAgent:developfrom
musnows:codex/fix-settings-log-path-style
Jun 30, 2026
Merged

fix(settings): add visible background to log file path display#650
XingYu-Zhong merged 1 commit into
KunAgent:developfrom
musnows:codex/fix-settings-log-path-style

Conversation

@musnows

@musnows musnows commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

通用设置里「日志文件路径」的文字显示不好看:底色 bg-ds-main/70 实际等于应用背景色 var(--bg-app),70% 透明度后几乎与卡片背景融为一体,底色看不出来;文字又是偏淡的 text-ds-muted,整体缺乏层次。

Changes

  • src/renderer/src/components/settings-section-general.tsx:调整日志路径 <code> 的 className,参考设置页其他路径/代码块显示(worktree pool dir、write inline completion debug log):
    • 加边框 border border-ds-border-muted,让底色区域有清晰边界
    • 文字颜色 text-ds-mutedtext-ds-ink,更深更清晰
    • 去掉 shadow-sm,统一用边框界定区域
    • 底色透明度 /70/60,与 worktree 风格协调

Tests

  • 仅 className 字符串调整,无逻辑/类型变化
  • 本地 vitest 因依赖未安装无法运行(环境基线问题,与本次改动无关)
  • 视觉验证:日志路径现在带明显边框 + 底色区域,与设置页其他路径显示风格一致

@XingYu-Zhong XingYu-Zhong left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed locally; no blocking issues found.

@XingYu-Zhong XingYu-Zhong merged commit e6aee4b into KunAgent:develop Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants