Skip to content
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

feat: brush Plot options #313

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Sciator
Copy link
Contributor

@Sciator Sciator commented Oct 13, 2020

Problem

Brush tool (rectangle showed when drag/zooming) is not visible on some backgrounds (white, etc.) - as seen on second image.

Proposed Changes

User can config drag color and opacity.

On black background - Default option (aliceblue, opacity: 0.1):
image

On white background - Default option (aliceblue, opacity: 0.1):
image

On white background - user option (#003b6f, opacity: 0,2):
image

Checklist

  • Rebased/mergeable
  • Tested
  • Commit messages are in semantic format
  • Sign CLA (if not already signed)

@Sciator Sciator marked this pull request as ready for review October 13, 2020 08:54
@alexpaxton
Copy link
Contributor

alexpaxton commented Oct 14, 2020

For the drag area on white background, can we use G12 Forge at 34% opacity?

https://influxdata.github.io/clockface/?path=/story/data-types-shared--colors-gradients

image

@Sciator
Copy link
Contributor Author

Sciator commented Oct 15, 2020

There's no currently concept of dark/light theme in brush. I added only user option for setting brush/opacity to any value.
I'm following theming style of gauge theme (all values are settable and GAUGE_THEME_LIGHT is provided as constant set of this values).
So should I add constants BRUSH_THEME_(LIGHT/DARK)?

@alexpaxton
Copy link
Contributor

@therwe ah yeah that's a great idea. BRUSH_THEME_LIGHT/DARK sounds perfect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants