-
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
Dark theme #4702
Dark theme #4702
Conversation
Conflicts: src/plugins/kibana/public/kibana.js src/ui/public/config/defaults.js
👍 thank you for your effort. this needs to happen. |
Really well done! A couple of comments:
|
@tbragin we did explore theming everything, the solution was going to be pretty intense to implement and we decided that it was probably smarter to wait until we are ready to do a UX/UI deep-dive. |
@spalger If our intent is to only darken the Dashboard, let's make it clear in Settings. Right now it says:
When I changed the setting from "bright" to "dark", I expected my UI to flip to dark. It didn't happen, so I thought something was broken. By luck I eventually clicked to Dashboard and saw that it was dark, but I was about to file a bug otherwise. Also, can we call the themes "light" and "dark", as we did in Kibana 3? I'm not sure what "bright" is - I would expect it to be hot-pink ;) cc: @alt74 |
Hahaha, I totally agree. The config description should definitely be updated. |
I'd prefer to add a toggle on the dashboard and save this on a per-dashboard basis. The global setting could be treated as a default, but this needs to be toggle-able adhoc |
Few other comments:
|
dash: function (savedDashboards, config) { | ||
return savedDashboards.get() | ||
.then(function (dash) { | ||
dash.darkTheme = !!config.get('dashboard:defaultDarkTheme'); |
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 should probably be implemented in the See #4702 (comment), this should probably be removedsavedDashboards
service, or specifically in the SavedDashboard
constructor
f4da987
to
9f5d454
Compare
Looks great! We just walked through the entire set up. great job @BigFunger I wish we could change the timeline drawer background from white to dark as well. Maybe next release :) @rashidkpc |
LGTM! Very nice work, @BigFunger |
jenkins, test this |
@alt74 Please see the above screenshots and advise on colors. Thanks! |
|
Applied what changes that I could out of those specified. The result is below. I can't do anything to elements that are outside of the 'application' node with the functionality as it stands now. |
After discussion with @alt74 |
After discussion with @rashidkpc |
🎊 🎊 🎊 🎊 🎊 |
Hello, This is just what I am looking for, without sounding silly how do I apply this? Cheers |
@petegriggs Check the "Dashboard" section in the docs: |
Is it possible to cherry pick this in Kibana 4.1.3 i can't update Kibana because of the ES version. I'm using AWS ES service. |
I was about to make exactly the same request as it's going to take us a while to migrate our ES to 2. Is it "backportable" to 4.1 in some way (even if it means a bit of a hack)? |
@ltagliamonte @davison I just did a quick check and it looks like 104 files are conflicting. If you would like to take a stab at backporting the changes though you can get started with: # checkout the kibana source repo somewhere
git checkout git@github.com:elastic/kibana.git
cd kibana
curl https://patch-diff.githubusercontent.com/raw/elastic/kibana/pull/4702.patch | git apply edit: added a bit about checking out the repo, if you don't have Kibana setup for development you probably want to check out the dev environment setup guide |
Implements the dark theme
Fixes #2906
Notes: This is a first attempt at the dark theme. I think that the implementation of the theme itself may be a bit heavy handed, as it duplicates a lot of existing css/less. Also, the color decisions are my first attempt and should be easy enough to tweak.