@@ -972,6 +972,9 @@ export class GettingStartedPage extends EditorPane {
972
972
reset ( descriptionContent , ...renderLabelWithIcons ( category . description ) ) ;
973
973
}
974
974
975
+ const titleContent = $ ( 'h3.category-title.max-lines-3' , { 'x-category-title-for' : category . id } ) ;
976
+ reset ( titleContent , ...renderLabelWithIcons ( category . title ) ) ;
977
+
975
978
return $ ( 'button.getting-started-category' + ( category . isFeatured ? '.featured' : '' ) ,
976
979
{
977
980
'x-dispatch' : 'selectCategory:' + category . id ,
@@ -980,7 +983,7 @@ export class GettingStartedPage extends EditorPane {
980
983
featuredBadge ,
981
984
$ ( '.main-content' , { } ,
982
985
this . iconWidgetFor ( category ) ,
983
- $ ( 'h3.category-title.max-lines-3' , { 'x-category-title-for' : category . id } , category . title , ) ,
986
+ titleContent ,
984
987
renderNewBadge ? newBadge : $ ( '.no-badge' ) ,
985
988
$ ( 'a.codicon.codicon-close.hide-category-button' , {
986
989
'tabindex' : 0 ,
@@ -1203,7 +1206,14 @@ export class GettingStartedPage extends EditorPane {
1203
1206
const p = append ( container , $ ( 'p' ) ) ;
1204
1207
for ( const node of linkedText . nodes ) {
1205
1208
if ( typeof node === 'string' ) {
1206
- append ( p , renderFormattedText ( node , { inline : true , renderCodeSegments : true } ) ) ;
1209
+ const labelWithIcon = renderLabelWithIcons ( node ) ;
1210
+ for ( const element of labelWithIcon ) {
1211
+ if ( typeof element === 'string' ) {
1212
+ p . appendChild ( renderFormattedText ( element , { inline : true , renderCodeSegments : true } ) ) ;
1213
+ } else {
1214
+ p . appendChild ( element ) ;
1215
+ }
1216
+ }
1207
1217
} else {
1208
1218
const link = this . instantiationService . createInstance ( Link , p , node , { opener : ( href ) => this . runStepCommand ( href ) } ) ;
1209
1219
this . detailsPageDisposables . add ( link ) ;
@@ -1237,7 +1247,7 @@ export class GettingStartedPage extends EditorPane {
1237
1247
{ } ,
1238
1248
this . iconWidgetFor ( category ) ,
1239
1249
$ ( '.category-description-container' , { } ,
1240
- $ ( 'h2.category-title.max-lines-3' , { 'x-category-title-for' : category . id } , category . title ) ,
1250
+ $ ( 'h2.category-title.max-lines-3' , { 'x-category-title-for' : category . id } , ... renderLabelWithIcons ( category . title ) ) ,
1241
1251
$ ( '.category-description.description.max-lines-3' , { 'x-category-description-for' : category . id } , ...renderLabelWithIcons ( category . description ) ) ) ) ;
1242
1252
1243
1253
const stepListContainer = $ ( '.step-list-container' ) ;
@@ -1286,8 +1296,11 @@ export class GettingStartedPage extends EditorPane {
1286
1296
const container = $ ( '.step-description-container' , { 'x-step-description-for' : step . id } ) ;
1287
1297
this . buildStepMarkdownDescription ( container , step . description ) ;
1288
1298
1299
+ const stepTitle = $ ( 'h3.step-title.max-lines-3' , { 'x-step-title-for' : step . id } ) ;
1300
+ reset ( stepTitle , ...renderLabelWithIcons ( step . title ) ) ;
1301
+
1289
1302
const stepDescription = $ ( '.step-container' , { } ,
1290
- $ ( 'h3.step-title.max-lines-3' , { 'x-step-title-for' : step . id } , step . title ) ,
1303
+ stepTitle ,
1291
1304
container ,
1292
1305
) ;
1293
1306
@@ -1462,9 +1475,9 @@ registerThemingParticipant((theme, collector) => {
1462
1475
1463
1476
const iconColor = theme . getColor ( textLinkForeground ) ;
1464
1477
if ( iconColor ) {
1465
- collector . addRule ( `.monaco-workbench .part.editor > .content .gettingStartedContainer .getting-started-category .codicon:not(.codicon-close) { color: ${ iconColor } }` ) ;
1466
- collector . addRule ( `.monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .codicon.complete { color: ${ iconColor } } ` ) ;
1467
- collector . addRule ( `.monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step.expanded .codicon { color: ${ iconColor } } ` ) ;
1478
+ collector . addRule ( `.monaco-workbench .part.editor > .content .gettingStartedContainer .icon-widget { color: ${ iconColor } }` ) ;
1479
+ collector . addRule ( `.monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .codicon-getting-started-step-checked { color: ${ iconColor } } ` ) ;
1480
+ collector . addRule ( `.monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step.expanded .codicon-getting-started-step-unchecked { color: ${ iconColor } } ` ) ;
1468
1481
}
1469
1482
1470
1483
const buttonColor = theme . getColor ( welcomePageTileBackground ) ;
@@ -1497,7 +1510,7 @@ registerThemingParticipant((theme, collector) => {
1497
1510
1498
1511
const pendingStepColor = theme . getColor ( descriptionForeground ) ;
1499
1512
if ( pendingStepColor ) {
1500
- collector . addRule ( `.monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .codicon { color: ${ pendingStepColor } } ` ) ;
1513
+ collector . addRule ( `.monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideDetails .getting-started-step .codicon-getting-started-step-unchecked { color: ${ pendingStepColor } } ` ) ;
1501
1514
}
1502
1515
1503
1516
const emphasisButtonHoverBackground = theme . getColor ( buttonHoverBackground ) ;
0 commit comments