forked from Shinonome/dots-hyprland
gpts: show provider logo on active dropdown item
This commit is contained in:
@@ -57,13 +57,17 @@ const ProviderSwitcher = () => {
|
|||||||
setup: setupCursorHover,
|
setup: setupCursorHover,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
let indicatorIcon = Icon({
|
||||||
|
icon: GPTService.providers[userOptions.ai.defaultGPTProvider]['logo_name'],
|
||||||
|
className: 'txt-large'
|
||||||
|
});
|
||||||
const indicatorChevron = MaterialIcon('expand_more', 'norm');
|
const indicatorChevron = MaterialIcon('expand_more', 'norm');
|
||||||
const indicatorButton = Button({
|
const indicatorButton = Button({
|
||||||
tooltipText: getString('Select ChatGPT-compatible API provider'),
|
tooltipText: getString('Select ChatGPT-compatible API provider'),
|
||||||
child: Box({
|
child: Box({
|
||||||
className: 'spacing-h-10 txt',
|
className: 'spacing-h-10 txt',
|
||||||
children: [
|
children: [
|
||||||
MaterialIcon('cloud', 'norm'),
|
indicatorIcon,
|
||||||
Label({
|
Label({
|
||||||
hexpand: true,
|
hexpand: true,
|
||||||
xalign: 0,
|
xalign: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user