From be8fd15e92a2a31fcbf6a24803e211e42a304198 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 6 Apr 2025 16:50:29 +0200 Subject: [PATCH] gpts: show provider logo on active dropdown item --- .config/ags/modules/sideleft/apis/chatgpt.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/ags/modules/sideleft/apis/chatgpt.js b/.config/ags/modules/sideleft/apis/chatgpt.js index 9385ed5e5..b3e578a14 100644 --- a/.config/ags/modules/sideleft/apis/chatgpt.js +++ b/.config/ags/modules/sideleft/apis/chatgpt.js @@ -57,13 +57,17 @@ const ProviderSwitcher = () => { setup: setupCursorHover, }); } + let indicatorIcon = Icon({ + icon: GPTService.providers[userOptions.ai.defaultGPTProvider]['logo_name'], + className: 'txt-large' + }); const indicatorChevron = MaterialIcon('expand_more', 'norm'); const indicatorButton = Button({ tooltipText: getString('Select ChatGPT-compatible API provider'), child: Box({ className: 'spacing-h-10 txt', children: [ - MaterialIcon('cloud', 'norm'), + indicatorIcon, Label({ hexpand: true, xalign: 0,