mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-04 04:22:45 +00:00
Refactor color assignment logic in ZenGradientGenerator for improved readability
This commit is contained in:
@@ -1051,8 +1051,9 @@
|
||||
if (dominantColor) {
|
||||
browser.document.documentElement.style.setProperty(
|
||||
'--zen-primary-color',
|
||||
typeof dominantColor === 'string' ? dominantColor :
|
||||
`rgb(${dominantColor[0]}, ${dominantColor[1]}, ${dominantColor[2]})`
|
||||
typeof dominantColor === 'string'
|
||||
? dominantColor
|
||||
: `rgb(${dominantColor[0]}, ${dominantColor[1]}, ${dominantColor[2]})`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user