Skip to content

Commit 5aea629

Browse files
lemurra_microsoftlemurra_microsoft
authored andcommitted
Refactor AI Stats Status Bar styles and update text for clarity
1 parent d45db6f commit 5aea629

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/vs/workbench/contrib/editTelemetry/browser/editStats/aiStatsStatusBar.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ export class AiStatsStatusBar extends Disposable {
7171
height: 6,
7272

7373
borderRadius: 6,
74-
border: '1px solid var(--vscode-statusBar-foreground)',
74+
borderWidth: '1px',
75+
borderStyle: 'solid',
7576
}
7677
},
7778
[
@@ -89,7 +90,7 @@ export class AiStatsStatusBar extends Disposable {
8990
n.div({
9091
style: {
9192
width: this._aiStatsFeature.aiRate.map(v => `${v * 100}%`),
92-
backgroundColor: 'var(--vscode-statusBar-foreground)',
93+
backgroundColor: 'currentColor',
9394
}
9495
})
9596
])
@@ -107,9 +108,6 @@ export class AiStatsStatusBar extends Disposable {
107108
n.div({
108109
class: 'header',
109110
style: {
110-
fontWeight: 'bold',
111-
fontSize: '14px',
112-
marginBottom: '4px',
113111
minWidth: '200px',
114112
}
115113
},
@@ -132,8 +130,8 @@ export class AiStatsStatusBar extends Disposable {
132130
),
133131

134132
n.div({ style: { display: 'flex' } }, [
135-
n.div({ style: { flex: 1 } }, [
136-
localize('text1', "Manual vs. AI typing ratio: {0}", aiRatePercent.get()),
133+
n.div({ style: { flex: 1, paddingRight: '4px' } }, [
134+
localize('text1', "Percentage of code generated by AI: {0}", aiRatePercent.get()),
137135
]),
138136
/*
139137
TODO: Write article that explains the ratio and link to it.
@@ -152,8 +150,9 @@ export class AiStatsStatusBar extends Disposable {
152150
}
153151
]))*/
154152
]),
155-
156-
localize('text2', "Accepted inline suggestions today: {0}", this._aiStatsFeature.acceptedInlineSuggestionsToday.get()),
153+
n.div({ style: { flex: 1, paddingRight: '4px' } }, [
154+
localize('text2', "Accepted inline suggestions today: {0}", this._aiStatsFeature.acceptedInlineSuggestionsToday.get()),
155+
]),
157156
]);
158157
}
159158
}

src/vs/workbench/contrib/editTelemetry/browser/editStats/media.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
align-items: center;
2020
color: var(--vscode-descriptionForeground);
2121
margin-bottom: 4px;
22+
font-size: 12px;
2223
font-weight: 600;
2324
}
2425

0 commit comments

Comments
 (0)