From d56860c527a86056581968de3f6e38e00801b793 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 20 Jan 2024 23:40:17 +0700 Subject: [PATCH] chatgpt: fix logo (#195) --- .config/ags/widgets/sideleft/apis/chatgpt.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/ags/widgets/sideleft/apis/chatgpt.js b/.config/ags/widgets/sideleft/apis/chatgpt.js index 620fe115..524f5dbd 100644 --- a/.config/ags/widgets/sideleft/apis/chatgpt.js +++ b/.config/ags/widgets/sideleft/apis/chatgpt.js @@ -27,13 +27,13 @@ const ChatGPTInfo = () => { hpack: 'center', className: 'sidebar-chat-welcome-logo', icon: `${App.configDir}/assets/openai-logomark.svg`, - setup: (self) => Utils.timeout(1, () => { + setup: (self) => Utils.timeout(400, () => { // A long wait, but no one's going to open sidebar right on init anyway const styleContext = self.get_style_context(); const width = styleContext.get_property('min-width', Gtk.StateFlags.NORMAL); const height = styleContext.get_property('min-height', Gtk.StateFlags.NORMAL); self.size = Math.max(width, height, 1) * 116 / 180; // Why such a specific proportion? See https://openai.com/brand#logos }) - }); + }) return Box({ vertical: true, className: 'spacing-v-15', @@ -92,7 +92,7 @@ export const ChatGPTSettings = () => MarginRevealer({ { value: 0.50, name: 'Balanced', }, { value: 1.00, name: 'Creative', }, ], - initIndex: 1, + initIndex: 2, onChange: (value, name) => { ChatGPT.temperature = value; },