PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 1.4.0
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v1.4.0
2.1.3 2.1.2 2.1.1 2.1.0 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 trunk 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 All 57 releases
darkify / src / Admin / Views / ColorControl.php

ColorControl.php in Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) 1.4.0, at src/Admin/Views/ColorControl.php

733 lines 49.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Views class for Shortcode generator options.
5 *
6 * @link https://themeatelier.net
7 * @since 1.0.0
8 *
9 * @package darkify
10 * @subpackage darkify/src/Admin/Views/ColorControl
11 * @author ThemeAtelier<themeatelierbd@gmail.com>
12 */
13
14 namespace ThemeAtelier\Darkify\Admin\Views;
15
16 use ThemeAtelier\Darkify\Admin\Framework\Classes\Darkify;
17
18 class ColorControl
19 {
20 /**
21 * Create Option fields for the setting options.
22 *
23 * @param string $prefix Option setting key prefix.
24 * @return void
25 */
26 public static function options($prefix)
27 {
28 Darkify::createSection($prefix, array(
29 'title' => esc_html__('COLORS', 'darkify'),
30 'icon' => 'icofont-paint',
31 'fields' => array(
32
33 array(
34 'type' => 'section_tab',
35 'tabs' => array(
36 array(
37 'title' => esc_html__('Preset', 'darkify'),
38 'icon' => 'icofont-color-bucket',
39 'fields' => array(
40 array(
41 'id' => 'color_pallets',
42 'type' => 'palette',
43 'class' => 'darkify_preset',
44 'title' => esc_html__('Choose A Preset', 'darkify'),
45 'title_help' => '<div class="darkify-info-label">' . __( 'Choose from pre-made dark mode color presets.', 'darkify' ) . '</div><a class="tooltip_btn_primary" href="https://darkifywp.com/colors/" target="_blank">' . __( 'Live Demo', 'darkify' ) . '</a><a class="tooltip_btn_secondary" href="https://docs.themeatelier.net/docs/darkify-pro/darkify-settings/colors/" target="_blank">' . __( 'Open Docs', 'darkify' ) . '</a>',
46 'options' => array(
47 'set1' => array('#0F0F0F', '#BEBEBE', '#2D2D2D', '#4A4A4A', '#2D2D2D'),
48 'set2' => array('#092635', '#1B4242', '#5C8374', '#9EC8B9', '#5C8374'),
49 'set3' => array('#363062', '#435585', '#818FB4', '#F5E8C7', '#818FB4'),
50 'set4' => array('#22092C', '#435585', '#818FB4', '#F5E8C7', '#818FB4'),
51 'set5' => array('#352F44', '#5C5470', '#B9B4C7', '#FAF0E6', '#B9B4C7'),
52 'set6' => array('#082032', '#2C394B', '#334756', '#FF4C29', '#334756'),
53 'set7' => array('#1D2D50', '#133B5C', '#1E5F74', '#FCDAB7', '#1E5F74'),
54 'set8' => array('#142850', '#27496D', '#0C7B93', '#00A8CC', '#0C7B93'),
55 ),
56 'default' => 'set1',
57 ),
58 array(
59 'type' => 'subheading',
60 'title' => esc_html__('Customize Selected Preset', 'darkify'),
61 ),
62
63 // color pallate set 1
64 array(
65 'id' => 'dark_mode_color_set1',
66 'type' => 'color_group',
67 'title' => esc_html__('Background', 'darkify'),
68 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
69 'dependency' => array('color_pallets', '==', 'set1', 'all'),
70 'options' => array(
71 'background' => esc_html__('Primary BG', 'darkify'),
72 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
73 ),
74 'default' => array(
75 'background' => '#0F0F0F',
76 'secondary_background' => '#171717',
77 ),
78 ),
79 array(
80 'id' => 'dark_mode_link_color_set1',
81 'type' => 'color_group',
82 'title' => esc_html__('Text', 'darkify'),
83 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
84 'dependency' => array('color_pallets', '==', 'set1', 'all'),
85 'class' => 'only_pro',
86 'options' => array(
87 'text' => esc_html__('Text Color', 'darkify'),
88 'color' => esc_html__('Link Color', 'darkify'),
89 'hover' => esc_html__('Link Hover Color', 'darkify'),
90 ),
91 'default' => array(
92 'text' => '#BEBEBE',
93 'color' => '#FFFFFF',
94 'hover' => '#CCCCCC',
95 ),
96 ),
97 array(
98 'id' => 'dark_mode_input_color_set1',
99 'type' => 'color_group',
100 'title' => esc_html__('Input', 'darkify'),
101 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
102 'dependency' => array('color_pallets', '==', 'set1', 'all'),
103 'class' => 'only_pro',
104 'options' => array(
105 'color' => esc_html__('Input Text', 'darkify'),
106 'placeholder' => esc_html('Input Placeholder', 'darkify'),
107 'background' => esc_html('Input Background', 'darkify'),
108 ),
109 'default' => array(
110 'color' => '#2D2D2D',
111 'placeholder' => '#989898',
112 'background' => '#BEBEBE',
113 ),
114 ),
115 array(
116 'id' => 'dark_mode_border_color_set1',
117 'type' => 'color',
118 'title' => esc_html__('Border', 'darkify'),
119 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
120 'class' => 'only_pro',
121 'dependency' => array('color_pallets', '==', 'set1', 'all'),
122 'default' => '#4A4A4A',
123 ),
124 array(
125 'id' => 'dark_mode_btn_color_set1',
126 'type' => 'color_group',
127 'title' => esc_html__('Button', 'darkify'),
128 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
129 'class' => 'only_pro',
130 'dependency' => array('color_pallets', '==', 'set1', 'all'),
131 'options' => array(
132 'color' => esc_html__('Button Text', 'darkify'),
133 'background' => esc_html('Button Background', 'darkify'),
134 ),
135 'default' => array(
136 'color' => '#2D2D2D',
137 'background' => '#BEBEBE',
138 ),
139 ),
140 // color pallate set 2
141 array(
142 'id' => 'dark_mode_color_set2',
143 'type' => 'color_group',
144 'title' => esc_html__('Background', 'darkify'),
145 'title_help' => '<div class="darkify-info-label">' . __( 'Set the background color of your website when dark mode is enabled.', 'darkify' ) . '</div>',
146 'dependency' => array('color_pallets', '==', 'set2', 'all'),
147 'options' => array(
148 'background' => esc_html__('Primary BG', 'darkify'),
149 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
150 ),
151 'default' => array(
152 'background' => '#092635',
153 'secondary_background' => '#1B4242',
154 ),
155 ),
156 array(
157 'id' => 'dark_mode_link_color_set2',
158 'type' => 'color_group',
159 'title' => esc_html__('Text', 'darkify'),
160 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
161 'class' => 'only_pro',
162 'dependency' => array('color_pallets', '==', 'set2', 'all'),
163 'options' => array(
164 'text' => esc_html__('Text Color', 'darkify'),
165 'color' => esc_html__('Link Color', 'darkify'),
166 'hover' => esc_html__('Link Hover Color', 'darkify'),
167 ),
168 'default' => array(
169 'text' => '#9EC8B9',
170 'color' => '#FFFFFF',
171 'hover' => '#9EC8B9',
172 ),
173 ),
174 array(
175 'id' => 'dark_mode_input_color_set2',
176 'type' => 'color_group',
177 'title' => esc_html__('Input', 'darkify'),
178 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
179 'class' => 'only_pro',
180 'dependency' => array('color_pallets', '==', 'set2', 'all'),
181 'options' => array(
182 'color' => esc_html__('Input Text', 'darkify'),
183 'placeholder' => esc_html('Input Placeholder', 'darkify'),
184 'background' => esc_html('Input Background', 'darkify'),
185 ),
186 'default' => array(
187 'color' => '#092635',
188 'placeholder' => '#989898',
189 'background' => '#BEBEBE',
190 ),
191 ),
192 array(
193 'id' => 'dark_mode_border_color_set2',
194 'type' => 'color',
195 'title' => esc_html__('Border', 'darkify'),
196 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
197 'class' => 'only_pro',
198 'dependency' => array('color_pallets', '==', 'set2', 'all'),
199 'default' => '#5C8374',
200 ),
201 array(
202 'id' => 'dark_mode_btn_color_set2',
203 'type' => 'color_group',
204 'title' => esc_html__('Button', 'darkify'),
205 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
206 'class' => 'only_pro',
207 'dependency' => array('color_pallets', '==', 'set2', 'all'),
208 'options' => array(
209 'color' => esc_html__('Button Text', 'darkify'),
210 'background' => esc_html('Button Background', 'darkify'),
211 ),
212 'default' => array(
213 'color' => '#1B4242',
214 'background' => '#BEBEBE',
215 ),
216 ),
217 // color pallate set 3
218 array(
219 'id' => 'dark_mode_color_set3',
220 'type' => 'color_group',
221 'title' => esc_html__('Background', 'darkify'),
222 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
223 'dependency' => array('color_pallets', '==', 'set3', 'all'),
224 'options' => array(
225 'background' => esc_html__('Primary BG', 'darkify'),
226 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
227 ),
228 'default' => array(
229 'background' => '#363062',
230 'secondary_background' => '#435585',
231 ),
232 ),
233 array(
234 'id' => 'dark_mode_link_color_set3',
235 'type' => 'color_group',
236 'title' => esc_html__('Text', 'darkify'),
237 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
238 'class' => 'only_pro',
239 'dependency' => array('color_pallets', '==', 'set3', 'all'),
240 'options' => array(
241 'text' => esc_html__('Text Color', 'darkify'),
242 'color' => esc_html__('Link Color', 'darkify'),
243 'hover' => esc_html__('Link Hover Color', 'darkify'),
244 ),
245 'default' => array(
246 'text' => '#F5E8C7',
247 'color' => '#FFFFFF',
248 'hover' => '#F5E8C7',
249 ),
250 ),
251 array(
252 'id' => 'dark_mode_input_color_set3',
253 'type' => 'color_group',
254 'title' => esc_html__('Input', 'darkify'),
255 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
256 'class' => 'only_pro',
257 'dependency' => array('color_pallets', '==', 'set3', 'all'),
258 'options' => array(
259 'color' => esc_html__('Input Text', 'darkify'),
260 'placeholder' => esc_html('Input Placeholder', 'darkify'),
261 'background' => esc_html('Input Background', 'darkify'),
262 ),
263 'default' => array(
264 'color' => '#363062',
265 'placeholder' => '#989898',
266 'background' => '#BEBEBE',
267 ),
268 ),
269 array(
270 'id' => 'dark_mode_border_color_set3',
271 'type' => 'color',
272 'title' => esc_html__('Border', 'darkify'),
273 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
274 'class' => 'only_pro',
275 'dependency' => array('color_pallets', '==', 'set3', 'all'),
276 'default' => '#818FB4',
277 ),
278 array(
279 'id' => 'dark_mode_btn_color_set3',
280 'type' => 'color_group',
281 'title' => esc_html__('Button', 'darkify'),
282 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
283 'class' => 'only_pro',
284 'dependency' => array('color_pallets', '==', 'set3', 'all'),
285 'options' => array(
286 'color' => esc_html__('Button Text', 'darkify'),
287 'background' => esc_html('Button Background', 'darkify'),
288 ),
289 'default' => array(
290 'color' => '#435585',
291 'background' => '#BEBEBE',
292 ),
293 ),
294 // color pallate set 4
295 array(
296 'id' => 'dark_mode_color_set4',
297 'type' => 'color_group',
298 'title' => esc_html__('Background', 'darkify'),
299 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
300 'dependency' => array('color_pallets', '==', 'set4', 'all'),
301 'options' => array(
302 'background' => esc_html__('Primary BG', 'darkify'),
303 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
304 ),
305 'default' => array(
306 'background' => '#22092C',
307 'secondary_background' => '#435585',
308 ),
309 ),
310 array(
311 'id' => 'dark_mode_link_color_set4',
312 'type' => 'color_group',
313 'title' => esc_html__('Text', 'darkify'),
314 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
315 'class' => 'only_pro',
316 'dependency' => array('color_pallets', '==', 'set4', 'all'),
317 'options' => array(
318 'text' => esc_html__('Text Color', 'darkify'),
319 'color' => esc_html__('Link Color', 'darkify'),
320 'hover' => esc_html__('Link Hover Color', 'darkify'),
321 ),
322 'default' => array(
323 'text' => '#F5E8C7',
324 'color' => '#FFFFFF',
325 'hover' => '#F5E8C7',
326 ),
327 ),
328 array(
329 'id' => 'dark_mode_input_color_set4',
330 'type' => 'color_group',
331 'title' => esc_html__('Input', 'darkify'),
332 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
333 'class' => 'only_pro',
334 'dependency' => array('color_pallets', '==', 'set4', 'all'),
335 'options' => array(
336 'color' => esc_html__('Input Text', 'darkify'),
337 'placeholder' => esc_html('Input Placeholder', 'darkify'),
338 'background' => esc_html('Input Background', 'darkify'),
339 ),
340 'default' => array(
341 'color' => '#22092C',
342 'placeholder' => '#989898',
343 'background' => '#BEBEBE',
344 ),
345 ),
346 array(
347 'id' => 'dark_mode_border_color_set4',
348 'type' => 'color',
349 'title' => esc_html__('Border', 'darkify'),
350 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
351 'class' => 'only_pro',
352 'dependency' => array('color_pallets', '==', 'set4', 'all'),
353 'default' => '#818FB4',
354 ),
355 array(
356 'id' => 'dark_mode_btn_color_set4',
357 'type' => 'color_group',
358 'title' => esc_html__('Button', 'darkify'),
359 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
360 'class' => 'only_pro',
361 'dependency' => array('color_pallets', '==', 'set4', 'all'),
362 'options' => array(
363 'color' => esc_html__('Button Text', 'darkify'),
364 'background' => esc_html('Button Background', 'darkify'),
365 ),
366 'default' => array(
367 'color' => '#435585',
368 'background' => '#BEBEBE',
369 ),
370 ),
371 // color pallate set 5
372 array(
373 'id' => 'dark_mode_color_set5',
374 'type' => 'color_group',
375 'title' => esc_html__('Background', 'darkify'),
376 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
377 'dependency' => array('color_pallets', '==', 'set5', 'all'),
378 'options' => array(
379 'background' => esc_html__('Primary BG', 'darkify'),
380 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
381 ),
382 'default' => array(
383 'background' => '#352F44',
384 'secondary_background' => '#5C5470',
385 ),
386 ),
387 array(
388 'id' => 'dark_mode_link_color_set5',
389 'type' => 'color_group',
390 'title' => esc_html__('Text', 'darkify'),
391 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
392 'class' => 'only_pro',
393 'dependency' => array('color_pallets', '==', 'set5', 'all'),
394 'options' => array(
395 'text' => esc_html__('Text Color', 'darkify'),
396 'color' => esc_html__('Link Color', 'darkify'),
397 'hover' => esc_html__('Link Hover Color', 'darkify'),
398 ),
399 'default' => array(
400 'text' => '#FAF0E6',
401 'color' => '#FFFFFF',
402 'hover' => '#FAF0E6',
403 ),
404 ),
405
406 array(
407 'id' => 'dark_mode_input_color_set5',
408 'type' => 'color_group',
409 'title' => esc_html__('Input', 'darkify'),
410 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
411 'class' => 'only_pro',
412 'dependency' => array('color_pallets', '==', 'set5', 'all'),
413 'options' => array(
414 'color' => esc_html__('Input Text', 'darkify'),
415 'placeholder' => esc_html('Input Placeholder', 'darkify'),
416 'background' => esc_html('Input Background', 'darkify'),
417 ),
418 'default' => array(
419 'color' => '#352F44',
420 'placeholder' => '#989898',
421 'background' => '#BEBEBE',
422 ),
423 ),
424
425 array(
426 'id' => 'dark_mode_border_color_set5',
427 'type' => 'color',
428 'title' => esc_html__('Border', 'darkify'),
429 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
430 'class' => 'only_pro',
431 'dependency' => array('color_pallets', '==', 'set5', 'all'),
432 'default' => '#5C5470',
433 ),
434 array(
435 'id' => 'dark_mode_btn_color_set5',
436 'type' => 'color_group',
437 'title' => esc_html__('Button', 'darkify'),
438 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
439 'class' => 'only_pro',
440 'dependency' => array('color_pallets', '==', 'set5', 'all'),
441 'options' => array(
442 'color' => esc_html__('Button Text', 'darkify'),
443 'background' => esc_html('Button Background', 'darkify'),
444 ),
445 'default' => array(
446 'color' => '#5C5470',
447 'background' => '#BEBEBE',
448 ),
449 ),
450 // color pallate set 6
451 array(
452 'id' => 'dark_mode_color_set6',
453 'type' => 'color_group',
454 'title' => esc_html__('Background', 'darkify'),
455 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
456 'dependency' => array('color_pallets', '==', 'set6', 'all'),
457 'options' => array(
458 'background' => esc_html__('Primary BG', 'darkify'),
459 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
460 ),
461 'default' => array(
462 'background' => '#082032',
463 'secondary_background' => '#2C394B',
464 ),
465 ),
466 array(
467 'id' => 'dark_mode_link_color_set6',
468 'type' => 'color_group',
469 'title' => esc_html__('Text', 'darkify'),
470 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
471 'class' => 'only_pro',
472 'dependency' => array('color_pallets', '==', 'set6', 'all'),
473 'options' => array(
474 'text' => esc_html__('Text Color', 'darkify'),
475 'color' => esc_html__('Link Color', 'darkify'),
476 'hover' => esc_html__('Link Hover Color', 'darkify'),
477 ),
478 'default' => array(
479 'text' => '#FF4C29',
480 'color' => '#FFFFFF',
481 'hover' => '#CCCCCC',
482 ),
483 ),
484
485 array(
486 'id' => 'dark_mode_input_color_set6',
487 'type' => 'color_group',
488 'title' => esc_html__('Input', 'darkify'),
489 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
490 'class' => 'only_pro',
491 'dependency' => array('color_pallets', '==', 'set6', 'all'),
492 'options' => array(
493 'color' => esc_html__('Input Text', 'darkify'),
494 'placeholder' => esc_html('Input Placeholder', 'darkify'),
495 'background' => esc_html('Input Background', 'darkify'),
496 ),
497 'default' => array(
498 'color' => '#334756',
499 'placeholder' => '#989898',
500 'background' => '#BEBEBE',
501 ),
502 ),
503
504 array(
505 'id' => 'dark_mode_border_color_set6',
506 'type' => 'color',
507 'title' => esc_html__('Border', 'darkify'),
508 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
509 'class' => 'only_pro',
510 'dependency' => array('color_pallets', '==', 'set6', 'all'),
511 'default' => '#334756',
512 ),
513 array(
514 'id' => 'dark_mode_btn_color_set6',
515 'type' => 'color_group',
516 'title' => esc_html__('Button', 'darkify'),
517 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
518 'class' => 'only_pro',
519 'dependency' => array('color_pallets', '==', 'set6', 'all'),
520 'options' => array(
521 'color' => esc_html__('Button Text', 'darkify'),
522 'background' => esc_html('Button Background', 'darkify'),
523 ),
524 'default' => array(
525 'color' => '#2C394B',
526 'background' => '#BEBEBE',
527 ),
528 ),
529 // color pallate set 7
530 array(
531 'id' => 'dark_mode_color_set7',
532 'type' => 'color_group',
533 'title' => esc_html__('Background', 'darkify'),
534 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
535 'dependency' => array('color_pallets', '==', 'set7', 'all'),
536 'options' => array(
537 'background' => esc_html__('Primary BG', 'darkify'),
538 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
539 ),
540 'default' => array(
541 'background' => '#1D2D50',
542 'secondary_background' => '#133B5C',
543 ),
544 ),
545 array(
546 'id' => 'dark_mode_link_color_set7',
547 'type' => 'color_group',
548 'title' => esc_html__('Text', 'darkify'),
549 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
550 'class' => 'only_pro',
551 'dependency' => array('color_pallets', '==', 'set7', 'all'),
552 'options' => array(
553 'text' => esc_html__('Text Color', 'darkify'),
554 'color' => esc_html__('Link Color', 'darkify'),
555 'hover' => esc_html__('Link Hover Color', 'darkify'),
556 ),
557 'default' => array(
558 'text' => '#FCDAB7',
559 'color' => '#FFFFFF',
560 'hover' => '#FCDAB7',
561 ),
562 ),
563
564 array(
565 'id' => 'dark_mode_input_color_set7',
566 'type' => 'color_group',
567 'title' => esc_html__('Input', 'darkify'),
568 'title_help' => '<div class="darkify-info-label">' . __( 'Set the input field color of your website when dark mode is enabled.', 'darkify' ) . '</div>',
569 'class' => 'only_pro',
570 'dependency' => array('color_pallets', '==', 'set7', 'all'),
571 'options' => array(
572 'color' => esc_html__('Input Text', 'darkify'),
573 'placeholder' => esc_html('Input Placeholder', 'darkify'),
574 'background' => esc_html('Input Background', 'darkify'),
575 ),
576 'default' => array(
577 'color' => '#1E5F74',
578 'placeholder' => '#989898',
579 'background' => '#BEBEBE',
580 ),
581 ),
582
583 array(
584 'id' => 'dark_mode_border_color_set7',
585 'type' => 'color',
586 'title' => esc_html__('Border', 'darkify'),
587 'title_help' => '<div class="darkify-info-label">' . __( 'Set the border color of your website when dark mode is enabled.', 'darkify' ) . '</div>',
588 'class' => 'only_pro',
589 'dependency' => array('color_pallets', '==', 'set7', 'all'),
590 'default' => '#1E5F74',
591 ),
592 array(
593 'id' => 'dark_mode_btn_color_set7',
594 'type' => 'color_group',
595 'title' => esc_html__('Button', 'darkify'),
596 'title_help' => '<div class="darkify-info-label">' . __( 'Set the color of buttons of your website when dark mode is enabled.', 'darkify' ) . '</div>',
597 'class' => 'only_pro',
598 'dependency' => array('color_pallets', '==', 'set7', 'all'),
599 'options' => array(
600 'color' => esc_html__('Button Text', 'darkify'),
601 'background' => esc_html('Button Background', 'darkify'),
602 ),
603 'default' => array(
604 'color' => '#133B5C',
605 'background' => '#BEBEBE',
606 ),
607 ),
608 // color pallate set 8
609 array(
610 'id' => 'dark_mode_color_set8',
611 'type' => 'color_group',
612 'title' => esc_html__('Background', 'darkify'),
613 'title_help' => '<div class="darkify-info-label">' . __( 'Set the background color of your website when dark mode is enabled.', 'darkify' ) . '</div>',
614 'dependency' => array('color_pallets', '==', 'set8', 'all'),
615 'options' => array(
616 'background' => esc_html__('Primary BG', 'darkify'),
617 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
618 ),
619 'default' => array(
620 'background' => '#142850',
621 'secondary_background' => '#27496D',
622 ),
623 ),
624 array(
625 'id' => 'dark_mode_link_color_set8',
626 'type' => 'color_group',
627 'title' => esc_html__('Text', 'darkify'),
628 'title_help' => '<div class="darkify-info-label">' . __( 'Set the text color of your website when dark mode is enabled.', 'darkify' ) . '</div>',
629 'class' => 'only_pro',
630 'dependency' => array('color_pallets', '==', 'set8', 'all'),
631 'options' => array(
632 'text' => esc_html__('Text Color', 'darkify'),
633 'color' => esc_html__('Link Color', 'darkify'),
634 'hover' => esc_html__('Link Hover Color', 'darkify'),
635 ),
636 'default' => array(
637 'text' => '#00A8CC',
638 'color' => '#FFFFFF',
639 'hover' => '#00A8CC',
640 ),
641 ),
642
643 array(
644 'id' => 'dark_mode_input_color_set8',
645 'type' => 'color_group',
646 'title' => esc_html__('Input', 'darkify'),
647 'title_help' => '<div class="darkify-info-label">' . __( 'Set the input field color of your website when dark mode is enabled.', 'darkify' ) . '</div>',
648 'class' => 'only_pro',
649 'dependency' => array('color_pallets', '==', 'set8', 'all'),
650 'options' => array(
651 'color' => esc_html__('Input Text', 'darkify'),
652 'placeholder' => esc_html('Input Placeholder', 'darkify'),
653 'background' => esc_html('Input Background', 'darkify'),
654 ),
655 'default' => array(
656 'color' => '#0C7B93',
657 'placeholder' => '#989898',
658 'background' => '#BEBEBE',
659 ),
660 ),
661
662 array(
663 'id' => 'dark_mode_border_color_set8',
664 'type' => 'color',
665 'title' => esc_html__('Border', 'darkify'),
666 'title_help' => '<div class="darkify-info-label">' . __( 'Set the border color of your website when dark mode is enabled.', 'darkify' ) . '</div>',
667 'class' => 'only_pro',
668 'dependency' => array('color_pallets', '==', 'set8', 'all'),
669 'default' => '#0C7B93',
670 ),
671 array(
672 'id' => 'dark_mode_btn_color_set8',
673 'type' => 'color_group',
674 'title' => esc_html__('Button', 'darkify'),
675 'title_help' => '<div class="darkify-info-label">' . __( 'Set the color of buttons of your website when dark mode is enabled.', 'darkify' ) . '</div>',
676 'class' => 'only_pro',
677 'dependency' => array('color_pallets', '==', 'set8', 'all'),
678 'options' => array(
679 'color' => esc_html__('Button Text', 'darkify'),
680 'background' => esc_html('Button Background', 'darkify'),
681 ),
682 'default' => array(
683 'color' => '#27496D',
684 'background' => '#BEBEBE',
685 ),
686 ),
687
688 )
689 ),
690
691 array(
692 'title' => esc_html__('Scroll Bar', 'darkify'),
693 'icon' => 'icofont-scroll-double-down',
694 'fields' => array(
695 array(
696 'id' => 'enable_scrollbar_dark',
697 'type' => 'switcher',
698 'title' => esc_html__('Enable Dark Mode On Scrollbar', 'darkify'),
699 'title_help' => '<div class="darkify-info-label">' . __( 'Want to enable dark mode on the scrollbar of the website?', 'darkify' ) . '</div>',
700 'text_on' => esc_html__('Enabled', 'darkify'),
701 'text_off' => esc_html__('Disabled', 'darkify'),
702 'text_width' => 100,
703 'default' => true,
704 ),
705
706 array(
707 'id' => 'scrollbar_color',
708 'type' => 'color_group',
709 'title' => esc_html__('Scrollbar Color', 'darkify'),
710 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of scrollbar\'s track & thumb when dark mode is enabled.', 'darkify') . '</div>',
711 'class' => 'only_pro',
712 'options' => array(
713 'dark_mode_scrollbar_track_bg' => esc_html__('Trac BG', 'darkify'),
714 'dark_mode_scrollbar_thumb_bg' => esc_html__('Thumb BG', 'darkify'),
715 ),
716 'default' => array(
717 'dark_mode_scrollbar_track_bg' => '#29292a',
718 'dark_mode_scrollbar_thumb_bg' => '#52565a',
719 ),
720 'dependency' => array('enable_scrollbar_dark', '==', 'true'),
721 ),
722
723
724 )
725 ),
726
727 )
728 ),
729 ),
730 ));
731 }
732 }
733