@@ -685,7 +685,9 @@ export default {
685685 const res = await this .copyCodeToClipboard (codeBlock .textContent || ' ' );
686686 const ok = !! res? .ok ;
687687 button .innerHTML = ok ? this .getSuccessIconSvg () : this .getErrorIconSvg ();
688- button .style .color = ok ? ' #4caf50' : ' #f44336' ;
688+ button .style .color = ok
689+ ? ' rgb(var(--v-theme-success))'
690+ : ' rgb(var(--v-theme-error))' ;
689691 button .setAttribute (" title" , this .t (` core.common.${ ok ? " copied" : " copyFailed" } ` ));
690692 setTimeout (() => {
691693 button .innerHTML = this .getCopyIconSvg ();
@@ -1151,23 +1153,23 @@ export default {
11511153}
11521154
11531155.copy - message- btn .copy - success {
1154- color: # 4caf50 ;
1156+ color: rgb ( var ( -- v - theme - success)) ;
11551157 opacity: 1 ;
11561158}
11571159
11581160.copy - message- btn .copy - success: hover {
1159- color: # 4caf50 ;
1160- background- color: rgba (76 , 175 , 80 , 0.1 );
1161+ color: rgb ( var ( -- v - theme - success)) ;
1162+ background- color: rgba (var ( -- v - theme - success) , 0.1 );
11611163}
11621164
11631165.copy - message- btn .copy - failed {
1164- color: #f44336 ;
1166+ color: rgb ( var ( -- v - theme - error)) ;
11651167 opacity: 1 ;
11661168}
11671169
11681170.copy - message- btn .copy - failed: hover {
1169- color: #f44336 ;
1170- background- color: rgba (244 , 67 , 54 , 0.1 );
1171+ color: rgb ( var ( -- v - theme - error)) ;
1172+ background- color: rgba (var ( -- v - theme - error) , 0.1 );
11711173}
11721174
11731175.reply - message- btn {
0 commit comments