Skip to content

Commit f5edc26

Browse files
author
Miguel Solorio
authored
Use heart-filled for sponsor icon (microsoft#151957)
Update codicons. Use `heart-filled` for sponsor icon.
1 parent 82f7daa commit f5edc26

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed
156 Bytes
Binary file not shown.

src/vs/base/common/codicons.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ export class Codicon implements CSSIcon {
552552
public static readonly arrowCircleLeft = new Codicon('arrow-circle-left', { fontCharacter: '\\ebfd' });
553553
public static readonly arrowCircleRight = new Codicon('arrow-circle-right', { fontCharacter: '\\ebfe' });
554554
public static readonly arrowCircleUp = new Codicon('arrow-circle-up', { fontCharacter: '\\ebff' });
555+
public static readonly heartFilled = new Codicon('heart-filled', { fontCharacter: '\\ec04' });
555556

556557

557558
// derived icons, that could become separate icons

src/vs/workbench/contrib/extensions/browser/extensionsIcons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const installCountIcon = registerIcon('extensions-install-count', Codicon
2626
export const ratingIcon = registerIcon('extensions-rating', Codicon.star, localize('ratingIcon', 'Icon shown along with the rating in the extensions view and editor.'));
2727
export const verifiedPublisherIcon = registerIcon('extensions-verified-publisher', Codicon.verifiedFilled, localize('verifiedPublisher', 'Icon used for the verified extension publisher in the extensions view and editor.'));
2828
export const preReleaseIcon = registerIcon('extensions-pre-release', Codicon.versions, localize('preReleaseIcon', 'Icon shown for extensions having pre-release versions in extensions view and editor.'));
29-
export const sponsorIcon = registerIcon('extensions-sponsor', Codicon.heart, localize('sponsorIcon', 'Icon used for sponsoring extensions in the extensions view and editor.'));
29+
export const sponsorIcon = registerIcon('extensions-sponsor', Codicon.heartFilled, localize('sponsorIcon', 'Icon used for sponsoring extensions in the extensions view and editor.'));
3030

3131
export const starFullIcon = registerIcon('extensions-star-full', Codicon.starFull, localize('starFullIcon', 'Full star icon used for the rating in the extensions editor.'));
3232
export const starHalfIcon = registerIcon('extensions-star-half', Codicon.starHalf, localize('starHalfIcon', 'Half star icon used for the rating in the extensions editor.'));

src/vs/workbench/contrib/extensions/browser/extensionsWidgets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export class SponsorWidget extends ExtensionWidget {
204204

205205
const sponsor = append(this.container, $('span.sponsor.clickable', { tabIndex: 0, title: this.extension?.publisherSponsorLink }));
206206
sponsor.setAttribute('role', 'link'); // #132645
207-
const sponsorIcon = renderIcon(Codicon.heart);
207+
const sponsorIcon = renderIcon(Codicon.heartFilled);
208208
const label = $('span', undefined, localize('sponsor', "Sponsor"));
209209
append(sponsor, sponsorIcon, label);
210210
this.disposables.add(onClick(sponsor, () => {

0 commit comments

Comments
 (0)