Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

[UI] Charts: New white theme and small improvements #4368

Merged
merged 1 commit into from Oct 4, 2017

Conversation

hreichert
Copy link
Contributor

@hreichert hreichert commented Oct 2, 2017

Add new white chart theme and some small improvements.

Follow-up to #4291

New chart theme white

Currently there are 3 chart themes: bright, dark, black
This PR completes the list with a new white theme, so that the following themes are available:

  • white ↔️ black
  • bright ↔️ dark

Rendering with theme=white:
chart_white

Better DPI based calculations

With high resolutions and high DPI values, the padding and the legend line widths were not calculated correctly. This resulted in chopped off and/or overlapping axis labels. The calculation is now based on the DPI value.

Revised chart stroking options

With high DPI values, the chart strokes looked a bit ugly. Fixed with better parameters for the BasicStroke

Before:
chart_stroke_1

After:
chart_stroke_2

* New chart theme `white`
* Better DPI based calculations for chart padding and legend line width
* Revised chart stroking options

Signed-off-by: Holger Reichert <mail@h0lger.de>
@hreichert
Copy link
Contributor Author

Well, build is failing due to unrelated test failures

Copy link
Contributor

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have relaunched Travis...

@kaikreuzer kaikreuzer added the UI label Oct 3, 2017
@hreichert
Copy link
Contributor Author

Now hue tests are failing. Should I rebase or something?

@sjsf sjsf merged commit 918eddf into eclipse-archived:master Oct 4, 2017
@sjsf
Copy link
Contributor

sjsf commented Oct 4, 2017

All good, thanks!

@hreichert hreichert deleted the chart-theme-white branch October 4, 2017 16:02
@kaikreuzer kaikreuzer added this to the 0.9.0 milestone Nov 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants