@@ -789,6 +789,47 @@ export default class App extends Component {
789
789
// looks weird? fontSize: 'var(--vscode-font-size)',
790
790
fontFamily : vscodeStyles . getPropertyValue ( '--vscode-font-family' ) ,
791
791
// looks weird? fontWeightRegular: 'var(--vscode-font-weight)'
792
+ } ,
793
+ overrides : {
794
+ MuiButton : {
795
+ textPrimary : {
796
+ color : vscodeStyles . getPropertyValue ( '--vscode-button-foreground' ) ,
797
+ background : vscodeStyles . getPropertyValue ( '--vscode-button-background' ) ,
798
+ '&:hover' : {
799
+ backgroundColor : vscodeStyles . getPropertyValue ( '--vscode-button-hoverBackground' ) ,
800
+ }
801
+ } ,
802
+ textSecondary : {
803
+ color : vscodeStyles . getPropertyValue ( '--vscode-button-secondaryForeground' ) ,
804
+ background : vscodeStyles . getPropertyValue ( '--vscode-button-secondaryBackground' ) ,
805
+ '&:hover' : {
806
+ backgroundColor : vscodeStyles . getPropertyValue ( '--vscode-button-secondaryHoverBackground' ) ,
807
+ }
808
+ } , // todo support inherit color for buttons?
809
+ outlinedPrimary : {
810
+ color : vscodeStyles . getPropertyValue ( '--vscode-foreground' ) , // regular foreground
811
+ borderColor : vscodeStyles . getPropertyValue ( '--vscode-button-background' ) ,
812
+ '&:hover' : {
813
+ color : vscodeStyles . getPropertyValue ( '--vscode-editor-foreground' ) ,
814
+ borderColor : vscodeStyles . getPropertyValue ( '--vscode-button-hoverBackground' ) ,
815
+ }
816
+ } ,
817
+ outlinedSecondary : {
818
+ color : vscodeStyles . getPropertyValue ( '--vscode-foreground' ) , // regular foreground for contrast
819
+ borderColor : vscodeStyles . getPropertyValue ( '--vscode-button-secondaryBackground' ) ,
820
+ '&:hover' : {
821
+ color : vscodeStyles . getPropertyValue ( '--vscode-editor-foreground' ) ,
822
+ borderColor : vscodeStyles . getPropertyValue ( '--vscode-button-secondaryHoverBackground' ) ,
823
+ }
824
+ } ,
825
+ } ,
826
+ /* todo investigate later ... MuiCheckbox: {
827
+ colorPrimary: {
828
+ // background: vscodeStyles.getPropertyValue('--vscode-checkbox-background'),
829
+ // borderColor: vscodeStyles.getPropertyValue('--vscode-checkbox-border'),
830
+ color: vscodeStyles.getPropertyValue('--vscode-checkbox-foreground'),
831
+ }
832
+ } */
792
833
}
793
834
} ) ;
794
835
0 commit comments