Update toolwindow UI (#290)

This commit is contained in:
Carl-Robert 2023-11-26 10:52:47 +02:00 committed by GitHub
parent 3797126de4
commit 1df20ccb86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 538 additions and 356 deletions

View file

@ -11,21 +11,21 @@ public class ModelIconLabel extends JBLabel {
public ModelIconLabel(String clientCode, String modelCode) {
if ("you.chat.completion".equals(clientCode)) {
setIcon(Icons.YouIcon);
setIcon(Icons.You);
return;
}
if ("chat.completion".equals(clientCode)) {
setIcon(Icons.OpenAIIcon);
setIcon(Icons.OpenAI);
}
if ("azure.chat.completion".equals(clientCode)) {
setIcon(Icons.AzureIcon);
setIcon(Icons.Azure);
}
if ("llama.chat.completion".equals(clientCode)) {
setIcon(Icons.LlamaIcon);
setIcon(Icons.Llama);
}
setText(formatModelName(modelCode));
setFont(JBFont.small().asBold());
setFont(JBFont.small());
setHorizontalAlignment(SwingConstants.LEADING);
}