Skip to content

Commit 02a172d

Browse files
authored
chat - tweak animated setup dialog to animate angle (microsoft#249887)
1 parent c80442d commit 02a172d

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

build/lib/stylelint/vscode-known-variables.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,6 @@
957957
"--vscode-action-item-auto-timeout",
958958
"--monaco-editor-warning-decoration",
959959
"--animation-opacity",
960-
"--chat-setup-dialog-glow-progress"
960+
"--chat-setup-dialog-glow-angle"
961961
]
962962
}

src/vs/workbench/contrib/chat/browser/media/chatSetup.css

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,26 @@
55

66
/* Glowing Animation */
77

8-
@property --chat-setup-dialog-glow-progress {
9-
syntax: '<percentage>';
10-
initial-value: 0%;
8+
@property --chat-setup-dialog-glow-angle {
9+
syntax: '<angle>';
10+
initial-value: 0deg;
1111
inherits: false;
1212
}
1313

14-
@keyframes chat-setup-dialog-glow-progress-animation {
14+
@keyframes chat-setup-dialog-glow-angle-animation {
1515
0% {
16-
--chat-setup-dialog-glow-progress: -100%;
17-
}
18-
19-
50% {
20-
--chat-setup-dialog-glow-progress: 100%;
16+
--chat-setup-dialog-glow-angle: 0deg;
2117
}
2218

2319
100% {
24-
--chat-setup-dialog-glow-progress: -100%;
20+
--chat-setup-dialog-glow-angle: 360deg;
2521
}
2622
}
2723

2824
.chat-setup-dialog.chat-setup-glow {
2925
border: 2px solid !important;
30-
border-image: linear-gradient(45deg, var(--vscode-button-background) var(--chat-setup-dialog-glow-progress), var(--vscode-editorGutter-addedBackground)) 1 !important;
31-
animation: 3s chat-setup-dialog-glow-progress-animation linear infinite;
26+
border-image: linear-gradient(var(--chat-setup-dialog-glow-angle), var(--vscode-button-background) 0, var(--vscode-editorGutter-addedBackground)) 1 !important;
27+
animation: 3s chat-setup-dialog-glow-angle-animation linear infinite;
3228
}
3329

3430
.chat-setup-dialog {

0 commit comments

Comments
 (0)