Skip to content

Commit 6be86ee

Browse files
committed
Reposition scan icon and use default color
1 parent 2d6db93 commit 6be86ee

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

packages/ai-scanoss/src/browser/ai-scanoss-code-scan-action.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class ScanOSSScanButtonAction implements CodePartRendererAction {
5050
@inject(PreferenceService)
5151
protected readonly preferenceService: PreferenceService;
5252

53-
priority = 30;
53+
priority = 0;
5454

5555
canRender(response: CodeChatResponseContent, parentNode: ResponseNode): boolean {
5656
if (!hasScanOSSResults(parentNode.response.data)) {

packages/ai-scanoss/src/browser/style/index.css

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,10 @@
4444
border-radius: 50%;
4545
}
4646

47-
.scanoss-icon.clean::before {
48-
background-color: rgba(46, 125, 50, 0.3); /* translucent green */
49-
}
50-
51-
.scanoss-icon.match::before {
52-
background-color: rgba(249, 215, 116, 0.3); /* translucent yellow */
53-
}
54-
47+
.scanoss-icon.match::before,
48+
.scanoss-icon.clean::before,
5549
.scanoss-icon.error::before {
56-
background-color: rgba(210, 72, 72, 0.3); /* translucent red */
50+
background-color: var(--theia-disabledForeground);
5751
}
5852

5953
.icon-container {
@@ -69,6 +63,12 @@
6963
mask-size: 16px;
7064
}
7165

66+
.icon-container.scanoss-icon.clean,
67+
.icon-container.scanoss-icon.match,
68+
.icon-container.scanoss-icon.error {
69+
margin-right: 6px;
70+
}
71+
7272
/* The placeholder is used to align with the remaining actions, however it should not be visible*/
7373
.scanoss-icon .placeholder {
7474
visibility: hidden;
@@ -188,9 +188,10 @@
188188
background-color: var(--theia-button-background);
189189
}
190190

191+
.theia-changeSet-scanOss .scanoss-icon.clean,
191192
.theia-changeSet-scanOss .scanoss-icon.match,
192193
.theia-changeSet-scanOss .scanoss-icon.error {
193-
margin-right: 6px;
194+
margin-right: 0px;
194195
}
195196

196197
.theia-changeSet-scanOss .status-icon {

0 commit comments

Comments
 (0)