pi-openai-usage 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +1 -1
- package/src/color.ts +5 -5
- package/src/config.ts +5 -5
package/README.md
CHANGED
|
@@ -145,15 +145,15 @@ Use the interactive menu for common display settings. Advanced visual customizat
|
|
|
145
145
|
| `colors.custom.mode` | string | `"step"` | `step`, `gradient`. |
|
|
146
146
|
| `colors.custom.stops` | array | see below | Array of color stops sorted by `percent`. |
|
|
147
147
|
|
|
148
|
-
Default `colors.custom.stops
|
|
148
|
+
Default `colors.custom.stops` (matching the built-in traffic scheme):
|
|
149
149
|
|
|
150
150
|
| percent | color | label |
|
|
151
151
|
| --- | --- | --- |
|
|
152
|
-
| `80` | `
|
|
153
|
-
| `60` | `#
|
|
154
|
-
| `40` | `
|
|
155
|
-
| `20` | `#
|
|
156
|
-
| `0` | `
|
|
152
|
+
| `80` | `#22c55e` | `green` |
|
|
153
|
+
| `60` | `#84cc16` | `lime` |
|
|
154
|
+
| `40` | `#eab308` | `yellow` |
|
|
155
|
+
| `20` | `#f97316` | `orange` |
|
|
156
|
+
| `0` | `#ef4444` | `red` |
|
|
157
157
|
|
|
158
158
|
Each custom color stop has this shape:
|
|
159
159
|
|
package/package.json
CHANGED
package/src/color.ts
CHANGED
|
@@ -39,11 +39,11 @@ const PI_THEME_COLOR_TOKENS = new Set<PiThemeColorToken>([
|
|
|
39
39
|
]);
|
|
40
40
|
|
|
41
41
|
const TRAFFIC_STOPS: ColorStop[] = [
|
|
42
|
-
{ percent: 80, color: "
|
|
43
|
-
{ percent: 60, color: "#
|
|
44
|
-
{ percent: 40, color: "
|
|
45
|
-
{ percent: 20, color: "#
|
|
46
|
-
{ percent: 0, color: "
|
|
42
|
+
{ percent: 80, color: "#22c55e" },
|
|
43
|
+
{ percent: 60, color: "#84cc16" },
|
|
44
|
+
{ percent: 40, color: "#eab308" },
|
|
45
|
+
{ percent: 20, color: "#f97316" },
|
|
46
|
+
{ percent: 0, color: "#ef4444" },
|
|
47
47
|
];
|
|
48
48
|
|
|
49
49
|
const CYAN_DARK_STOPS: ColorStop[] = [
|
package/src/config.ts
CHANGED
|
@@ -183,11 +183,11 @@ export type UsageConfigPatch = {
|
|
|
183
183
|
};
|
|
184
184
|
|
|
185
185
|
const DEFAULT_COLOR_STOPS: ColorStop[] = [
|
|
186
|
-
{ percent: 80, color: "
|
|
187
|
-
{ percent: 60, color: "#
|
|
188
|
-
{ percent: 40, color: "
|
|
189
|
-
{ percent: 20, color: "#
|
|
190
|
-
{ percent: 0, color: "
|
|
186
|
+
{ percent: 80, color: "#22c55e", label: "green" },
|
|
187
|
+
{ percent: 60, color: "#84cc16", label: "lime" },
|
|
188
|
+
{ percent: 40, color: "#eab308", label: "yellow" },
|
|
189
|
+
{ percent: 20, color: "#f97316", label: "orange" },
|
|
190
|
+
{ percent: 0, color: "#ef4444", label: "red" },
|
|
191
191
|
];
|
|
192
192
|
|
|
193
193
|
export const DEFAULT_USAGE_CONFIG: UsageConfig = {
|