loi he thong

This commit is contained in:
quangdn-ght
2025-07-01 16:50:18 +07:00
parent 4ec717f94a
commit 972f957633
12 changed files with 154 additions and 18 deletions

View File

@@ -515,6 +515,7 @@ export function ChatActions(props: {
function nextTheme() {
//, Theme.Dark
const themes = [Theme.Auto, Theme.Light];
const themeIndex = themes.indexOf(theme);
const nextIndex = (themeIndex + 1) % themes.length;

View File

@@ -90,11 +90,13 @@ export function useSwitchTheme() {
document.body.classList.remove("light");
document.body.classList.remove("dark");
if (config.theme === "dark") {
document.body.classList.add("dark");
} else if (config.theme === "light") {
document.body.classList.add("light");
}
// if (config.theme === "dark") {
// document.body.classList.add("dark");
// } else if (config.theme === "light") {
// document.body.classList.add("light");
// }
document.body.classList.add("light");
const metaDescriptionDark = document.querySelector(
'meta[name="theme-color"][media*="dark"]',

View File

@@ -310,6 +310,7 @@ export function SideBar(props: { className?: string }) {
}),
]}
onClose={() => setshowDiscoverySelector(false)}
// dong bo du lieu voi cloud
onSelection={async (s) => {
console.log(s[0]);
if (s[0] == "/sync") {