diff --git a/src/components/AppSwitcher.tsx b/src/components/AppSwitcher.tsx index 60bd4fc..e78c8e9 100644 --- a/src/components/AppSwitcher.tsx +++ b/src/components/AppSwitcher.tsx @@ -13,14 +13,14 @@ export function AppSwitcher({ activeApp, onSwitch }: AppSwitcherProps) { }; return ( -
+
@@ -52,16 +52,16 @@ export const ConfirmDialog: React.FC = ({ {/* Content */}
-

+

{message}

{/* Actions */} -
+
@@ -96,7 +96,7 @@ const ProviderList: React.FC = ({
-

+

{provider.name}

{isCurrent && ( @@ -114,14 +114,14 @@ const ProviderList: React.FC = ({ e.preventDefault(); handleUrlClick(provider.websiteUrl!); }} - className="inline-flex items-center gap-1 text-blue-500 hover:opacity-90 transition-colors" + className="inline-flex items-center gap-1 text-blue-500 dark:text-blue-400 hover:opacity-90 transition-colors" title={`访问 ${provider.websiteUrl}`} > {provider.websiteUrl} ) : ( {apiUrl} @@ -137,8 +137,8 @@ const ProviderList: React.FC = ({ className={cn( "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-md transition-colors", isCurrent - ? "bg-gray-100 text-gray-400 cursor-not-allowed" - : "bg-blue-500 text-white hover:bg-blue-600" + ? "bg-gray-100 text-gray-400 dark:bg-gray-800 dark:text-gray-500 cursor-not-allowed" + : "bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700" )} > @@ -160,7 +160,7 @@ const ProviderList: React.FC = ({ buttonStyles.icon, isCurrent ? "text-gray-400 cursor-not-allowed" - : "text-gray-500 hover:text-red-500 hover:bg-red-100" + : "text-gray-500 hover:text-red-500 hover:bg-red-100 dark:text-gray-400 dark:hover:text-red-400 dark:hover:bg-red-500/10" )} title="删除供应商" > diff --git a/src/index.css b/src/index.css index 08186b1..f49d0d2 100644 --- a/src/index.css +++ b/src/index.css @@ -12,12 +12,17 @@ html { @apply font-sans antialiased; line-height: 1.5; + /* 让原生控件与滚动条随主题切换配色 */ + color-scheme: light; } body { @apply m-0 p-0 bg-gray-50 text-gray-900 text-sm dark:bg-gray-950 dark:text-gray-100; } +/* 暗色模式下启用暗色原生控件/滚动条配色 */ +html.dark { color-scheme: dark; } + /* 滚动条样式 */ ::-webkit-scrollbar { @apply w-1.5 h-1.5;