Files
agent-desktop/console/src/components/ThemeToggleButton/index.module.less
T
Pine 6a87496a4b fix: 统一桌面端登录与 token 管理逻辑,修复模型列表 401
- PineAgents provider base_url 改为动态使用 DEMO_API_BASE_URL(远程服务器)
- list_provider_info 支持从请求头透传 console 端 JWT,优先用于 /v1/models
- forward/forward_upload 未显式传 auth_header 时自动使用本地持久化 token
- auth_token_store 添加日志,便于排查 token 保存/加载问题
- fetch_models 超时增加到 15s,添加获取结果日志
2026-09-02 18:18:55 +08:00

87 lines
1.9 KiB
Plaintext

/* ---- Theme toggle button ---- */
.toggleBtn {
display: inline-flex;
align-items: center;
justify-content: center;
height: 32px;
border: none;
border-radius: 8px;
background: transparent;
cursor: pointer;
transition:
background 0.15s ease,
color 0.15s ease;
color: rgba(0, 0, 0, 0.65);
padding: 0;
flex-shrink: 0;
font-size: 24px;
&:hover {
background: rgba(97, 92, 237, 0.08);
color: var(--color-primary);
}
}
/* ---- Theme Dropdown ---- */
.themeDropdown {
:global {
.qwenpaw-dropdown-menu-item,
.ant-dropdown-menu-item {
color: rgba(26, 23, 22, 0.65);
&:hover {
background: rgba(43, 18, 0, 0.06) !important;
}
}
.qwenpaw-dropdown-menu-item-selected,
.ant-dropdown-menu-item-selected {
background: rgba(43, 18, 0, 0.03) !important;
color: rgba(26, 23, 22, 0.88) !important;
}
}
}
/* Dark mode overrides */
:global(.dark-mode) {
.toggleBtn {
color: rgba(255, 255, 255, 0.65);
&:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
}
.themeDropdown {
border: 1px solid rgba(255, 255, 255, 0.1) !important;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
border-radius: 8px;
overflow: hidden;
:global {
.qwenpaw-dropdown-menu,
.ant-dropdown-menu {
background: var(--color-surface-strong) !important;
border: none !important;
box-shadow: none !important;
}
.qwenpaw-dropdown-menu-item,
.ant-dropdown-menu-item {
color: rgba(255, 255, 255, 0.65);
&:hover {
background: rgba(255, 255, 255, 0.08) !important;
}
}
.qwenpaw-dropdown-menu-item-selected,
.ant-dropdown-menu-item-selected {
background: rgba(255, 255, 255, 0.06) !important;
color: rgba(255, 255, 255, 0.88) !important;
}
}
}
}