mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Revert "Update semantic color tokens" (#6365)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { theme } from '../semantic-colors.js';
|
||||
import { Colors } from '../colors.js';
|
||||
|
||||
// --- Thresholds ---
|
||||
export const TOOL_SUCCESS_RATE_HIGH = 95;
|
||||
@@ -23,10 +23,10 @@ export const getStatusColor = (
|
||||
options: { defaultColor?: string } = {},
|
||||
) => {
|
||||
if (value >= thresholds.green) {
|
||||
return theme.status.success;
|
||||
return Colors.AccentGreen;
|
||||
}
|
||||
if (value >= thresholds.yellow) {
|
||||
return theme.status.warning;
|
||||
return Colors.AccentYellow;
|
||||
}
|
||||
return options.defaultColor || theme.status.error;
|
||||
return options.defaultColor || Colors.AccentRed;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user