* feat: 系统托盘 1. 添加系统托盘 2. 托盘添加切换供应商功能 3. 整理组件目录 * feat: 优化系统托盘菜单结构 - 扁平化Claude和Codex的菜单结构,直接将所有供应商添加到主菜单,简化用户交互。 - 添加无供应商时的提示信息,提升用户体验。 - 更新分隔符文本以增强可读性。 * feat: integrate Tailwind CSS and Lucide icons - Added Tailwind CSS for styling and layout improvements. - Integrated Lucide icons for enhanced UI elements. - Updated project structure by removing unused CSS files and components. - Refactored configuration files to support new styling and component structure. - Introduced new components for managing providers with improved UI interactions. * fix: 修复类型声明和分隔符实现问题 - 修复 updateTrayMenu 返回类型不一致(Promise<void> -> Promise<boolean>) - 添加缺失的 UnlistenFn 类型导入 - 使用 MenuBuilder.separator() 替代文本分隔符 --------- Co-authored-by: farion1231 <farion1231@gmail.c
90 lines
1.9 KiB
CSS
90 lines
1.9 KiB
CSS
@import "tailwindcss";
|
|
|
|
/* Linear 风格的全局配色和基础样式 */
|
|
:root {
|
|
/* Linear 配色方案 */
|
|
--color-bg-primary: #fafafa;
|
|
--color-bg-secondary: #ffffff;
|
|
--color-bg-tertiary: #f4f4f5;
|
|
--color-border: #e4e4e7;
|
|
--color-border-hover: #d4d4d8;
|
|
|
|
/* 蓝色主色调 */
|
|
--color-primary: #3498db;
|
|
--color-primary-hover: #2980b9;
|
|
--color-primary-light: #5dade2;
|
|
|
|
/* 文本颜色 */
|
|
--color-text-primary: #18181b;
|
|
--color-text-secondary: #71717a;
|
|
--color-text-tertiary: #a1a1aa;
|
|
|
|
/* 状态颜色 */
|
|
--color-success: #10b981;
|
|
--color-success-light: #d1fae5;
|
|
--color-error: #ef4444;
|
|
--color-error-light: #fee2e2;
|
|
--color-warning: #f59e0b;
|
|
--color-warning-light: #fef3c7;
|
|
|
|
/* 阴影 */
|
|
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
--shadow-lg:
|
|
0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
|
|
/* 圆角 */
|
|
--radius-sm: 0.375rem;
|
|
--radius-md: 0.5rem;
|
|
--radius-lg: 0.75rem;
|
|
|
|
/* 字体 */
|
|
--font-family:
|
|
-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue",
|
|
Arial, sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-family: var(--font-family);
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: var(--color-bg-primary);
|
|
color: var(--color-text-primary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* 滚动条样式 */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--color-bg-tertiary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--color-border-hover);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--color-text-tertiary);
|
|
}
|
|
|
|
/* 焦点样式 */
|
|
*:focus-visible {
|
|
outline: 2px solid var(--color-primary);
|
|
outline-offset: 2px;
|
|
}
|