Skip to content

Commit ca51a1b

Browse files
google-genai-botcopybara-github
authored andcommitted
ADK changes
PiperOrigin-RevId: 814390521
1 parent cfb85c3 commit ca51a1b

20 files changed

+424
-233
lines changed

src/app/components/artifact-tab/artifact-tab.component.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
.artifact-container {
1817
display: flex;
1918
flex-wrap: wrap;
@@ -36,7 +35,7 @@
3635
}
3736

3837
.download-button {
39-
background-color: #8ab4f8 !important;
38+
background-color: var(--artifact-tab-download-button-background-color) !important;
4039
margin-left: 35px;
4140
width: 130px;
4241
height: 28px;
@@ -51,13 +50,13 @@
5150

5251
hr.white-separator {
5352
border: none;
54-
border-top: 1px solid white;
53+
border-top: 1px solid var(--artifact-tab-white-separator-border-top-color);
5554
margin-bottom: 1.2em;
5655
margin-right: 15px;
5756
}
5857

5958
.version-select-container {
60-
background-color: #212123;
59+
background-color: var(--artifact-tab-version-select-container-background-color);
6160
width: 80px;
6261
margin-left: 15px;
6362
}
@@ -67,27 +66,27 @@ hr.white-separator {
6766
border: none;
6867
padding: 0;
6968
font: inherit;
70-
color: #007bff !important;
69+
color: var(--artifact-tab-link-style-button-color) !important;
7170
text-decoration: underline;
7271
cursor: pointer;
7372
outline: none;
7473
}
7574

7675
.link-style-button:hover {
77-
color: #0056b3;
76+
color: var(--artifact-tab-link-style-button-hover-color);
7877
text-decoration: underline;
7978
}
8079

8180
.link-style-button:focus {
82-
outline: 1px dotted #007bff;
81+
outline: 1px dotted var(--artifact-tab-link-style-button-focus-outline-color);
8382
}
8483

8584
.link-style-button:active {
86-
color: #004085;
85+
color: var(--artifact-tab-link-style-button-active-color);
8786
}
8887

8988
.link-style-button:disabled {
90-
color: #6c757d;
89+
color: var(--artifact-tab-link-style-button-disabled-color);
9190
text-decoration: none;
9291
cursor: not-allowed;
9392
}

src/app/components/audio-player/audio-player.component.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
justify-content: center;
55
align-items: center;
66
padding: 15px;
7-
background-color: #f0f0f0;
7+
background-color: var(--audio-player-container-background-color);
88
border-radius: 8px;
9-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
9+
box-shadow: 0 2px 5px var(--audio-player-container-box-shadow-color);
1010
margin: 20px auto;
1111
max-width: 350px;
1212
}
@@ -29,13 +29,13 @@ audio {
2929
padding: 8px 15px;
3030
border: none;
3131
border-radius: 5px;
32-
background-color: #007bff;
33-
color: white;
32+
background-color: var(--audio-player-custom-controls-button-background-color);
33+
color: var(--audio-player-custom-controls-button-color);
3434
cursor: pointer;
3535
font-size: 14px;
3636
transition: background-color 0.2s ease;
3737
}
3838

3939
.custom-controls button:hover {
40-
background-color: #0056b3;
40+
background-color: var(--audio-player-custom-controls-button-hover-background-color);
4141
}

src/app/components/chat-panel/chat-panel.component.html

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
} @if (!message.functionCall && !message.functionResponse) {
3737
<mat-card
3838
class="message-card"
39-
[ngClass]="{ 'eval-fail': message.evalStatus === 2 }"
40-
[ngStyle]="{
41-
'background-color': shouldMessageHighlighted(i) ? 'rgb(15, 82, 35)' : ''
42-
}"
39+
[ngClass]="{
40+
'eval-fail': message.evalStatus === 2,
41+
'message-card--highlighted': shouldMessageHighlighted(i)
42+
}"
4343
>
4444
@if (message.isLoading) {
4545
<mat-progress-bar class="loading-bar" mode="buffer"></mat-progress-bar>
@@ -75,29 +75,15 @@
7575
></textarea>
7676
<div class="edit-message-buttons-container">
7777
<span
78-
class="material-symbols-outlined"
78+
class="material-symbols-outlined cancel-edit-button"
7979
[matTooltip]="i18n.cancelEditingTooltip"
80-
style="
81-
width: 24px;
82-
height: 24px;
83-
color: #c4c7c5;
84-
cursor: pointer;
85-
margin-right: 16px;
86-
"
8780
(click)="cancelEditMessage.emit(message)"
8881
>
8982
close
9083
</span>
9184
<span
92-
class="material-symbols-outlined"
85+
class="material-symbols-outlined save-edit-button"
9386
[matTooltip]="i18n.saveEvalMessageTooltip"
94-
style="
95-
width: 24px;
96-
height: 24px;
97-
color: rgb(97, 151, 202);
98-
cursor: pointer;
99-
margin-right: 16px;
100-
"
10187
(click)="saveEditMessage.emit(message)"
10288
>
10389
check
@@ -346,7 +332,6 @@
346332
(ngModelChange)="userInputChange.emit($event)"
347333
(keydown.enter)="sendMessage.emit($event)"
348334
[placeholder]="i18n.typeMessagePlaceholder"
349-
style="caret-color: white"
350335
></textarea>
351336
<div class="chat-input-actions">
352337
<div>
@@ -377,9 +362,8 @@
377362
mat-icon-button
378363
matSuffix
379364
(click)="toggleAudioRecording.emit()"
380-
[ngStyle]="{
381-
'background-color': isAudioRecording ? 'rgb(234, 67, 53)' : 'rgb(51, 53, 55)'
382-
}"
365+
class="audio-rec-btn"
366+
[class.recording]="isAudioRecording"
383367
[matTooltip]="isAudioRecording ? i18n.turnOffMicTooltip : i18n.useMicTooltip"
384368
[disabled]="!(isBidiStreamingEnabledObs | async)"
385369
>
@@ -389,9 +373,8 @@
389373
mat-icon-button
390374
matSuffix
391375
(click)="toggleVideoRecording.emit()"
392-
[ngStyle]="{
393-
'background-color': isVideoRecording ? 'rgb(234, 67, 53)' : 'rgb(51, 53, 55)'
394-
}"
376+
class="video-rec-btn"
377+
[class.recording]="isVideoRecording"
395378
[matTooltip]="isVideoRecording ? i18n.turnOffCamTooltip : i18n.useCamTooltip"
396379
[disabled]="!(isBidiStreamingEnabledObs | async)"
397380
>

0 commit comments

Comments
 (0)