|
1 | 1 | @use '../../shared/styles/theme'; |
2 | 2 | @use '../../shared/styles/utils'; |
| 3 | +@use '../../shared/styles/icons/utils' as iconUtils; |
3 | 4 | @import '../../shared/base'; |
4 | 5 | @import '../../shared/codicons'; |
5 | 6 | @import '../../shared/glicons'; |
@@ -306,10 +307,10 @@ button:not([disabled]), |
306 | 307 | } |
307 | 308 | .codicon-custom-git-branch-create { |
308 | 309 | &:before { |
309 | | - content: '\ea68'; |
| 310 | + @include iconUtils.codicon('git-branch'); |
310 | 311 | } |
311 | 312 | &:after { |
312 | | - content: '\ea60'; |
| 313 | + @include iconUtils.codicon('add'); |
313 | 314 | position: absolute; |
314 | 315 | right: 0; |
315 | 316 | bottom: 0; |
@@ -657,228 +658,198 @@ button:not([disabled]), |
657 | 658 | .icon { |
658 | 659 | &--head { |
659 | 660 | &::before { |
660 | | - // codicon-vm |
661 | 661 | font-family: codicon; |
662 | | - content: '\ea7a'; |
| 662 | + @include iconUtils.codicon('vm'); |
663 | 663 | } |
664 | 664 | } |
665 | 665 | &--remote { |
666 | 666 | &::before { |
667 | | - // codicon-cloud |
668 | 667 | font-family: codicon; |
669 | | - content: '\ebaa'; |
| 668 | + @include iconUtils.codicon('cloud'); |
670 | 669 | } |
671 | 670 | } |
672 | 671 | &--remote-github, |
673 | 672 | &--remote-githubEnterprise { |
674 | 673 | &::before { |
675 | | - // codicon-github-inverted |
676 | 674 | font-family: codicon; |
677 | | - content: '\eba1'; |
| 675 | + @include iconUtils.codicon('github-inverted'); |
678 | 676 | } |
679 | 677 | } |
680 | 678 | &--remote-gitlab, |
681 | 679 | &--remote-gitlabSelfHosted { |
682 | 680 | &::before { |
683 | | - // glicon-provider-gitlab |
684 | 681 | font-family: 'glicons'; |
685 | | - content: '\f123'; |
| 682 | + @include iconUtils.glicon('provider-gitlab'); |
686 | 683 | } |
687 | 684 | } |
688 | 685 | &--remote-bitbucket, |
689 | 686 | &--remote-bitbucketServer { |
690 | 687 | &::before { |
691 | | - // glicon-provider-bitbucket |
692 | 688 | font-family: 'glicons'; |
693 | | - content: '\f11f'; |
| 689 | + @include iconUtils.glicon('provider-bitbucket'); |
694 | 690 | } |
695 | 691 | } |
696 | 692 | &--remote-azureDevops { |
697 | 693 | &::before { |
698 | | - // glicon-provider-azdo |
699 | 694 | font-family: 'glicons'; |
700 | | - content: '\f11e'; |
| 695 | + @include iconUtils.glicon('provider-azdo'); |
701 | 696 | } |
702 | 697 | } |
703 | 698 | &--tag { |
704 | 699 | &::before { |
705 | | - // codicon-tag |
706 | 700 | font-family: codicon; |
707 | | - content: '\ea66'; |
| 701 | + @include iconUtils.codicon('tag'); |
708 | 702 | } |
709 | 703 | } |
710 | 704 | &--stash { |
711 | 705 | &::before { |
712 | | - // codicon-inbox |
713 | 706 | font-family: codicon; |
714 | | - content: '\eb09'; |
| 707 | + @include iconUtils.codicon('inbox'); |
715 | 708 | } |
716 | 709 | } |
717 | 710 | &--check { |
718 | 711 | &::before { |
719 | | - // codicon-check |
720 | 712 | font-family: codicon; |
721 | | - content: '\eab2'; |
| 713 | + @include iconUtils.codicon('check'); |
722 | 714 | } |
723 | 715 | } |
724 | 716 | &--warning { |
725 | 717 | color: #de9b43; |
726 | 718 | :before { |
727 | | - // codicon-vm |
728 | 719 | font-family: codicon; |
729 | | - content: '\ea6c'; |
| 720 | + @include iconUtils.codicon('warning'); |
730 | 721 | } |
731 | 722 | } |
732 | 723 | &--added { |
733 | 724 | &::before { |
734 | | - // codicon-add |
735 | 725 | font-family: codicon; |
736 | | - content: '\ea60'; |
| 726 | + @include iconUtils.codicon('add'); |
737 | 727 | } |
738 | 728 | } |
739 | 729 | &--modified { |
740 | 730 | &::before { |
741 | | - // codicon-edit |
742 | 731 | font-family: codicon; |
743 | | - content: '\ea73'; |
| 732 | + @include iconUtils.codicon('edit'); |
744 | 733 | } |
745 | 734 | } |
746 | 735 | &--deleted { |
747 | 736 | &::before { |
748 | | - // codicon-dash |
749 | 737 | font-family: codicon; |
750 | | - content: '\eacc'; |
| 738 | + @include iconUtils.codicon('dash'); |
751 | 739 | } |
752 | 740 | } |
753 | 741 | &--renamed { |
754 | 742 | &::before { |
755 | | - // codicon-file |
756 | 743 | font-family: codicon; |
757 | | - content: '\eb60'; |
| 744 | + @include iconUtils.codicon('file'); |
758 | 745 | } |
759 | 746 | } |
760 | 747 | &--resolved { |
761 | 748 | &::before { |
762 | | - // codicon-pass-filled |
763 | 749 | font-family: codicon; |
764 | | - content: '\ebb3'; |
| 750 | + @include iconUtils.codicon('pass-filled'); |
765 | 751 | } |
766 | 752 | } |
767 | 753 | &--hide { |
768 | 754 | &::before { |
769 | | - // codicon-eye-closed |
770 | 755 | font-family: codicon; |
771 | | - content: '\eae7'; |
| 756 | + @include iconUtils.codicon('eye-closed'); |
772 | 757 | } |
773 | 758 | } |
774 | 759 | &--show { |
775 | 760 | &::before { |
776 | | - // codicon-eye |
777 | 761 | font-family: codicon; |
778 | | - content: '\ea70'; |
| 762 | + @include iconUtils.codicon('eye'); |
779 | 763 | } |
780 | 764 | } |
781 | 765 | &--pull-request { |
782 | 766 | &::before { |
783 | | - // codicon-git-pull-request |
784 | 767 | font-family: codicon; |
785 | | - content: '\ea64'; |
| 768 | + @include iconUtils.codicon('git-pull-request'); |
786 | 769 | } |
787 | 770 | } |
788 | 771 | &--upstream-ahead { |
789 | 772 | &::before { |
790 | | - // codicon-arrow-up |
791 | 773 | font-family: codicon; |
792 | | - content: '\eaa1'; |
| 774 | + @include iconUtils.codicon('arrow-up'); |
793 | 775 | } |
794 | 776 | } |
795 | 777 | &--upstream-behind { |
796 | 778 | &::before { |
797 | | - // codicon-arrow-down |
798 | 779 | font-family: codicon; |
799 | | - content: '\ea9a'; |
| 780 | + @include iconUtils.codicon('arrow-down'); |
800 | 781 | } |
801 | 782 | } |
802 | 783 | &--settings { |
803 | 784 | &::before { |
804 | | - // codicon-settings-gear |
805 | 785 | font-family: codicon; |
806 | | - content: '\eb51'; |
| 786 | + @include iconUtils.codicon('settings-gear'); |
807 | 787 | } |
808 | 788 | } |
809 | 789 | &--branch { |
810 | 790 | &::before { |
811 | | - // codicon-git-branch |
812 | 791 | font-family: codicon; |
813 | | - content: '\ea68'; |
| 792 | + @include iconUtils.codicon('git-branch'); |
814 | 793 | top: 0px; |
815 | 794 | margin: 0 0 0 0; |
816 | 795 | } |
817 | 796 | } |
818 | 797 |
|
819 | 798 | &--graph { |
820 | 799 | &::before { |
821 | | - // glicon-graph |
822 | 800 | font-family: glicons; |
823 | | - content: '\f102'; |
| 801 | + @include iconUtils.glicon('graph'); |
824 | 802 | } |
825 | 803 | } |
826 | 804 |
|
827 | 805 | &--commit { |
828 | 806 | &::before { |
829 | | - // codicon-git-commit |
830 | 807 | font-family: codicon; |
831 | | - content: '\eafc'; |
| 808 | + @include iconUtils.codicon('git-commit'); |
832 | 809 | top: 0px; |
833 | 810 | margin: 0 0 0 0; |
834 | 811 | } |
835 | 812 | } |
836 | 813 |
|
837 | 814 | &--author { |
838 | 815 | &::before { |
839 | | - // codicon-account |
840 | 816 | font-family: codicon; |
841 | | - content: '\eb99'; |
| 817 | + @include iconUtils.codicon('account'); |
842 | 818 | } |
843 | 819 | } |
844 | 820 |
|
845 | 821 | &--datetime { |
846 | 822 | &::before { |
847 | | - // glicon-clock |
848 | 823 | font-family: glicons; |
849 | | - content: '\f11d'; |
| 824 | + @include iconUtils.glicon('clock'); |
850 | 825 | } |
851 | 826 | } |
852 | 827 |
|
853 | 828 | &--message { |
854 | 829 | &::before { |
855 | | - // codicon-comment |
856 | 830 | font-family: codicon; |
857 | | - content: '\ea6b'; |
| 831 | + @include iconUtils.codicon('comment'); |
858 | 832 | } |
859 | 833 | } |
860 | 834 |
|
861 | 835 | &--changes { |
862 | 836 | &::before { |
863 | | - // codicon-request-changes |
864 | 837 | font-family: codicon; |
865 | | - content: '\eb43'; |
| 838 | + @include iconUtils.codicon('request-changes'); |
866 | 839 | } |
867 | 840 | } |
868 | 841 |
|
869 | 842 | &--files { |
870 | 843 | &::before { |
871 | | - // codicon-file |
872 | 844 | font-family: codicon; |
873 | | - content: '\eb60'; |
| 845 | + @include iconUtils.codicon('file'); |
874 | 846 | } |
875 | 847 | } |
876 | 848 |
|
877 | 849 | &--worktree { |
878 | 850 | &::before { |
879 | | - // glicon-repositories-view |
880 | 851 | font-family: glicons; |
881 | | - content: '\f10e'; |
| 852 | + @include iconUtils.glicon('worktrees-view'); |
882 | 853 | } |
883 | 854 | } |
884 | 855 | } |
|
0 commit comments