-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
systemd: improve graphs layout and color #10282
systemd: improve graphs layout and color #10282
Conversation
Currently depends on #10101 |
TODO
|
On IRC, @Gundersanne mentioned opacity probably being related to color in |
7d81cd6
to
df46dbd
Compare
Thanks for the screenshot! I need to select new colors for the CPU chart. I think I rounded existing ones into PatternFly equivalents... but in the CSS only. I'll need to modify the JS too. It is probably worth figuring out different colors that work well with all forms of colorblindness too. (I hand-picked PF colors for the memory mockups specifically for this. Perhaps I should re-use those for this?) |
df46dbd
to
eaf2e28
Compare
@garrett Just pushed the fill changes (and added a closes). Feel free to change the colours still. |
0d52ab0
to
32c3ee4
Compare
32c3ee4
to
14e0702
Compare
@Gundersanne: Thanks! Oh, odd. I see the horizontal & vertical lines in the details graph here — but I'm not using the patched version of Cockpit (can't get it to compile no matter what today), so the memory reporting is quite a bit off. However, graphs in overview don't show the lines here: I wonder if there's some CSS we can apply to ensure that lines are above the graph. Probably z-index related. |
Ah, the flot sandwich doesn't have a separate layer for the grid lines, just for the text and an invisible "overlay" layer (which I wrongly assumed was the lines). All the chart magic happens in Oddly, it works as expected on my machine in the memory & CPU overview. |
This should go into the same release as @Gundersanne's original rework, so marking priority. |
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.
Looks good to me, but should we squash these commits?
@Gundersanne yeah, these commits should be squashed before / during merging — they're all related to improving the color & layout of the graphs |
14e0702
to
e03aaba
Compare
Squashed & rebased. |
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
Tests were green enough before the rebase, I'll merge this. |
Would it be possible to allow users to set custom colours? |
No description provided.