feat: support ".login-panel-dark" CSS for signup/login pages (#3269)

* feat: add custom dark mode CSS for login and registration forms.

* refactor: extract dark theme check to Setting.js
This commit is contained in:
千石
2024-10-13 22:31:54 +08:00
committed by GitHub
parent 3211bcc777
commit fc864b0de4
4 changed files with 14 additions and 4 deletions

View File

@ -1557,3 +1557,7 @@ export function getCurrencyText(product) {
return "(Unknown currency)";
}
}
export function isDarkTheme(themeAlgorithm) {
return themeAlgorithm && themeAlgorithm.includes("dark");
}