添加配置文件浏览选择功能

- 在主进程添加文件选择对话框,支持选择 settings.json 配置文件
- 更新类型定义和预加载脚本,添加 selectConfigFile API
- 在界面底部配置路径区域添加"浏览"按钮
- 优化样式布局,使配置路径和浏览按钮水平排列
- 修复 React 导入警告,移除未使用的 React 导入
This commit is contained in:
farion1231
2025-08-05 20:30:18 +08:00
parent c74069ba57
commit 3df40def1e
5 changed files with 59 additions and 4 deletions

View File

@@ -69,4 +69,23 @@
border-radius: 4px;
font-size: 0.9rem;
color: #7f8c8d;
display: flex;
justify-content: space-between;
align-items: center;
}
.browse-btn {
padding: 0.5rem 1rem;
border: none;
border-radius: 4px;
background: #3498db;
color: white;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.2s;
margin-left: 1rem;
}
.browse-btn:hover {
background: #2980b9;
}