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

Update experiment table icons to use --vscode-descriptionForeground and use --vscode-editorLightBulb-foreground for selected stars #2604

Merged
merged 6 commits into from
Oct 17, 2022

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Oct 16, 2022

Screenshot

Screen Shot 2022-10-18 at 8 46 38 am (2)

See inline comments for discussion.

@mattseddon mattseddon added the product PR that affects product label Oct 16, 2022
@mattseddon mattseddon self-assigned this Oct 16, 2022
@mattseddon mattseddon marked this pull request as ready for review October 16, 2022 21:46
@mattseddon mattseddon requested a review from shcheklein October 16, 2022 21:46
demo/dvc.lock Outdated Show resolved Hide resolved
@@ -101,7 +101,7 @@ $bullet-size: calc(var(--design-unit) * 4px);
background: $checkbox-background;
border-radius: $bullet-size;
border: calc(var(--border-width) * 1px) solid $checkbox-border;
color: $fg-color;
color: $row-action-icon-color;
Copy link
Member

Choose a reason for hiding this comment

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

Q: what does this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

The color of the bullets for unselected experiments. Makes them match unselected experiments in the experiments tree.

Copy link
Member

Choose a reason for hiding this comment

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

okay, I see. Could you do the recording across all themes please?

To me it felt okay for them to "blend" with checkboxes in the table tbh.

Copy link
Member

Choose a reason for hiding this comment

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

btw, does it apply only to the internal circle?

Copy link
Member Author

Choose a reason for hiding this comment

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

btw, does it apply only to the internal circle?

yes

Copy link
Member Author

Choose a reason for hiding this comment

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

Screen.Recording.2022-10-17.at.3.17.24.pm.mov

@@ -162,6 +162,7 @@ $bullet-size: calc(var(--design-unit) * 4px);
}

.queued {
color: $row-action-icon-color;
Copy link
Member

Choose a reason for hiding this comment

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

it's not an action though?

Also, should it be aligned with the plots action and should we use --checkbox-background?

Copy link
Member Author

Choose a reason for hiding this comment

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

The clock is an icon inside of the row action block.

If we use --checkbox-background it will be almost invisible on most themes. Example:

Screen.Recording.2022-10-17.at.2.29.13.pm.mov

This color matches this icon to the icons shown in the sidebar. I would be happy to change to $checkbox-border if we used the same color for empty stars in #2601

Copy link
Member

Choose a reason for hiding this comment

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

--vscode-descriptionForeground for action icons in the header and for action icon in #2601
--checkbox-border + --checkbox-background for bullet and checkboxes
--vscode-icon-foreground - for chevron action and now for queue icons

Both --vscode-icon-foreground and --vscode-descriptionForeground are quite stable and more or less high contrast as far as I remember. We can probably use one of those only for all icons (stars and the header and chevron). Probably I picked the --vscode-descriptionForeground for stars since it had less contrast compared to the surrounding checkboxes and bullets. Can we use it for chevron - don't know, need to try.

For queue, I still make sense to use checkboxes (the border one if background is not visible). Otherwise it'll might stand out too much from bullets and checkboxes and stars also. --vscode-icon-foreground had the highest contrast of three options as far as I remember.

Copy link
Member Author

Choose a reason for hiding this comment

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

Using --vscode-icon-color for all icons:

Screen.Recording.2022-10-17.at.3.36.30.pm.mov

Using --checkbox-border

Screen.Recording.2022-10-17.at.3.44.25.pm.mov

Copy link
Member

Choose a reason for hiding this comment

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

How about --vscode-descriptionForeground, the current one for actions in the header ? (clearly --checkbox-border is not visible enough, that's why I didn't pick if for stars).

Copy link
Member Author

Choose a reason for hiding this comment

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

The thing that bothers me is the discrepancy with the tree. We could change the circle color to match quite easily but the clock would be more difficult:

Screen.Recording.2022-10-17.at.5.12.38.pm.mov

Copy link
Member

Choose a reason for hiding this comment

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

Thanks, Matt. Look reasonable to me. Checkboxes, stars, bullets blend nicely. WDYT?

I'm less worried about the tree tbh. And to be fair, we have a very large discrepancy with the checkboxes, with the action icons, etc (those things in the table that drive us towards not using the --vscode-icon-color in the first place). We should then update those? We'll face some other issues - e.g. in some themes webview has a different background / style compared to the side panel.

Btw, on this screenshot:

Screen Shot 2022-10-17 at 9 58 40 AM

there are a few issues (I can find and fix them later on my own if it takes time) - plots icon color is wrong and chevron ideally should also have the same color as the stars / checkboxes / other icons (so that we can get rid of extra styles at least).

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, Matt. Look reasonable to me. Checkboxes, stars, bullets blend nicely. WDYT?

I keep coming back to this comment:

I think the star action itself is not as visible enough then. I admit that I like it visually more, but I think we are sacrificing usability to aesthetics in that case.

I think we should use the icon color for all the icons. We can use that horrible yellow for the star to make it more obvious when it is selected.

Copy link
Member

Choose a reason for hiding this comment

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

I think we should use the icon color for all the icons. We can use that horrible yellow for the star to make it more obvious when it is selected.

Just to clarify that I understand you correctly. so, in your green theme example - all of the object will become bright white - bullets, actions in the header, chevron, queue icons ... it feels a bit aggressive for the table to me (since it's not a small set of icons, but rather a repeating pattern per row) + checkboxes will in the complete shadow because of this.

I'm fine with the the way it looks with the --vscode-descriptionForeground . Let's proceed with this please then.

Copy link
Member Author

Choose a reason for hiding this comment

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

Have updated to this:

Screen Shot 2022-10-18 at 8 46 38 am (2)

Will update the PR description, merge this and close #2601 as this contains that change as well.

@mattseddon mattseddon changed the title Update queued icon, unselected bullet and spinner colors Update icons to use icon color Oct 17, 2022
@mattseddon mattseddon changed the title Update icons to use icon color Update experiment table icons to use icon color Oct 17, 2022
@mattseddon mattseddon changed the title Update experiment table icons to use icon color Update experiment table icons to use --vscode-descriptionForeground and use --vscode-editorLightBulb-foreground for selected stars Oct 17, 2022
@mattseddon mattseddon enabled auto-merge (squash) October 17, 2022 21:49
@mattseddon mattseddon disabled auto-merge October 17, 2022 21:49
@mattseddon mattseddon enabled auto-merge (squash) October 17, 2022 21:49
@codeclimate
Copy link

codeclimate bot commented Oct 17, 2022

Code Climate has analyzed commit 58899e1 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.8% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit 5bfcada into main Oct 17, 2022
@mattseddon mattseddon deleted the update-colors branch October 17, 2022 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR that affects product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants