Skip to content

Commit

Permalink
Colored active checkmark in Pin button menu green ↞ [auto-sync from `…
Browse files Browse the repository at this point in the history
…adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jul 13, 2024
1 parent 100f06e commit e52c6fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 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.12.8
// @version 2024.7.12.9
// @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 @@ -1174,7 +1174,7 @@
checkmark: {
create() {
const checkmarkSVG = document.createElementNS('http://www.w3.org/2000/svg', 'svg'),
checkmarkSVGattrs = [['width', 10], ['height', 10], ['viewBox', '0 0 20 20']]
checkmarkSVGattrs = [['id', 'checkmark-icon'], ['width', 10], ['height', 10], ['viewBox', '0 0 20 20']]
checkmarkSVGattrs.forEach(([attr, value]) => checkmarkSVG.setAttribute(attr, value))
checkmarkSVG.append(createSVGelem('path', { stroke: 'none', d: 'M0 11l2-2 5 5L18 3l2 2L7 18z' }))
return checkmarkSVG
Expand Down Expand Up @@ -1635,6 +1635,7 @@
+ '.ddgpt-menu-item { padding: 0 5px ; line-height: 20.5px }'
+ '.ddgpt-menu-item:not(.ddgpt-menu-header):hover {'
+ 'cursor: pointer ; background: white ; color: black ; fill: black }'
+ '#checkmark-icon { fill: #b3f96d } .ddgpt-menu-item:hover #checkmark-icon { fill: green }'

// Glowing modal btns
+ ':root { --glow-color: hsl(186 100% 69%); }'
Expand Down

0 comments on commit e52c6fa

Please sign in to comment.