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

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