-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: dark mode logo now shows when specified #6077
Conversation
@@ -80,7 +80,7 @@ module.exports = (env, argv) => { | |||
RETICULUM_SERVER: "hubs.local:4000", | |||
POSTGREST_SERVER: "", | |||
ITA_SERVER: "turkey", | |||
TIER: "p0" | |||
TIER: "p1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is my own curiosity why do we need this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Especially with the incoming work around theme customization, we use the admin panel theme tab a lot more now. It made sense to me to update this rather than manually do it each time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah cool!
src/react-components/styles/theme.js
Outdated
@@ -57,7 +57,7 @@ export function useTheme(themeId) { | |||
|
|||
function getAppLogo(darkMode) { | |||
const theme = getCurrentTheme(); | |||
const shouldUseDarkLogo = theme ? theme.darkModeDefault : darkMode; | |||
const shouldUseDarkLogo = theme ? (theme.darkModeDefault || theme.id.includes("dark-mode")) : darkMode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea I agree with your comment - would be good to have one source of truth for if it is dark mode or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
NOTE: I'm not sure I agree with the darkModeDefault property - when we tidy up custom theming, I'll look into alternatives.