Skip to content

Commit 02d0259

Browse files
committed
Update active recording color and animation
1 parent b111d80 commit 02d0259

File tree

1 file changed

+8
-30
lines changed

1 file changed

+8
-30
lines changed

src/vs/workbench/contrib/chat/electron-sandbox/actions/voiceChatActions.ts

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ registerThemingParticipant((theme, collector) => {
776776
let activeRecordingDimmedColor: Color | undefined;
777777
if (theme.type === ColorScheme.LIGHT || theme.type === ColorScheme.DARK) {
778778
activeRecordingColor = theme.getColor(ACTIVITY_BAR_BADGE_BACKGROUND) ?? theme.getColor(focusBorder);
779-
activeRecordingDimmedColor = activeRecordingColor?.transparent(0.2);
779+
activeRecordingDimmedColor = activeRecordingColor?.transparent(0.38);
780780
} else {
781781
activeRecordingColor = theme.getColor(contrastBorder);
782782
activeRecordingDimmedColor = theme.getColor(contrastBorder);
@@ -786,45 +786,23 @@ registerThemingParticipant((theme, collector) => {
786786
collector.addRule(`
787787
.monaco-workbench:not(.reduce-motion) .interactive-input-part .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled),
788788
.monaco-workbench:not(.reduce-motion) .inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled) {
789-
color: ${activeRecordingColor};
790-
outline: 1px solid ${activeRecordingColor};
791-
outline-offset: -1px;
792-
animation: pulseAnimation 1s infinite;
789+
outline: 2px solid ${activeRecordingColor};
793790
border-radius: 50%;
794-
}
795-
796-
.monaco-workbench:not(.reduce-motion) .interactive-input-part .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before,
797-
.monaco-workbench:not(.reduce-motion) .inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before {
798-
position: absolute;
799-
outline: 1px solid ${activeRecordingColor};
800-
outline-offset: 2px;
801-
border-radius: 50%;
802-
width: 16px;
803-
height: 16px;
804-
}
805-
806-
.monaco-workbench:not(.reduce-motion) .interactive-input-part .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::after,
807-
.monaco-workbench:not(.reduce-motion) .inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::after {
808-
content: '';
809-
position: absolute;
810-
outline: 1px solid ${activeRecordingDimmedColor};
811-
outline-offset: 3px;
812-
animation: pulseAnimation 1s infinite;
813-
border-radius: 50%;
814-
width: 16px;
815-
height: 16px;
791+
animation: pulseAnimation 1500ms ease-in-out infinite !important;
792+
padding-left: 4px;
793+
height: 17px;
816794
}
817795
818796
@keyframes pulseAnimation {
819797
0% {
820-
outline-width: 1px;
798+
outline-width: 2px;
821799
}
822800
50% {
823-
outline-width: 3px;
801+
outline-width: 5px;
824802
outline-color: ${activeRecordingDimmedColor};
825803
}
826804
100% {
827-
outline-width: 1px;
805+
outline-width: 2px;
828806
}
829807
}
830808
`);

0 commit comments

Comments
 (0)