Skip to content

Commit 44bfa31

Browse files
authored
Polish walkthrough steps (microsoft#166644)
* Remove til shadows and fix fonts * More polish
1 parent b2b020d commit 44bfa31

File tree

3 files changed

+32
-18
lines changed

3 files changed

+32
-18
lines changed

src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ export class GettingStartedPage extends EditorPane {
13401340
$('.done-next-container', {},
13411341
$('button.button-link.all-done', { 'x-dispatch': 'allDone' }, $('span.codicon.codicon-check-all'), localize('allDone', "Mark Done")),
13421342
...(showNextCategory
1343-
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, localize('nextOne', "Next Section"), $('span.codicon.codicon-arrow-small-right'))]
1343+
? [$('button.button-link.next', { 'x-dispatch': 'nextSection' }, localize('nextOne', "Next Section"), $('span.codicon.codicon-arrow-right'))]
13441344
: []),
13451345
)
13461346
);

src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { darken, inputBackground, editorWidgetBackground, lighten, registerColor, textLinkForeground, widgetShadow } from 'vs/platform/theme/common/colorRegistry';
6+
import { darken, inputBackground, editorWidgetBackground, lighten, registerColor, textLinkForeground } from 'vs/platform/theme/common/colorRegistry';
77
import { localize } from 'vs/nls';
88

99
// Seprate from main module to break dependency cycles between welcomePage and gettingStarted.
1010
export const welcomePageBackground = registerColor('welcomePage.background', { light: null, dark: null, hcDark: null, hcLight: null }, localize('welcomePage.background', 'Background color for the Welcome page.'));
1111

1212
export const welcomePageTileBackground = registerColor('welcomePage.tileBackground', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: '#000', hcLight: editorWidgetBackground }, localize('welcomePage.tileBackground', 'Background color for the tiles on the Get Started page.'));
1313
export const welcomePageTileHoverBackground = registerColor('welcomePage.tileHoverBackground', { dark: lighten(editorWidgetBackground, .2), light: darken(editorWidgetBackground, .1), hcDark: null, hcLight: null }, localize('welcomePage.tileHoverBackground', 'Hover background color for the tiles on the Get Started.'));
14-
export const welcomePageTileShadow = registerColor('welcomePage.tileShadow', { light: widgetShadow, dark: widgetShadow, hcDark: null, hcLight: null }, localize('welcomePage.tileShadow', 'Shadow color for the Welcome page walkthrough category buttons.'));
1514

1615
export const welcomePageProgressBackground = registerColor('welcomePage.progress.background', { light: inputBackground, dark: inputBackground, hcDark: inputBackground, hcLight: inputBackground }, localize('welcomePage.progress.background', 'Foreground color for the Welcome page progress bars.'));
1716
export const welcomePageProgressForeground = registerColor('welcomePage.progress.foreground', { light: textLinkForeground, dark: textLinkForeground, hcDark: textLinkForeground, hcLight: textLinkForeground }, localize('welcomePage.progress.foreground', 'Background color for the Welcome page progress bars.'));

src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@
399399
width: 100%;
400400
margin: 4px 0;
401401
overflow: hidden;
402+
border-radius: 3px;
402403
}
403404

404405
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .button-container:not(:last-of-type) {
@@ -407,6 +408,7 @@
407408

408409
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step.expanded {
409410
cursor: default !important;
411+
border: 1px solid var(--vscode-editorWidget-border);
410412
}
411413

412414
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step.expanded>.codicon {
@@ -455,12 +457,12 @@
455457
}
456458

457459
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .shortcut-message {
458-
opacity: 0.8;
459-
font-size: 8pt;
460+
color: var(--vscode-descriptionForeground);
461+
font-size: 12px;
460462
}
461463

462464
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .shortcut-message .keybinding {
463-
font-weight: bold;
465+
font-weight: 600;
464466
}
465467

466468
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .step-next {
@@ -626,9 +628,14 @@
626628
cursor: pointer;
627629
}
628630

631+
/* Don't show focus outline on mouse click. Instead only show outline on keyboard focus. */
629632
.monaco-workbench .part.editor>.content .gettingStartedContainer button:focus {
630-
outline-style: solid;
631-
outline-width: 1px;
633+
outline: none;
634+
}
635+
636+
.monaco-workbench .part.editor>.content .gettingStartedContainer button:focus-visible {
637+
outline: 1px solid var(--vscode-focusBorder);
638+
outline-offset: -1px;
632639
}
633640

634641
.monaco-workbench .part.editor>.content .gettingStartedContainer .prev-button.button-link {
@@ -668,12 +675,12 @@
668675
left: -4px;
669676
}
670677

671-
.monaco-workbench .part.editor>.content .gettingStartedContainer .button-link .codicon-arrow-small-right {
672-
padding-left: 8px;
678+
.monaco-workbench .part.editor>.content .gettingStartedContainer .button-link .codicon-arrow-right {
679+
padding-left: 4px;
673680
}
674681

675682
.monaco-workbench .part.editor>.content .gettingStartedContainer .button-link .codicon-check-all {
676-
padding-right: 8px;
683+
padding-right: 4px;
677684
}
678685

679686
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlide .skip {
@@ -684,9 +691,9 @@
684691
}
685692

686693
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails h2 {
694+
font-size: 26px;
687695
font-weight: normal;
688-
line-height: 26px;
689-
margin: 0 0 4px 0;
696+
margin: 0 0 8px 0;
690697
}
691698

692699
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails h2 .codicon {
@@ -695,7 +702,7 @@
695702

696703
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails h3 {
697704
font-size: 13px;
698-
font-weight: 700;
705+
font-weight: 600;
699706
margin: 0;
700707
}
701708

@@ -800,6 +807,10 @@
800807
visibility: visible;
801808
}
802809

810+
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .step-description-container span {
811+
line-height: 1.3em;
812+
}
813+
803814
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .step-description-container .monaco-button, .monaco-workbench .part.editor>.content .gettingStartedContainer .max-lines-3 {
804815
/* Supported everywhere: https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp#browser_compatibility */
805816
-webkit-line-clamp: 3;
@@ -808,6 +819,13 @@
808819
overflow: hidden;
809820
}
810821

822+
.monaco-workbench .part.editor>.content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .step-description-container .monaco-button {
823+
height: 26px;
824+
display: flex;
825+
margin-bottom: 8px;
826+
align-items: center;
827+
}
828+
811829
.monaco-workbench .part.editor>.content .gettingStartedContainer .hide-category-button {
812830
padding: 3px;
813831
border-radius: 5px;
@@ -828,6 +846,7 @@
828846

829847
.monaco-workbench .part.editor > .content .gettingStartedContainer .description {
830848
color: var(--vscode-descriptionForeground);
849+
line-height: 1.4em;
831850
}
832851

833852
.monaco-workbench .part.editor > .content .gettingStartedContainer .category-progress .message {
@@ -854,10 +873,6 @@
854873
background: var(--vscode-welcomePage-tileBackground);
855874
}
856875

857-
.monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories .getting-started-category {
858-
filter: drop-shadow(2px 2px 2px var(--vscode-welcomePage-tileShadow));
859-
}
860-
861876
.monaco-workbench .part.editor > .content .gettingStartedContainer button:hover {
862877
background: var(--vscode-welcomePage-tileHoverBackground);
863878
outline-color: var(--vscode-contrastActiveBorder, var(--vscode-focusBorder));

0 commit comments

Comments
 (0)