RoyLee1224 commented on code in PR #52649: URL: https://github.com/apache/airflow/pull/52649#discussion_r2294301347
########## airflow-core/src/airflow/ui/src/context/colorMode/useColorMode.tsx: ########## @@ -19,14 +19,11 @@ import { useTheme } from "next-themes"; export const useColorMode = () => { - const { resolvedTheme, setTheme } = useTheme(); - const toggleColorMode = () => { - setTheme(resolvedTheme === "light" ? "dark" : "light"); - }; Review Comment: Instead of toggling between only light/dark, we now use `setTheme` directly to set any of the three theme(light/dark/system) options. And I've updated the plugin template's `useColorMode.tsx` to match the core UI version. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org