代码修改
This commit is contained in:
1 parent
91ba47bf47
commit
25153dbd84
31 files changed
+536
-62
No files matched your search
@@ -29,7 +29,9 @@ export default function LightAppIframeView() {
|
||||
? "blue"
|
||||
: theme === "iceblue"
|
||||
? "iceblue"
|
||||
: "red";
|
||||
: theme === "lightyellow"
|
||||
? "lightyellow"
|
||||
: "red";
|
||||
const src = useMemo(
|
||||
() => (app ? buildLightAppUrl(app, undefined, themeColor) : ""),
|
||||
[app, themeColor],
|
||||
|
||||
@@ -98,6 +98,17 @@ function getLightAccent(theme: ThemeType) {
|
||||
button: "bg-[#9BCEF1] text-[#18324A] shadow-[0_1px_3px_rgba(155,206,241,0.42)] hover:bg-[#B7DCF5]",
|
||||
};
|
||||
}
|
||||
if (theme === "lightyellow") {
|
||||
return {
|
||||
dot: "bg-[#F3FBD9]",
|
||||
badge: "border-[#4C6330]/15 bg-[#EEF6D4] text-[#4C6330]",
|
||||
focus: "focus:border-[#4C6330]/60 focus:ring-[#F3FBD9]/40",
|
||||
text: "text-[#4C6330]",
|
||||
hoverText: "group-hover:text-[#4C6330]",
|
||||
link: "text-[#4C6330] hover:text-[#34451F]",
|
||||
button: "bg-[#F3FBD9] text-[#303D23] shadow-[0_1px_3px_rgba(243,251,217,0.72)] hover:bg-[#E4EFBF]",
|
||||
};
|
||||
}
|
||||
return {
|
||||
dot: "bg-[#CF1322]",
|
||||
badge: "border-[#CF1322]/15 bg-[#FFF1F0] text-[#CF1322]",
|
||||
|
||||
@@ -11,6 +11,7 @@ export default function LightAppNoteQAPage() {
|
||||
const isDark = theme === "dark";
|
||||
const isLightBlue = theme === 'lightblue' || theme === 'iceblue';
|
||||
const isLightGreen = theme === "lightgreen";
|
||||
const isLightYellow = theme === "lightyellow";
|
||||
const [question, setQuestion] = useState("");
|
||||
|
||||
const handleSubmit = () => {
|
||||
@@ -31,7 +32,9 @@ export default function LightAppNoteQAPage() {
|
||||
style={{
|
||||
background: isDark
|
||||
? "radial-gradient(ellipse 60% 50% at 50% 46%, rgba(59,130,246,0.10) 0%, rgba(139,92,246,0.06) 50%, transparent 70%)"
|
||||
: "radial-gradient(ellipse 60% 50% at 50% 46%, rgba(147,197,253,0.38) 0%, rgba(165,180,252,0.18) 50%, transparent 70%)",
|
||||
: isLightYellow
|
||||
? "radial-gradient(ellipse 60% 50% at 50% 46%, rgba(243,251,217,0.7) 0%, rgba(220,235,173,0.26) 50%, transparent 70%)"
|
||||
: "radial-gradient(ellipse 60% 50% at 50% 46%, rgba(147,197,253,0.38) 0%, rgba(165,180,252,0.18) 50%, transparent 70%)",
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -43,7 +46,11 @@ export default function LightAppNoteQAPage() {
|
||||
<div
|
||||
className={cn(
|
||||
"flex h-12 w-10 shrink-0 items-center justify-center rounded shadow-sm",
|
||||
isDark ? "bg-violet-400 text-slate-950" : "bg-[#4d3f74] text-white",
|
||||
isDark
|
||||
? "bg-violet-400 text-slate-950"
|
||||
: isLightYellow
|
||||
? "bg-[#4C6330] text-white"
|
||||
: "bg-[#4d3f74] text-white",
|
||||
)}
|
||||
>
|
||||
<BookOpen className="h-6 w-6" />
|
||||
@@ -66,7 +73,9 @@ export default function LightAppNoteQAPage() {
|
||||
"flex items-center gap-1.5 rounded-full px-4 py-1 text-sm font-medium transition-colors",
|
||||
isDark
|
||||
? "bg-sky-500/20 text-sky-300 hover:bg-sky-500/30"
|
||||
: "bg-sky-100 text-sky-600 hover:bg-sky-200",
|
||||
: isLightYellow
|
||||
? "bg-[#EEF6D4] text-[#4C6330] hover:bg-[#E4EFBF]"
|
||||
: "bg-sky-100 text-sky-600 hover:bg-sky-200",
|
||||
)}
|
||||
>
|
||||
<Plus className="h-3.5 w-3.5" />
|
||||
@@ -115,6 +124,8 @@ export default function LightAppNoteQAPage() {
|
||||
? "bg-sky-500 text-white hover:bg-sky-400"
|
||||
: isLightGreen
|
||||
? "bg-[#07C05F] text-white hover:bg-[#08DD6E]"
|
||||
: isLightYellow
|
||||
? "bg-[#F3FBD9] text-[#303D23] hover:bg-[#E4EFBF]"
|
||||
: isLightBlue
|
||||
? "bg-[#0062D9] text-white hover:bg-[#0079FE]"
|
||||
: "bg-[#F5222D] text-white hover:bg-[#CF1322]",
|
||||
|
||||
@@ -4,7 +4,7 @@ import AIWritingPage from '@/open-canvas/pages/AIWritingPage';
|
||||
import { getNotebookApiBaseURL } from '@/core/config';
|
||||
import { useTheme, type ThemeType } from '@/contexts/ThemeContext';
|
||||
|
||||
const VALID_THEMES: ThemeType[] = ['dark', 'light', 'lightblue', 'lightgreen', 'iceblue'];
|
||||
const VALID_THEMES: ThemeType[] = ['dark', 'light', 'lightblue', 'lightgreen', 'iceblue', 'lightyellow'];
|
||||
|
||||
interface NotebookTokenData {
|
||||
doc_ids: number[];
|
||||
|
||||
@@ -793,7 +793,7 @@ export default function ScheduledTasksPage({
|
||||
</Button>
|
||||
<Button
|
||||
size="icon"
|
||||
variant="destructive"
|
||||
variant={theme === "iceblue" || theme === "lightyellow" ? "default" : "destructive"}
|
||||
title="删除"
|
||||
onClick={(event) => {
|
||||
event.stopPropagation();
|
||||
@@ -1034,7 +1034,7 @@ export default function ScheduledTasksPage({
|
||||
{selectedTaskCanEditRuns && run.can_edit !== false && (
|
||||
<Button
|
||||
size="sm"
|
||||
variant="destructive"
|
||||
variant={theme === "iceblue" || theme === "lightyellow" ? "default" : "destructive"}
|
||||
onClick={() => handleDeleteRun(run.id)}
|
||||
>
|
||||
<Trash2 className="size-4" />
|
||||
|
||||
@@ -742,6 +742,58 @@
|
||||
color: #2D587A;
|
||||
}
|
||||
|
||||
/* Pale yellow: #F3FBD9 surfaces pair with dark olive interaction text. */
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-primary-btn,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-dialog-save,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-switch-on {
|
||||
background-color: #F3FBD9;
|
||||
}
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-primary-btn,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-dialog-save {
|
||||
color: #303D23;
|
||||
box-shadow: 0 2px 6px rgba(243, 251, 217, 0.72);
|
||||
}
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-primary-btn:hover,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-dialog-save:hover {
|
||||
background-color: #E4EFBF;
|
||||
}
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-primary-btn:active,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-dialog-save:active {
|
||||
background-color: #DCEBAD;
|
||||
}
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-search-input:focus {
|
||||
border-color: rgba(76, 99, 48, 0.5);
|
||||
box-shadow: 0 0 0 4px rgba(243, 251, 217, 0.72);
|
||||
}
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-view-toggle-btn.is-active,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-cat-toggle-btn.is-active,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-count strong,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-table tr:hover .lam-row-name,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-param-popover-close,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-param-key,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-card:hover .lam-card-title,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-dialog-close:hover,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-add-param-btn:hover {
|
||||
color: #4C6330;
|
||||
}
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-add-param-btn:hover,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-input:focus,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-dialog input[type="text"]:focus {
|
||||
border-color: #B4C985;
|
||||
}
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-input:focus,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-dialog input[type="text"]:focus,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-dialog [data-slot="input"]:focus-visible,
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-dialog textarea:focus-visible,
|
||||
[data-theme="lightyellow"] .light-app-management-page .t-select.t-is-focused .t-input,
|
||||
[data-theme="lightyellow"] .light-app-management-page .t-select.t-is-focused .t-input__wrap {
|
||||
box-shadow: 0 0 0 2px rgba(243, 251, 217, 0.78);
|
||||
}
|
||||
[data-theme="lightyellow"] .light-app-management-page .lam-dialog-icon {
|
||||
background-color: #EEF6D4;
|
||||
color: #4C6330;
|
||||
}
|
||||
|
||||
/* WeKnora green theme. */
|
||||
[data-theme="lightgreen"] .light-app-management-page .lam-primary-btn,
|
||||
[data-theme="lightgreen"] .light-app-management-page .lam-dialog-save,
|
||||
|
||||
@@ -12,6 +12,11 @@
|
||||
background-color: #F9FDF9;
|
||||
}
|
||||
|
||||
[data-theme="lightyellow"] .light-app-management-page,
|
||||
[data-theme="lightyellow"] .light-app-list-page {
|
||||
background-color: #FCFDF5;
|
||||
}
|
||||
|
||||
.dark .light-app-management-page,
|
||||
.dark .light-app-list-page {
|
||||
background-color: var(--color-bg-page);
|
||||
|
||||
Reference in new issue
Block a user