Skip to content

Commit

Permalink
Corrected notification msg when picking Auto color scheme ↞ [auto-syn…
Browse files Browse the repository at this point in the history
…c from `adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jul 1, 2024
1 parent c38bb64 commit 0d611cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions greasemonkey/duckduckgpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.7.1.9
// @version 2024.7.1.10
// @license MIT
// @icon https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302
// @icon64 https://media.ddgpt.com/images/icons/duckduckgpt/icon64.png?af89302
Expand Down Expand Up @@ -624,7 +624,7 @@
const newScheme = btnScheme == 'auto' ? ( chatgpt.isDarkMode() ? 'dark' : 'light' ) : btnScheme
saveSetting('scheme', newScheme == 'auto' ? false : newScheme)
document.querySelector('#scheme-menu-entry span').textContent = newScheme // update Settings menu status label
update.scheme(newScheme) ; schemeNotify(newScheme)
update.scheme(newScheme) ; schemeNotify(btnScheme)
schemeModal.querySelectorAll('button').forEach(btn => btn.classList = '') // clear prev emphasized active scheme
newBtn.classList = 'primary-modal-btn' // emphasize newly active scheme
newBtn.style.cssText = 'pointer-events: none' // disable hover fx to show emphasis
Expand Down

0 comments on commit 0d611cb

Please sign in to comment.