Skip to content

Commit 1a3e314

Browse files
committed
Abstracted --chatbar-btn-color-<light|dark>-scheme, edited whitespace for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/amazongpt]
1 parent 43fe407 commit 1a3e314

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o!
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.10.14
6+
// @version 2025.10.14.1
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c
@@ -291,7 +291,8 @@
291291
--reply-header-bg-color-light-scheme: #d7d4d4 ;
292292
--reply-header-bg-color-dark-scheme: ${ !isParticlizedDS ? '#545454' : '#0e0e0e24' };
293293
--reply-header-fg-color-light-scheme: white ; --reply-header-fg-color-dark-scheme: white ;
294-
--chatbar-btn-hover-color-light-scheme: #638ed4 ; --chatbar-btn-hover-color-dark-scheme: white ;
294+
--chatbar-btn-color-light-scheme: lightgrey ; --chatbar-btn-color-dark-scheme: #fff ;
295+
--chatbar-btn-hover-color-light-scheme: #638ed4 ; --chatbar-btn-hover-color-dark-scheme: #fff ;
295296
--font-color-light-scheme: #4e4e4e ; --font-color-dark-scheme: #e3e3e3 ;
296297
--app-border: ${ isParticlizedDS ? 'none'
297298
: `1px solid #${ env.ui.app.scheme == 'light' ? 'dadce0' : '3b3b3b' }`};
@@ -525,18 +526,22 @@
525526
${ isParticlizedDS ? '' :
526527
`--inset-shadow: 0 ${
527528
env.ui.app.scheme == 'dark' ? '3px -1px' : '1px 2px' } rgba(0,0,0,0.3) inset ;
528-
box-shadow: var(--inset-shadow) ; -webkit-box-shadow: var(--inset-shadow) ;
529-
-moz-box-shadow: var(--inset-shadow)`}}
529+
box-shadow: var(--inset-shadow) ;
530+
-webkit-box-shadow: var(--inset-shadow) ; -moz-box-shadow: var(--inset-shadow)` }
531+
}
530532
.${app.slug}-chatbar-btn {
531533
z-index: 560 ; border: none ; float: right ; position: relative ;
532534
bottom: 50px ; background: none ; cursor: pointer ;
533535
transform: scale(1.05) ; /* zoom 'em a bit */
534-
${ env.ui.app.scheme == 'dark' ? 'color: #aaa ; fill: #aaa ; stroke: #aaa'
535-
: 'color: lightgrey ; fill: lightgrey ; stroke: lightgrey' }}
536+
color: var(--chatbar-btn-color-${env.ui.app.scheme}-scheme) ;
537+
fill: var(--chatbar-btn-color-${env.ui.app.scheme}-scheme) ;
538+
stroke: var(--chatbar-btn-color-${env.ui.app.scheme}-scheme)
539+
}
536540
.${app.slug}-chatbar-btn:hover {
537541
color: var(--chatbar-btn-hover-color-${env.ui.app.scheme}-scheme) ;
538542
fill: var(--chatbar-btn-hover-color-${env.ui.app.scheme}-scheme) ;
539-
stroke: var(--chatbar-btn-hover-color-${env.ui.app.scheme}-scheme) }`
543+
stroke: var(--chatbar-btn-hover-color-${env.ui.app.scheme}-scheme)
544+
}`
540545

541546
// Footer styles
542547
+ `#${app.slug} + footer { margin: 2px 0 25px ; position: relative }

0 commit comments

Comments
 (0)