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

Match webviews style to VS Code #1603

Closed
4 tasks done
mattseddon opened this issue Apr 21, 2022 · 5 comments
Closed
4 tasks done

Match webviews style to VS Code #1603

mattseddon opened this issue Apr 21, 2022 · 5 comments
Assignees
Labels
🎨 design Needs design input or is being actively worked on product PR that affects product

Comments

@mattseddon
Copy link
Member

mattseddon commented Apr 21, 2022

Tooltips

Current tooltip style:

Dark

image

Light

image

After some debate we've decided that we want them to match this style:

Dark (default)

image

Light (default)

image

Dark (custom)

Notice the difference when a custom theme is applied:

image

Hopefully, we can rely on built-in --vscode- css colors . The list of theme colors is here.

Corners

VS Code uses straight corners 99% of the time.

Figma file

Whenever we have control over the corners of a component we should make them straight. Examples where we currently have rounded corners are:

  1. Tooltips
  2. Plots

Custom Context Menus:

image

Comment from @maxagin: BG is same as main BG, just adding shadow same as for Command Palette. Basically using same principle as used for the Command Palette.

Experiments table

There are a couple of colors left in the table where we are trying to match "every theme". These should be removed in favour of existing CSS variables. Example:

Current:

image

$header-bg-color: #303031;
...
$header-bg-color-light: #e1e1e1;
...

    :global(.vscode-light) & {
      background-color: $header-bg-color-light;
    }

replaced with

$header-bg-color: var(--vscode-tree-sideBarSectionHeader-background);

Gives:

image

Styles to fix:

  • Tooltips
  • Corners
  • Context menus
  • Remove non-themeable colors from experiments table
@mattseddon
Copy link
Member Author

These are the colors for the "Quick Picker".

@mattseddon mattseddon added 🎨 design Needs design input or is being actively worked on product PR that affects product labels Apr 22, 2022
@mattseddon
Copy link
Member Author

@maxagin @yalozhkin please take a look at the above and let me know if you have further feedback.

@mattseddon mattseddon changed the title Match webview tooltips style to VS Code command palette Match webviews style to VS Code Apr 25, 2022
@rogermparent rogermparent self-assigned this Apr 27, 2022
@mattseddon
Copy link
Member Author

Added another checkbox to the OP

@maxagin
Copy link
Contributor

maxagin commented May 2, 2022

Suggestions:

  1. Row selected idea (theme color, button)
  2. Reducing contrast of the even rows

Figma file / Comments & suggestions 26-27042022a

Screen Shot 2022-05-01 at 9 17 49 PM

@mattseddon mattseddon mentioned this issue May 9, 2022
30 tasks
@rogermparent
Copy link
Contributor

rogermparent commented May 9, 2022

Searched for what seems to be all the colors we need to replace with color: [^v\$] and manually removing exceptions like the test stylesheet. Turns out there's fewer than I thought after removing scss variables and other exceptions.

webview/src/experiments/components/table/styles.module.scss:
    7: $border-color: rgb(128, 128, 128, 0.4);
   18: $header-bg-color: #303031;
   19: $meta-cell-color: #a0a0a0;
   20: $toggle-color: rgba(255, 255, 255, 0.21);
   21: $spinner-color: rgb(255, 255, 255);
   22: $metrics-color: #fbd38d;
   23: $params-color: #90cdf4;

webview/src/shared/variables.scss:
  7: $watermark-color: rgba(255, 255, 255, 0.6);

Some shorthand properties like background or border could slip through this search, but I checked those ones manually and found no static colors.

There's also -light variants which will likely be removed

webview/src/experiments/components/table/styles.module.scss:
  26  
  27: $header-bg-color-light: #e1e1e1;
  28: $border-color-light: #7f7f7f;
  29: $metrics-color-light: #ce9f4c;
  30: $params-color-light: #76add1;
  31: $toggle-color-light: rgba(0, 0, 0, 0.21);
  32: $spinner-color-light: #000;
  33  

webview/src/shared/variables.scss:
  10  
  11: $watermark-color-light: rgba(0, 0, 0, 0.68);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 design Needs design input or is being actively worked on product PR that affects product
Projects
None yet
Development

No branches or pull requests

3 participants