File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ const handleCustomColor = (() => {
130
130
textColor,
131
131
textHoverColor,
132
132
buttonColor,
133
+ darkButtonColor,
133
134
lineOfCurveGraphColor : lineColor ,
134
135
shadowOfCurveGraphColor : shadowColor ,
135
136
} = customColorJSON ;
@@ -152,9 +153,9 @@ const handleCustomColor = (() => {
152
153
}
153
154
154
155
adjustRgb = adjustColor ( customRgbDark , baseRgbDark , '#2A4365' ) ;
155
- if ( buttonColor ) {
156
- defaultCustomColor . panelBtnDark = rgbFormatRegex . test ( buttonColor ) ? buttonColor :
157
- `rgb(${ hexToRgb ( buttonColor ) . r } , ${ hexToRgb ( buttonColor ) . g } , ${ hexToRgb ( buttonColor ) . b } )` ;
156
+ if ( darkButtonColor ) {
157
+ defaultCustomColor . panelBtnDark = rgbFormatRegex . test ( darkButtonColor ) ? darkButtonColor :
158
+ `rgb(${ hexToRgb ( darkButtonColor ) . r } , ${ hexToRgb ( darkButtonColor ) . g } , ${ hexToRgb ( darkButtonColor ) . b } )` ;
158
159
} else {
159
160
defaultCustomColor . panelBtnDark = `rgb(${ adjustRgb . r } , ${ adjustRgb . g } , ${ adjustRgb . b } )` ;
160
161
}
You can’t perform that action at this time.
0 commit comments