Skip to content

Commit

Permalink
Made light scheme app div bg not gradient when bg animations disabled…
Browse files Browse the repository at this point in the history
… ↞ [auto-sync from `adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jul 13, 2024
1 parent 20dc14f commit 0903503
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 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.12.6
// @version 2024.7.12.7
// @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 @@ -1496,7 +1496,9 @@
+ 'position: fixed ; top: 0 ; left: 0 ; width: 100% ; height: 100% ; z-index: 9999 ; cursor: ew-resize }'
+ '#ddgpt { border-radius: 8px ; padding: 17px 26px 16px ; flex-basis: 0 ; z-index: 5555 ;'
+ 'flex-grow: 1 ; word-wrap: break-word ; white-space: pre-wrap ; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06) ;'
+ `background-image: linear-gradient(180deg, ${ scheme == 'dark' ? '#99a8a6 -70%, black 57%' : '#b6ebff -64%, white 33%' }) ;`
+ `background-image: linear-gradient(180deg, ${
scheme == 'dark' ? '#99a8a6 -70%, black 57%'
: `${ config.bgAnimationsDisabled ? 'white' : '#b6ebff' } -64%, white 33%` }) ;`
+ ( !config.fgAnimationsDisabled ?
'transition: bottom 0.1s cubic-bezier(0.4, 0, 0.2, 1),' // smoothen Anchor vertical minimize/restore
+ 'width 0.167s cubic-bezier(0, 0, 0.2, 1),' // smoothen Anchor horizontal expand/shrink
Expand Down Expand Up @@ -1961,7 +1963,7 @@

animations(layer) {
saveSetting(layer + 'AnimationsDisabled', !config[layer + 'AnimationsDisabled'])
update[layer == 'bg' ? 'stars' : 'appStyle']()
update.appStyle() ; if (layer == 'bg') update.stars()
if (layer == 'fg' && modals.settings.get()) {

// Toggle ticker-scroll of About status label
Expand Down

0 comments on commit 0903503

Please sign in to comment.