Skip to content

Commit 5406176

Browse files
authored
voice - tweak animation (microsoft#196674)
1 parent 4698279 commit 5406176

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

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

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ registerThemingParticipant((theme, collector) => {
679679
let activeRecordingDimmedColor: Color | undefined;
680680
if (theme.type === ColorScheme.LIGHT || theme.type === ColorScheme.DARK) {
681681
activeRecordingColor = theme.getColor(ACTIVITY_BAR_BADGE_BACKGROUND) ?? theme.getColor(focusBorder);
682-
activeRecordingDimmedColor = activeRecordingColor?.transparent(0.4);
682+
activeRecordingDimmedColor = activeRecordingColor?.transparent(0.2);
683683
} else {
684684
activeRecordingColor = theme.getColor(contrastBorder);
685685
activeRecordingDimmedColor = theme.getColor(contrastBorder);
@@ -696,6 +696,28 @@ registerThemingParticipant((theme, collector) => {
696696
border-radius: 50%;
697697
}
698698
699+
.monaco-workbench:not(.reduce-motion) .interactive-input-part .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before,
700+
.monaco-workbench:not(.reduce-motion) .inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before {
701+
position: absolute;
702+
outline: 1px solid ${activeRecordingColor};
703+
outline-offset: 2px;
704+
border-radius: 50%;
705+
width: 16px;
706+
height: 16px;
707+
}
708+
709+
.monaco-workbench:not(.reduce-motion) .interactive-input-part .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::after,
710+
.monaco-workbench:not(.reduce-motion) .inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::after {
711+
content: '';
712+
position: absolute;
713+
outline: 1px solid ${activeRecordingDimmedColor};
714+
outline-offset: 3px;
715+
animation: pulseAnimation 1s infinite;
716+
border-radius: 50%;
717+
width: 16px;
718+
height: 16px;
719+
}
720+
699721
@keyframes pulseAnimation {
700722
0% {
701723
outline-width: 1px;

0 commit comments

Comments
 (0)