Skip to content

Commit 06ec5ac

Browse files
committed
Center icons properly in the context menus
1 parent 04eb478 commit 06ec5ac

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/commandsAndMenu.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ export function addCommands(
435435
}
436436
}
437437
},
438-
icon: openIcon
438+
icon: openIcon.bindprops({ stylesheet: 'menuItem' })
439439
});
440440

441441
commands.addCommand(ContextCommandIDs.gitFileDiff, {
@@ -502,7 +502,7 @@ export function addCommands(
502502
}
503503
}
504504
},
505-
icon: diffIcon
505+
icon: diffIcon.bindprops({ stylesheet: 'menuItem' })
506506
});
507507

508508
commands.addCommand(ContextCommandIDs.gitFileAdd, {
@@ -517,7 +517,7 @@ export function addCommands(
517517
await model.add(file.to);
518518
}
519519
},
520-
icon: addIcon
520+
icon: addIcon.bindprops({ stylesheet: 'menuItem' })
521521
});
522522

523523
commands.addCommand(ContextCommandIDs.gitFileStage, {
@@ -532,7 +532,7 @@ export function addCommands(
532532
await model.add(file.to);
533533
}
534534
},
535-
icon: addIcon
535+
icon: addIcon.bindprops({ stylesheet: 'menuItem' })
536536
});
537537

538538
commands.addCommand(ContextCommandIDs.gitFileTrack, {
@@ -547,7 +547,7 @@ export function addCommands(
547547
await model.add(file.to);
548548
}
549549
},
550-
icon: addIcon
550+
icon: addIcon.bindprops({ stylesheet: 'menuItem' })
551551
});
552552

553553
commands.addCommand(ContextCommandIDs.gitFileUnstage, {
@@ -564,7 +564,7 @@ export function addCommands(
564564
}
565565
}
566566
},
567-
icon: removeIcon
567+
icon: removeIcon.bindprops({ stylesheet: 'menuItem' })
568568
});
569569

570570
function representFiles(files: Git.IStatusFile[]): JSX.Element {
@@ -611,7 +611,7 @@ export function addCommands(
611611
}
612612
}
613613
},
614-
icon: closeIcon
614+
icon: closeIcon.bindprops({ stylesheet: 'menuItem' })
615615
});
616616

617617
commands.addCommand(ContextCommandIDs.gitFileDiscard, {
@@ -661,7 +661,7 @@ export function addCommands(
661661
}
662662
}
663663
},
664-
icon: discardIcon
664+
icon: discardIcon.bindprops({ stylesheet: 'menuItem' })
665665
});
666666

667667
commands.addCommand(ContextCommandIDs.gitIgnore, {

0 commit comments

Comments
 (0)