PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 2.0.1
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v2.0.1
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) 2.0.1, at src/Admin/Views/ColorControl.php

819 lines 51.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * ColorControl class for Color 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\Schema\SchemaRegistry as 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(
29 $prefix,
30 array(
31 'title' => esc_html__('Colors', 'darkify'),
32 'icon' => 'icofont-paint',
33 'fields' => array(
34
35 array(
36 'type' => 'section_tab',
37 'tabs' => array(
38 array(
39 'title' => esc_html__('Preset', 'darkify'),
40 'icon' => 'icofont-color-bucket',
41 'fields' => array(
42 // Intro line, rendered plain above the section card.
43 array(
44 'type' => 'page_hint',
45 'content' => esc_html__('Pick a dark-mode color preset, then fine-tune any individual color for your site.', 'darkify'),
46 ),
47 // ===== CHOOSE A PRESET =====
48 array(
49 'type' => 'heading',
50 'title' => esc_html__('Choose A Preset', 'darkify'),
51 'section_start' => true,
52 ),
53 array(
54 'id' => 'color_pallets',
55 'type' => 'palette',
56 'class' => 'darkify_preset',
57 // Title lifted to the section heading above; the field keeps only its
58 // short description (rendered above the swatch grid by PaletteField).
59 'title_help' =>
60 esc_html__('Choose from pre-made dark-mode color presets.', 'darkify'),
61
62 'options' => array(
63 'set1' => array(
64 'colors' => array('#0F0F0F', '#4A4A4A', '#BEBEBE', '#171717', '#2D2D2D'),
65 'name' => esc_html__('Carbon Mist', 'darkify'),
66 ),
67 'set3' => array(
68 'colors' => array('#211e3c', '#B1BBD8', '#302C57', '#4E478D', '#2A264D'),
69 'name' => esc_html__('Midnight Reverie', 'darkify'),
70 ),
71 'set9' => array(
72 'colors' => array('#04261d', '#C1D2BB', '#021e16', '#073d2f', '#095541'),
73 'name' => esc_html__('Verdant Depths', 'darkify'),
74 ),
75 'set6' => array(
76 'colors' => array('#082032', '#B5D9F3', '#061825', '#144E78', '#0E3755'),
77 'name' => esc_html__('Celestial Tide', 'darkify'),
78 ),
79 'set10' => array(
80 'colors' => array('#171004', '#E0D2BD', '#211706', '#372911', '#5D4010'),
81 'name' => esc_html__('Emberwood', 'darkify'),
82 ),
83 'set2' => array(
84 'colors' => array('#092635', '#BEE0F1', '#081E29', '#123d52', '#195979'),
85 'name' => esc_html__('Glacier Drift', 'darkify'),
86 'pro_only' => true,
87 ),
88 'set4' => array(
89 'colors' => array('#1d253a', '#B1BBD8', '#2B3655', '#46598C', '#242F4C'),
90 'name' => esc_html__('Indigo Veil', 'darkify'),
91 'pro_only' => true,
92 ),
93 'set5' => array(
94 'colors' => array('#1b1823', '#C6C1D5', '#352f44', '#403953', '#54496f'),
95 'name' => esc_html__('Duskmire', 'darkify'),
96 'pro_only' => true,
97 ),
98 'set7' => array(
99 'colors' => array('#07161b', '#C5E6F0', '#0d242e', '#286F8D', '#19495A'),
100 'name' => esc_html__('Tidal Frost', 'darkify'),
101 'pro_only' => true,
102 ),
103 'set8' => array(
104 'colors' => array('#15274C', '#ACC1EA', '#112244', '#244892', '#1a2f5c'),
105 'name' => esc_html__('Blue Bastion', 'darkify'),
106 'pro_only' => true,
107 ),
108 'set11' => array(
109 'colors' => array('#19081b', '#c09dc2', '#210a24', '#440649', '#2c082f'),
110 'name' => esc_html__('Crimson Veil', 'darkify'),
111 'pro_only' => true,
112 ),
113 ),
114 'default' => 'set1',
115 ),
116 array(
117 'type' => 'heading',
118 'title' => esc_html__('Customize Selected Preset', 'darkify'),
119 'section_start' => true,
120 ),
121
122 // color pallate set 1
123 array(
124 'id' => 'dark_mode_color_set1',
125 'type' => 'color_group',
126 'title' => esc_html__('Background', 'darkify'),
127 'title_help' =>
128 '<div class="darkify-info-label">' .
129 __('Set the background colors used when dark mode is enabled on your website.', 'darkify') .
130 '</div>',
131 'options' => array(
132 'background' => esc_html__('Primary', 'darkify'),
133 'secondary_background' => esc_html__('Secondary', 'darkify'),
134 ),
135
136 'dependency' => array('color_pallets', '==', 'set1', 'all'),
137 'default' => array(
138 'background' => '#0F0F0F',
139 'secondary_background' => '#171717',
140 ),
141 ),
142 array(
143 'id' => 'dark_mode_link_color_set1',
144 'type' => 'color_group',
145 'title' => esc_html__('Text', 'darkify'),
146 'title_help' =>
147 '<div class="darkify-info-label">' .
148 __('Set the text color of your website when dark mode is enabled.', 'darkify') .
149 '</div>',
150
151 'dependency' => array('color_pallets', '==', 'set1', 'all'),
152 'class' => 'only_pro',
153 'options' => array(
154 'text' => esc_html__('Text Color', 'darkify'),
155 'color' => esc_html__('Link Color', 'darkify'),
156 'hover' => esc_html__('Link Hover Color', 'darkify'),
157 ),
158 'default' => array(
159 'text' => '#BEBEBE',
160 'color' => '#E7E7E7',
161 'hover' => '#BEBEBE',
162 ),
163 ),
164 array(
165 'id' => 'dark_mode_input_color_set1',
166 'type' => 'color_group',
167 'title' => esc_html__('Input', 'darkify'),
168 'title_help' =>
169 '<div class="darkify-info-label">' .
170 __('Set the input field colors of your website when dark mode is enabled.', 'darkify') .
171 '</div>',
172
173 'dependency' => array('color_pallets', '==', 'set1', 'all'),
174 'class' => 'only_pro',
175 'options' => array(
176 'color' => esc_html__('Input Text', 'darkify'),
177 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
178 'background' => esc_html__('Input Background', 'darkify'),
179 ),
180
181 'default' => array(
182 'color' => '#BEBEBE',
183 'placeholder' => '#BEBEBE',
184 'background' => '#2D2D2D',
185 ),
186 ),
187 array(
188 'id' => 'dark_mode_border_color_set1',
189 'type' => 'color',
190 'title' => esc_html__('Border', 'darkify'),
191 'title_help' =>
192 '<div class="darkify-info-label">' .
193 __('Set the border color of your website when dark mode is enabled.', 'darkify') .
194 '</div>',
195
196 'class' => 'only_pro',
197 'dependency' => array('color_pallets', '==', 'set1', 'all'),
198 'default' => '#4A4A4A',
199 ),
200 array(
201 'id' => 'dark_mode_btn_color_set1',
202 'type' => 'color_group',
203 'title' => esc_html__('Button', 'darkify'),
204 'title_help' =>
205 '<div class="darkify-info-label">' .
206 __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
207 '</div>',
208
209 'options' => array(
210 'color' => esc_html__('Text Color', 'darkify'),
211 'background' => esc_html__('Background', 'darkify'),
212 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
213 'hover_background' => esc_html__('Hover Background', 'darkify'),
214 ),
215
216 'class' => 'only_pro',
217 'dependency' => array('color_pallets', '==', 'set1', 'all'),
218 'default' => array(
219 'color' => '#BEBEBE',
220 'background' => '#4A4A4A',
221 'hover_color' => '#BEBEBE',
222 'hover_background' => '#2D2D2D',
223 ),
224 ),
225 // color pallate set 3
226 array(
227 'id' => 'dark_mode_color_set3',
228 'type' => 'color_group',
229 'title' => esc_html__('Background', 'darkify'),
230 'title_help' =>
231 '<div class="darkify-info-label">' .
232 __('Set the background color of your website when dark mode is enabled.', 'darkify') .
233 '</div>',
234
235 'options' => array(
236 'background' => esc_html__('Primary', 'darkify'),
237 'secondary_background' => esc_html__('Secondary', 'darkify'),
238 ),
239 'dependency' => array('color_pallets', '==', 'set3', 'all'),
240
241 'default' => array(
242 'background' => '#211e3c',
243 'secondary_background' => '#302C57',
244 ),
245 ),
246 array(
247 'id' => 'dark_mode_link_color_set3',
248 'type' => 'color_group',
249 'title' => esc_html__('Text', 'darkify'),
250 'title_help' =>
251 '<div class="darkify-info-label">' .
252 __('Set the text and link colors of your website when dark mode is enabled.', 'darkify') .
253 '</div>',
254
255 'options' => array(
256 'text' => esc_html__('Text Color', 'darkify'),
257 'color' => esc_html__('Link Color', 'darkify'),
258 'hover' => esc_html__('Link Hover Color', 'darkify'),
259 ),
260
261 'class' => 'only_pro',
262 'dependency' => array('color_pallets', '==', 'set3', 'all'),
263 'default' => array(
264 'text' => '#B1BBD8',
265 'color' => '#8071fb',
266 'hover' => '#B1BBD8',
267 ),
268 ),
269 array(
270 'id' => 'dark_mode_input_color_set3',
271 'type' => 'color_group',
272 'title' => esc_html__('Input', 'darkify'),
273 'title_help' =>
274 '<div class="darkify-info-label">' .
275 __('Set the input field color of your website when dark mode is enabled.', 'darkify') .
276 '</div>',
277
278 'options' => array(
279 'color' => esc_html__('Input Text', 'darkify'),
280 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
281 'background' => esc_html__('Input Background', 'darkify'),
282 ),
283
284 'class' => 'only_pro',
285 'dependency' => array('color_pallets', '==', 'set3', 'all'),
286 'default' => array(
287 'color' => '#B1BBD8',
288 'placeholder' => '#B1BBD8',
289 'background' => '#2A264D',
290 ),
291 ),
292 array(
293 'id' => 'dark_mode_border_color_set3',
294 'type' => 'color',
295 'title' => esc_html__('Border', 'darkify'),
296 'title_help' =>
297 '<div class="darkify-info-label">' .
298 __('Set the border color of your website when dark mode is enabled.', 'darkify') .
299 '</div>',
300
301 'class' => 'only_pro',
302 'dependency' => array('color_pallets', '==', 'set3', 'all'),
303 'default' => '#4E478D',
304 ),
305 array(
306 'id' => 'dark_mode_btn_color_set3',
307 'type' => 'color_group',
308 'title' => esc_html__('Button', 'darkify'),
309 'title_help' =>
310 '<div class="darkify-info-label">' .
311 __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
312 '</div>',
313 'options' => array(
314 'color' => esc_html__('Text Color', 'darkify'),
315 'background' => esc_html__('Background', 'darkify'),
316 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
317 'hover_background' => esc_html__('Hover Background', 'darkify'),
318 ),
319
320 'class' => 'only_pro',
321 'dependency' => array('color_pallets', '==', 'set3', 'all'),
322 'default' => array(
323 'color' => '#4E478D',
324 'background' => '#B1BBD8',
325 'hover_color' => '#B1BBD8',
326 'hover_background' => '#2A264D',
327 ),
328 ),
329 // color pallate set 6
330 array(
331 'id' => 'dark_mode_color_set6',
332 'type' => 'color_group',
333 'title' => esc_html__('Background', 'darkify'),
334 'title_help' =>
335 '<div class="darkify-info-label">' .
336 __('Set the background color of your website when dark mode is enabled.', 'darkify') .
337 '</div>',
338 'options' => array(
339 'background' => esc_html__('Primary', 'darkify'),
340 'secondary_background' => esc_html__('Secondary', 'darkify'),
341 ),
342
343 'dependency' => array('color_pallets', '==', 'set6', 'all'),
344 'default' => array(
345 'background' => '#082032',
346 'secondary_background' => '#2C394B',
347 ),
348 ),
349 array(
350 'id' => 'dark_mode_link_color_set6',
351 'type' => 'color_group',
352 'title' => esc_html__('Text', 'darkify'),
353 'title_help' =>
354 '<div class="darkify-info-label">' .
355 __('Set the text color of your website when dark mode is enabled.', 'darkify') .
356 '</div>',
357 'options' => array(
358 'text' => esc_html__('Text Color', 'darkify'),
359 'color' => esc_html__('Link Color', 'darkify'),
360 'hover' => esc_html__('Link Hover Color', 'darkify'),
361 ),
362
363 'class' => 'only_pro',
364 'dependency' => array('color_pallets', '==', 'set6', 'all'),
365 'default' => array(
366 'text' => '#B5D9F3',
367 'color' => '#61bbff',
368 'hover' => '#B5D9F3',
369 ),
370 ),
371
372 array(
373 'id' => 'dark_mode_input_color_set6',
374 'type' => 'color_group',
375 'title' => esc_html__('Input', 'darkify'),
376 'title_help' =>
377 '<div class="darkify-info-label">' .
378 __('Set the input field color of your website when dark mode is enabled.', 'darkify') .
379 '</div>',
380
381 'options' => array(
382 'color' => esc_html__('Input Text', 'darkify'),
383 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
384 'background' => esc_html__('Input Background', 'darkify'),
385 ),
386
387 'class' => 'only_pro',
388 'dependency' => array('color_pallets', '==', 'set6', 'all'),
389 'default' => array(
390 'color' => '#B5D9F3',
391 'placeholder' => '#B5D9F3',
392 'background' => '#0E3755',
393 ),
394 ),
395
396 array(
397 'id' => 'dark_mode_border_color_set6',
398 'type' => 'color',
399 'title' => esc_html__('Border', 'darkify'),
400 'title_help' =>
401 '<div class="darkify-info-label">' .
402 __('Set the border color of your website when dark mode is enabled.', 'darkify') .
403 '</div>',
404
405 'class' => 'only_pro',
406 'dependency' => array('color_pallets', '==', 'set6', 'all'),
407 'default' => '#3B4D65',
408 ),
409 array(
410 'id' => 'dark_mode_btn_color_set6',
411 'type' => 'color_group',
412 'title' => esc_html__('Button', 'darkify'),
413 'title_help' =>
414 '<div class="darkify-info-label">' .
415 __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
416 '</div>',
417 'options' => array(
418 'color' => esc_html__('Text Color', 'darkify'),
419 'background' => esc_html__('Background', 'darkify'),
420 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
421 'hover_background' => esc_html__('Hover Background', 'darkify'),
422 ),
423
424 'class' => 'only_pro',
425 'dependency' => array('color_pallets', '==', 'set6', 'all'),
426
427 'default' => array(
428 'color' => '#B5D9F3',
429 'background' => '#3B4D65',
430 'hover_color' => '#B5D9F3',
431 'hover_background' => '#144E78',
432 ),
433 ),
434 // color pallate set 9
435 array(
436 'id' => 'dark_mode_color_set9',
437 'type' => 'color_group',
438 'title' => esc_html__('Background', 'darkify'),
439 'title_help' =>
440 '<div class="darkify-info-label">' .
441 __('Set the background color of your website when dark mode is enabled.', 'darkify') .
442 '</div>',
443
444 'dependency' => array('color_pallets', '==', 'set9', 'all'),
445
446 'options' => array(
447 'background' => esc_html__('Primary', 'darkify'),
448 'secondary_background' => esc_html__('Secondary', 'darkify'),
449 ),
450
451 'default' => array(
452 'background' => '#04261d',
453 'secondary_background' => '#021e16',
454 ),
455 ),
456 array(
457 'id' => 'dark_mode_link_color_set9',
458 'type' => 'color_group',
459 'title' => esc_html__('Text', 'darkify'),
460 'title_help' =>
461 '<div class="darkify-info-label">' .
462 __('Set the text and link colors of your website when dark mode is enabled.', 'darkify') .
463 '</div>',
464 'options' => array(
465 'text' => esc_html__('Text Color', 'darkify'),
466 'color' => esc_html__('Link Color', 'darkify'),
467 'hover' => esc_html__('Link Hover Color', 'darkify'),
468 ),
469
470 'class' => 'only_pro',
471 'dependency' => array('color_pallets', '==', 'set9', 'all'),
472 'default' => array(
473 'text' => '#C1D2BB',
474 'color' => '#00d29a',
475 'hover' => '#C1D2BB',
476 ),
477 ),
478
479 array(
480 'id' => 'dark_mode_input_color_set9',
481 'type' => 'color_group',
482 'title' => esc_html__('Input', 'darkify'),
483 'title_help' =>
484 '<div class="darkify-info-label">' .
485 __('Set the input field colors of your website when dark mode is enabled.', 'darkify') .
486 '</div>',
487
488 'options' => array(
489 'color' => esc_html__('Input Text', 'darkify'),
490 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
491 'background' => esc_html__('Input Background', 'darkify'),
492 ),
493
494 'class' => 'only_pro',
495 'dependency' => array('color_pallets', '==', 'set9', 'all'),
496 'default' => array(
497 'color' => '#C1D2BB',
498 'placeholder' => '#C1D2BB',
499 'background' => '#073d2f',
500 ),
501 ),
502
503 array(
504 'id' => 'dark_mode_border_color_set9',
505 'type' => 'color',
506 'title' => esc_html__('Border', 'darkify'),
507 'title_help' =>
508 '<div class="darkify-info-label">' .
509 __('Set the border color of your website when dark mode is enabled.', 'darkify') .
510 '</div>',
511
512 'class' => 'only_pro',
513 'dependency' => array('color_pallets', '==', 'set9', 'all'),
514 'default' => '#095541',
515 ),
516 array(
517 'id' => 'dark_mode_btn_color_set9',
518 'type' => 'color_group',
519 'title' => esc_html__('Button', 'darkify'),
520 'title_help' => '<div class="darkify-info-label">' .
521 __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
522 '</div>',
523 'options' => array(
524 'color' => esc_html__('Text Color', 'darkify'),
525 'background' => esc_html__('Background', 'darkify'),
526 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
527 'hover_background' => esc_html__('Hover Background', 'darkify'),
528 ),
529 'class' => 'only_pro',
530 'dependency' => array('color_pallets', '==', 'set9', 'all'),
531 'default' => array(
532 'color' => '#C1D2BB',
533 'background' => '#095541',
534 'hover_color' => '#C1D2BB',
535 'hover_background' => '#073d2f',
536 ),
537 ),
538 // color pallate set 10
539 array(
540 'id' => 'dark_mode_color_set10',
541 'type' => 'color_group',
542 'title' => esc_html__('Background', 'darkify'),
543 'title_help' =>
544 '<div class="darkify-info-label">' .
545 __('Set the background color of your website when dark mode is enabled.', 'darkify') .
546 '</div>',
547 'options' => array(
548 'background' => esc_html__('Primary', 'darkify'),
549 'secondary_background' => esc_html__('Secondary', 'darkify'),
550 ),
551
552 'dependency' => array('color_pallets', '==', 'set10', 'all'),
553 'default' => array(
554 'background' => '#171004',
555 'secondary_background' => '#211706',
556 ),
557 ),
558 array(
559 'id' => 'dark_mode_link_color_set10',
560 'type' => 'color_group',
561 'title' => esc_html__('Text', 'darkify'),
562 'title_help' =>
563 '<div class="darkify-info-label">' .
564 __('Set the text color of your website when dark mode is enabled.', 'darkify') .
565 '</div>',
566 'options' => array(
567 'text' => esc_html__('Text Color', 'darkify'),
568 'color' => esc_html__('Link Color', 'darkify'),
569 'hover' => esc_html__('Link Hover Color', 'darkify'),
570 ),
571
572 'class' => 'only_pro',
573 'dependency' => array('color_pallets', '==', 'set10', 'all'),
574 'default' => array(
575 'text' => '#E0D2BD',
576 'color' => '#e09525',
577 'hover' => '#E0D2BD',
578 ),
579 ),
580
581 array(
582 'id' => 'dark_mode_input_color_set10',
583 'type' => 'color_group',
584 'title' => esc_html__('Input', 'darkify'),
585 'title_help' =>
586 '<div class="darkify-info-label">' .
587 __('Set the input field colors of your website when dark mode is enabled.', 'darkify') .
588 '</div>',
589
590 'options' => array(
591 'color' => esc_html__('Input Text', 'darkify'),
592 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
593 'background' => esc_html__('Input Background', 'darkify'),
594 ),
595
596 'class' => 'only_pro',
597 'dependency' => array('color_pallets', '==', 'set10', 'all'),
598
599 'default' => array(
600 'color' => '#E0D2BD',
601 'placeholder' => '#E0D2BD',
602 'background' => '#372911',
603 ),
604 ),
605
606 array(
607 'id' => 'dark_mode_border_color_set10',
608 'type' => 'color',
609 'title' => esc_html__('Border', 'darkify'),
610 'title_help' =>
611 '<div class="darkify-info-label">' .
612 __('Set the border color of your website when dark mode is enabled.', 'darkify') .
613 '</div>',
614
615 'class' => 'only_pro',
616 'dependency' => array('color_pallets', '==', 'set10', 'all'),
617 'default' => '#5D4010',
618 ),
619 array(
620 'id' => 'dark_mode_btn_color_set10',
621 'type' => 'color_group',
622 'title' => esc_html__('Button', 'darkify'),
623 'title' => esc_html__('Button', 'darkify'),
624 'title_help' =>
625 '<div class="darkify-info-label">' .
626 __('Set the color of buttons on your website when dark mode is enabled.', 'darkify') .
627 '</div>',
628 'options' => array(
629 'color' => esc_html__('Button Text', 'darkify'),
630 'background' => esc_html__('Button Background', 'darkify'),
631 'hover_color' => esc_html__('Hover Text', 'darkify'),
632 'hover_background' => esc_html__('Hover Background', 'darkify'),
633 ),
634
635 'class' => 'only_pro',
636 'dependency' => array('color_pallets', '==', 'set10', 'all'),
637 'default' => array(
638 'color' => '#E0D2BD',
639 'background' => '#5D4010',
640 'hover_color' => '#E0D2BD',
641 'hover_background' => '#372911',
642 ),
643 ),
644 // color pallate set 11
645 array(
646 'id' => 'dark_mode_color_set11',
647 'type' => 'color_group',
648 'title' => esc_html__('Background', 'darkify'),
649 'title_help' =>
650 '<div class="darkify-info-label">' .
651 __('Set the background color of your website when dark mode is enabled.', 'darkify') .
652 '</div>',
653 'options' => array(
654 'background' => esc_html__('Primary BG', 'darkify'),
655 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
656 ),
657
658 'dependency' => array('color_pallets', '==', 'set11', 'all'),
659
660 'default' => array(
661 'background' => '#19081b',
662 'secondary_background' => '#210a24',
663 ),
664 ),
665 array(
666 'id' => 'dark_mode_link_color_set11',
667 'type' => 'color_group',
668 'title' => esc_html__('Text', 'darkify'),
669 'title_help' =>
670 '<div class="darkify-info-label">' .
671 __('Set the text color of your website when dark mode is enabled.', 'darkify') .
672 '</div>',
673 'options' => array(
674 'text' => esc_html__('Text Color', 'darkify'),
675 'color' => esc_html__('Link Color', 'darkify'),
676 'hover' => esc_html__('Link Hover Color', 'darkify'),
677 ),
678
679 'class' => 'only_pro',
680 'dependency' => array('color_pallets', '==', 'set11', 'all'),
681
682 'default' => array(
683 'text' => '#c09dc2',
684 'color' => '#c832d4',
685 'hover' => '#c09dc2',
686 ),
687 ),
688
689 array(
690 'id' => 'dark_mode_input_color_set11',
691 'type' => 'color_group',
692 'title' => esc_html__('Input', 'darkify'),
693 'title_help' =>
694 '<div class="darkify-info-label">' .
695 __('Set the input field colors of your website when dark mode is enabled.', 'darkify') .
696 '</div>',
697 'options' => array(
698 'color' => esc_html__('Input Text', 'darkify'),
699 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
700 'background' => esc_html__('Input Background', 'darkify'),
701 ),
702
703 'class' => 'only_pro',
704 'dependency' => array('color_pallets', '==', 'set11', 'all'),
705
706 'default' => array(
707 'color' => '#c09dc2',
708 'placeholder' => '#c09dc2',
709 'background' => '#2c082f',
710 ),
711 ),
712
713 array(
714 'id' => 'dark_mode_border_color_set11',
715 'type' => 'color',
716 'title' => esc_html__('Border', 'darkify'),
717 'title_help' =>
718 '<div class="darkify-info-label">' .
719 __('Set the border color of your website when dark mode is enabled.', 'darkify') .
720 '</div>',
721
722 'class' => 'only_pro',
723 'dependency' => array('color_pallets', '==', 'set11', 'all'),
724 'default' => '#440649',
725 ),
726 array(
727 'id' => 'dark_mode_btn_color_set11',
728 'type' => 'color_group',
729 'title' => esc_html__('Button', 'darkify'),
730 'title_help' =>
731 '<div class="darkify-info-label">' .
732 __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
733 '</div>',
734
735 'options' => array(
736 'color' => esc_html__('Text Color', 'darkify'),
737 'background' => esc_html__('Background', 'darkify'),
738 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
739 'hover_background' => esc_html__('Hover Background', 'darkify'),
740 ),
741
742 'class' => 'only_pro',
743 'dependency' => array('color_pallets', '==', 'set11', 'all'),
744
745 'default' => array(
746 'color' => '#c09dc2',
747 'background' => '#440649',
748 'hover_color' => '#c09dc2',
749 'hover_background' => '#2c082f',
750 ),
751 ),
752 )
753 ),
754
755 array(
756 'title' => esc_html__('Scroll Bar', 'darkify'),
757 'icon' => 'icofont-scroll-double-down',
758 'fields' => array(
759 // Intro line, rendered plain above the section card.
760 array(
761 'type' => 'page_hint',
762 'content' => esc_html__('Style the browser scrollbar to match dark mode.', 'darkify'),
763 ),
764 // ===== SCROLLBAR =====
765 array(
766 'type' => 'heading',
767 'title' => esc_html__('Scrollbar', 'darkify'),
768 'section_start' => true,
769 ),
770 array(
771 'id' => 'enable_scrollbar_dark',
772 'type' => 'switcher',
773 'title' => esc_html__('Enable Dark Mode on Scrollbar', 'darkify'),
774 'title_help' =>
775 '<div class="darkify-info-label">' .
776 __('Enable dark mode styling for the website scrollbar.', 'darkify') .
777 '</div>',
778
779 'text_on' => esc_html__('Enabled', 'darkify'),
780 'text_off' => esc_html__('Disabled', 'darkify'),
781 'text_width' => 100,
782 'default' => false,
783 ),
784
785 array(
786 'id' => 'scrollbar_color',
787 'type' => 'color_group',
788 'title' => esc_html__('Scrollbar Color', 'darkify'),
789 'title_help' =>
790 '<div class="darkify-info-label">' .
791 __('Set the track and thumb background colors of the scrollbar when dark mode is enabled.', 'darkify') .
792 '</div>',
793
794 'options' => array(
795 'dark_mode_scrollbar_track_bg' => esc_html__('Track Background', 'darkify'),
796 'dark_mode_scrollbar_thumb_bg' => esc_html__('Thumb Background', 'darkify'),
797 ),
798
799 'class' => 'only_pro',
800
801 'default' => array(
802 'dark_mode_scrollbar_track_bg' => '#29292a',
803 'dark_mode_scrollbar_thumb_bg' => '#52565a',
804 ),
805 'dependency' => array('enable_scrollbar_dark', '==', 'true'),
806 ),
807
808
809 )
810 ),
811
812 )
813 ),
814 ),
815 )
816 );
817 }
818 }
819