Skip to content

Adapt hide icon (invisible eye) to style of other icons#2731

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
stephan-senkbeil:feat-improve-invisible-eye
Jun 30, 2023
Merged

Adapt hide icon (invisible eye) to style of other icons#2731
j9ac9k merged 1 commit intopyqtgraph:masterfrom
stephan-senkbeil:feat-improve-invisible-eye

Conversation

@stephan-senkbeil
Copy link
Copy Markdown
Contributor

The icon that is displayed when hiding a curve by clicking on the corresponding legend entry is out of style compared to all other icons used.

This PR updates this icon to reflect the style of the other icons in icons.svg.
I used the eye of the old icon and the background of one of the icons from icons.svg to create the new icon.

Before:
old_hide_icon

After:
new_hide_icon

@sem-geologist
Copy link
Copy Markdown
Contributor

sem-geologist commented May 29, 2023

As this is a bit different scope compared to the other pyqtgraph icons, I am not sure. Yes, I agree the changed style is similar to other already built-in buttons, but should it be like that? Is it supposed to resemble button? other icons clearly are to be seen as button, but this - is it or should it be? For me it looks that it is only to hint the visibility state of QtGraphicsItem, or of the curve or pyqtgraph "DatasetItem"

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Jun 30, 2023

@stephan-senkbeil Thanks for the PR, sorry it took so long for a maintainer to respond While I'm not completely sold on this icon being right, we don't have a particularly consistent style here; and this PR is certainly an improvement, so I'm going to merge.

That said, if someone has experience in this area, and wants to contribute a set of icons that are easily accessible in pyqtgraph, please reach out; either by creating an issue or contacting me via one of the methods in my github user profile.

@j9ac9k j9ac9k merged commit 459052d into pyqtgraph:master Jun 30, 2023
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.

3 participants