Skip to content

Commit 7a527c1

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/bravegpt]
1 parent 1a3e314 commit 7a527c1

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

chatgpt/bravegpt/bravegpt.user.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.10.14
151+
// @version 2025.10.14.1
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/app/icon48.png?v=e8ca7c2
154154
// @icon64 https://assets.bravegpt.com/images/icons/app/icon64.png?v=e8ca7c2
@@ -437,7 +437,8 @@
437437
--reply-header-bg-color-light-scheme: #d7d4d4 ;
438438
--reply-header-bg-color-dark-scheme: ${ !isParticlizedDS ? '#545454' : '#0e0e0e24' };
439439
--reply-header-fg-color-light-scheme: white ; --reply-header-fg-color-dark-scheme: white ;
440-
--chatbar-btn-hover-color-light-scheme: #638ed4 ; --chatbar-btn-hover-color-dark-scheme: white ;
440+
--chatbar-btn-color-light-scheme: lightgrey ; --chatbar-btn-color-dark-scheme: #fff ;
441+
--chatbar-btn-hover-color-light-scheme: #638ed4 ; --chatbar-btn-hover-color-dark-scheme: #fff ;
441442
--font-color-light-scheme: #4e4e4e ; --font-color-dark-scheme: #e3e3e3 ;
442443
--app-border: ${ isParticlizedDS ? 'none' : '1px solid var(--color-divider-subtle)' };
443444
--app-gradient-bg: linear-gradient(180deg, ${
@@ -715,19 +716,23 @@
715716
${ isParticlizedDS ? '' :
716717
`--inset-shadow: 0 ${
717718
env.ui.app.scheme == 'dark' ? '3px -1px' : '1px 2px' } rgba(0,0,0,0.3) inset ;
718-
box-shadow: var(--inset-shadow) ; -webkit-box-shadow: var(--inset-shadow) ;
719-
-moz-box-shadow: var(--inset-shadow)`}}
719+
box-shadow: var(--inset-shadow) ;
720+
-webkit-box-shadow: var(--inset-shadow) ; -moz-box-shadow: var(--inset-shadow)` }
721+
}
720722
.${app.slug}-chatbar-btn {
721723
z-index: 560 ;
722724
border: none ; float: right ; position: relative ; background: none ; cursor: pointer ;
723725
bottom: ${ env.browser.isFF ? 26 : 30 }px ;
724726
transform: scale(1.05) ; margin-right: 3px ; /* zoom 'em a bit */
725-
${ env.ui.app.scheme == 'dark' ? 'color: #aaa ; fill: #aaa ; stroke: #aaa'
726-
: 'color: lightgrey ; fill: lightgrey ; stroke: lightgrey' }}
727+
color: var(--chatbar-btn-color-${env.ui.app.scheme}-scheme) ;
728+
fill: var(--chatbar-btn-color-${env.ui.app.scheme}-scheme) ;
729+
stroke: var(--chatbar-btn-color-${env.ui.app.scheme}-scheme)
730+
}
727731
.${app.slug}-chatbar-btn:hover {
728732
color: var(--chatbar-btn-hover-color-${env.ui.app.scheme}-scheme) ;
729733
fill: var(--chatbar-btn-hover-color-${env.ui.app.scheme}-scheme) ;
730-
stroke: var(--chatbar-btn-hover-color-${env.ui.app.scheme}-scheme) }`
734+
stroke: var(--chatbar-btn-hover-color-${env.ui.app.scheme}-scheme)
735+
}`
731736

732737
// Related Queries styles
733738
+ `.${app.slug}-related-queries {

0 commit comments

Comments
 (0)