-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Adding support for Dark Mode #29133
Adding support for Dark Mode #29133
Conversation
Pinging @elastic/infrastructure-ui |
this.darkMode = config.get('theme:darkMode'); | ||
} catch (e) { | ||
this.darkMode = false; | ||
} |
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 can be removed once the global dark theme PR is merged. For now, it's necessary to work with master.
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.
FYI, you can always specify a default as the second argument
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.
Oh... nice! I didn't know that would suppress the exception when the key doesn't exist.
💔 Build Failed |
retest |
💚 Build Succeeded |
💚 Build Succeeded |
@weltenwort Not at all... anything to move the product forward. |
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
💚 Build Succeeded |
* Adding support for Dark Mode * Use transparentize for suggestion icon bg color
This PR adds the required changes to support the Global Dark Mode theme that will be introduced via #28445. For the logging UI I had to use the
props.theme.darkMode
switch to pick an appropriate color for both the log line hover along with the visible colors for the minimap. The previous colors changed correctly but were not visible.Reviewers: As far as testing goes you will need to wait till #28445 is merged before you can successfully test the different themes.