PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 1.4.6
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v1.4.6
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
← All changes | src/Admin/Views/ColorControl.php +160 -459 2.0.21.4.6 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2
3 3 /**
4 - * ColorControl class for Color options.
4 + * Views class for Shortcode generator options.
5 5 *
6 6 * @link https://themeatelier.net
7 7 * @since 1.0.0
8 8 *
@@ -12,9 +12,9 @@
12 12 */
13 13
14 14 namespace ThemeAtelier\Darkify\Admin\Views;
15 15
16 -use ThemeAtelier\Darkify\Admin\Schema\SchemaRegistry as Darkify;
16 +use ThemeAtelier\Darkify\Admin\Framework\Classes\Darkify;
17 17
18 18 class ColorControl
19 19 {
20 20 /**
@@ -27,10 +27,9 @@
27 27 {
28 28 Darkify::createSection(
29 29 $prefix,
30 30 array(
31 - 'id' => 'colors',
32 - 'title' => esc_html__('Colors', 'darkify'),
31 + 'title' => esc_html__('COLORS', 'darkify'),
33 32 'icon' => 'icofont-paint',
34 33 'fields' => array(
35 34
36 35 array(
@@ -36,81 +35,77 @@
36 35 array(
37 36 'type' => 'section_tab',
38 37 'tabs' => array(
39 38 array(
40 - 'id' => 'preset',
41 39 'title' => esc_html__('Preset', 'darkify'),
42 40 'icon' => 'icofont-color-bucket',
43 41 'fields' => array(
44 - // Intro line, rendered plain above the section card.
45 42 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 43 'id' => 'color_pallets',
57 44 'type' => 'palette',
58 45 '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 -
46 + 'title' => esc_html__('Choose A Preset', 'darkify'),
47 + '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>',
64 48 'options' => array(
65 49 'set1' => array(
66 50 'colors' => array('#0F0F0F', '#4A4A4A', '#BEBEBE', '#171717', '#2D2D2D'),
67 51 'name' => esc_html__('Carbon Mist', 'darkify'),
52 + 'demo_url' => 'https://youtu.be/0ervhCG6V4U?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
68 53 ),
69 54 'set3' => array(
70 55 'colors' => array('#211e3c', '#B1BBD8', '#302C57', '#4E478D', '#2A264D'),
71 56 'name' => esc_html__('Midnight Reverie', 'darkify'),
57 + 'demo_url' => 'https://youtu.be/Gz0SDK_08GQ?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
72 58 ),
73 59 'set9' => array(
74 60 'colors' => array('#04261d', '#C1D2BB', '#021e16', '#073d2f', '#095541'),
75 61 'name' => esc_html__('Verdant Depths', 'darkify'),
62 + 'demo_url' => 'https://youtu.be/8r-yeDV83Cs?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
76 63 ),
77 64 'set6' => array(
78 65 'colors' => array('#082032', '#B5D9F3', '#061825', '#144E78', '#0E3755'),
79 66 'name' => esc_html__('Celestial Tide', 'darkify'),
67 + 'demo_url' => 'https://youtu.be/isHN5V4i-aw?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
80 68 ),
81 69 'set10' => array(
82 70 'colors' => array('#171004', '#E0D2BD', '#211706', '#372911', '#5D4010'),
83 71 'name' => esc_html__('Emberwood', 'darkify'),
72 + 'demo_url' => 'https://youtu.be/q4DQOivcurk?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
84 73 ),
85 74 'set2' => array(
86 75 'colors' => array('#092635', '#BEE0F1', '#081E29', '#123d52', '#195979'),
87 76 'name' => esc_html__('Glacier Drift', 'darkify'),
77 + 'demo_url' => 'https://youtu.be/mwf5nG2gSv4?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
88 78 'pro_only' => true,
89 79 ),
90 80 'set4' => array(
91 81 'colors' => array('#1d253a', '#B1BBD8', '#2B3655', '#46598C', '#242F4C'),
92 82 'name' => esc_html__('Indigo Veil', 'darkify'),
83 + 'demo_url' => 'https://youtu.be/o58ns9RRGlU?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
93 84 'pro_only' => true,
94 85 ),
95 86 'set5' => array(
96 87 'colors' => array('#1b1823', '#C6C1D5', '#352f44', '#403953', '#54496f'),
97 88 'name' => esc_html__('Duskmire', 'darkify'),
89 + 'demo_url' => 'https://youtu.be/eAeNuboi--Y?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
98 90 'pro_only' => true,
99 91 ),
100 92 'set7' => array(
101 93 'colors' => array('#07161b', '#C5E6F0', '#0d242e', '#286F8D', '#19495A'),
102 94 'name' => esc_html__('Tidal Frost', 'darkify'),
95 + 'demo_url' => 'https://youtu.be/cUMElxZ0-EY?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
103 96 'pro_only' => true,
104 97 ),
105 98 'set8' => array(
106 99 'colors' => array('#15274C', '#ACC1EA', '#112244', '#244892', '#1a2f5c'),
107 100 'name' => esc_html__('Blue Bastion', 'darkify'),
101 + 'demo_url' => 'https://youtu.be/fi_yopdUul4?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
108 102 'pro_only' => true,
109 103 ),
110 104 'set11' => array(
111 105 'colors' => array('#19081b', '#c09dc2', '#210a24', '#440649', '#2c082f'),
112 106 'name' => esc_html__('Crimson Veil', 'darkify'),
107 + 'demo_url' => 'https://youtu.be/cYHTpisGhBQ?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
113 108 'pro_only' => true,
114 109 ),
115 110 ),
116 111 'default' => 'set1',
@@ -115,11 +110,10 @@
115 110 ),
116 111 'default' => 'set1',
117 112 ),
118 113 array(
119 - 'type' => 'heading',
120 - 'title' => esc_html__('Customize Selected Preset', 'darkify'),
121 - 'section_start' => true,
114 + 'type' => 'subheading',
115 + 'title' => esc_html__('Customize Selected Preset', 'darkify'),
122 116 ),
123 117
124 118 // color pallate set 1
125 119 array(
@@ -125,18 +119,14 @@
125 119 array(
126 120 'id' => 'dark_mode_color_set1',
127 121 'type' => 'color_group',
128 122 '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'),
123 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
124 + 'dependency' => array('color_pallets', '==', 'set1', 'all'),
125 + 'options' => array(
126 + 'background' => esc_html__('Primary BG', 'darkify'),
127 + 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
136 128 ),
137 -
138 - 'dependency' => array('color_pallets', '==', 'set1', 'all'),
139 129 'default' => array(
140 130 'background' => '#0F0F0F',
141 131 'secondary_background' => '#171717',
142 132 ),
@@ -144,13 +134,9 @@
144 134 array(
145 135 'id' => 'dark_mode_link_color_set1',
146 136 'type' => 'color_group',
147 137 '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 -
138 + 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
153 139 'dependency' => array('color_pallets', '==', 'set1', 'all'),
154 140 'class' => 'only_pro',
155 141 'options' => array(
156 142 'text' => esc_html__('Text Color', 'darkify'),
@@ -166,21 +152,16 @@
166 152 array(
167 153 'id' => 'dark_mode_input_color_set1',
168 154 'type' => 'color_group',
169 155 '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 -
156 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
175 157 'dependency' => array('color_pallets', '==', 'set1', 'all'),
176 158 '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'),
159 + 'options' => array(
160 + 'color' => esc_html__('Input Text', 'darkify'),
161 + 'placeholder' => esc_html('Input Placeholder', 'darkify'),
162 + 'background' => esc_html('Input Background', 'darkify'),
181 163 ),
182 -
183 164 'default' => array(
184 165 'color' => '#BEBEBE',
185 166 'placeholder' => '#BEBEBE',
186 167 'background' => '#2D2D2D',
@@ -189,13 +170,9 @@
189 170 array(
190 171 'id' => 'dark_mode_border_color_set1',
191 172 'type' => 'color',
192 173 '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 -
174 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
198 175 'class' => 'only_pro',
199 176 'dependency' => array('color_pallets', '==', 'set1', 'all'),
200 177 'default' => '#4A4A4A',
201 178 ),
@@ -202,22 +179,17 @@
202 179 array(
203 180 'id' => 'dark_mode_btn_color_set1',
204 181 'type' => 'color_group',
205 182 '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 - ),
217 -
183 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
218 184 'class' => 'only_pro',
219 185 'dependency' => array('color_pallets', '==', 'set1', 'all'),
186 + 'options' => array(
187 + 'color' => esc_html__('Color', 'darkify'),
188 + 'background' => esc_html('Background', 'darkify'),
189 + 'hover_color' => esc_html__('Hover Color', 'darkify'),
190 + 'hover_background' => esc_html('Hover Background', 'darkify'),
191 + ),
220 192 'default' => array(
221 193 'color' => '#BEBEBE',
222 194 'background' => '#4A4A4A',
223 195 'hover_color' => '#BEBEBE',
@@ -228,19 +200,14 @@
228 200 array(
229 201 'id' => 'dark_mode_color_set3',
230 202 'type' => 'color_group',
231 203 'title' => esc_html__('Background', 'darkify'),
232 - 'title_help' =>
233 - '<div class="darkify-info-label">' .
234 - __('Set the background color of your website when dark mode is enabled.', 'darkify') .
235 - '</div>',
236 -
204 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
205 + 'dependency' => array('color_pallets', '==', 'set3', 'all'),
237 206 'options' => array(
238 - 'background' => esc_html__('Primary', 'darkify'),
239 - 'secondary_background' => esc_html__('Secondary', 'darkify'),
207 + 'background' => esc_html__('Primary BG', 'darkify'),
208 + 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
240 209 ),
241 - 'dependency' => array('color_pallets', '==', 'set3', 'all'),
242 -
243 210 'default' => array(
244 211 'background' => '#211e3c',
245 212 'secondary_background' => '#302C57',
246 213 ),
@@ -248,21 +215,16 @@
248 215 array(
249 216 'id' => 'dark_mode_link_color_set3',
250 217 'type' => 'color_group',
251 218 'title' => esc_html__('Text', 'darkify'),
252 - 'title_help' =>
253 - '<div class="darkify-info-label">' .
254 - __('Set the text and link colors of your website when dark mode is enabled.', 'darkify') .
255 - '</div>',
256 -
257 - 'options' => array(
258 - 'text' => esc_html__('Text Color', 'darkify'),
219 + 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
220 + 'class' => 'only_pro',
221 + 'dependency' => array('color_pallets', '==', 'set3', 'all'),
222 + 'options' => array(
223 + 'text' => esc_html__('Text Color', 'darkify'),
259 224 'color' => esc_html__('Link Color', 'darkify'),
260 225 'hover' => esc_html__('Link Hover Color', 'darkify'),
261 226 ),
262 -
263 - 'class' => 'only_pro',
264 - 'dependency' => array('color_pallets', '==', 'set3', 'all'),
265 227 'default' => array(
266 228 'text' => '#B1BBD8',
267 229 'color' => '#8071fb',
268 230 'hover' => '#B1BBD8',
@@ -271,21 +233,16 @@
271 233 array(
272 234 'id' => 'dark_mode_input_color_set3',
273 235 'type' => 'color_group',
274 236 'title' => esc_html__('Input', 'darkify'),
275 - 'title_help' =>
276 - '<div class="darkify-info-label">' .
277 - __('Set the input field color of your website when dark mode is enabled.', 'darkify') .
278 - '</div>',
279 -
280 - 'options' => array(
281 - 'color' => esc_html__('Input Text', 'darkify'),
282 - 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
283 - 'background' => esc_html__('Input Background', 'darkify'),
284 - ),
285 -
237 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
286 238 'class' => 'only_pro',
287 239 'dependency' => array('color_pallets', '==', 'set3', 'all'),
240 + 'options' => array(
241 + 'color' => esc_html__('Input Text', 'darkify'),
242 + 'placeholder' => esc_html('Input Placeholder', 'darkify'),
243 + 'background' => esc_html('Input Background', 'darkify'),
244 + ),
288 245 'default' => array(
289 246 'color' => '#B1BBD8',
290 247 'placeholder' => '#B1BBD8',
291 248 'background' => '#2A264D',
@@ -294,13 +251,9 @@
294 251 array(
295 252 'id' => 'dark_mode_border_color_set3',
296 253 'type' => 'color',
297 254 'title' => esc_html__('Border', 'darkify'),
298 - 'title_help' =>
299 - '<div class="darkify-info-label">' .
300 - __('Set the border color of your website when dark mode is enabled.', 'darkify') .
301 - '</div>',
302 -
255 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
303 256 'class' => 'only_pro',
304 257 'dependency' => array('color_pallets', '==', 'set3', 'all'),
305 258 'default' => '#4E478D',
306 259 ),
@@ -307,21 +260,17 @@
307 260 array(
308 261 'id' => 'dark_mode_btn_color_set3',
309 262 'type' => 'color_group',
310 263 'title' => esc_html__('Button', 'darkify'),
311 - 'title_help' =>
312 - '<div class="darkify-info-label">' .
313 - __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
314 - '</div>',
315 - 'options' => array(
316 - 'color' => esc_html__('Text Color', 'darkify'),
317 - 'background' => esc_html__('Background', 'darkify'),
318 - 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
319 - 'hover_background' => esc_html__('Hover Background', 'darkify'),
320 - ),
321 -
264 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
322 265 'class' => 'only_pro',
323 266 'dependency' => array('color_pallets', '==', 'set3', 'all'),
267 + 'options' => array(
268 + 'color' => esc_html__('Color', 'darkify'),
269 + 'background' => esc_html('Background', 'darkify'),
270 + 'hover_color' => esc_html('Background', 'darkify'),
271 + 'hover_background' => esc_html('Background', 'darkify'),
272 + ),
324 273 'default' => array(
325 274 'color' => '#4E478D',
326 275 'background' => '#B1BBD8',
327 276 'hover_color' => '#B1BBD8',
@@ -332,18 +281,14 @@
332 281 array(
333 282 'id' => 'dark_mode_color_set6',
334 283 'type' => 'color_group',
335 284 'title' => esc_html__('Background', 'darkify'),
336 - 'title_help' =>
337 - '<div class="darkify-info-label">' .
338 - __('Set the background color of your website when dark mode is enabled.', 'darkify') .
339 - '</div>',
340 - 'options' => array(
341 - 'background' => esc_html__('Primary', 'darkify'),
342 - 'secondary_background' => esc_html__('Secondary', 'darkify'),
285 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
286 + 'dependency' => array('color_pallets', '==', 'set6', 'all'),
287 + 'options' => array(
288 + 'background' => esc_html__('Primary BG', 'darkify'),
289 + 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
343 290 ),
344 -
345 - 'dependency' => array('color_pallets', '==', 'set6', 'all'),
346 291 'default' => array(
347 292 'background' => '#082032',
348 293 'secondary_background' => '#2C394B',
349 294 ),
@@ -351,20 +296,16 @@
351 296 array(
352 297 'id' => 'dark_mode_link_color_set6',
353 298 'type' => 'color_group',
354 299 'title' => esc_html__('Text', 'darkify'),
355 - 'title_help' =>
356 - '<div class="darkify-info-label">' .
357 - __('Set the text color of your website when dark mode is enabled.', 'darkify') .
358 - '</div>',
359 - 'options' => array(
360 - 'text' => esc_html__('Text Color', 'darkify'),
300 + 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
301 + 'class' => 'only_pro',
302 + 'dependency' => array('color_pallets', '==', 'set6', 'all'),
303 + 'options' => array(
304 + 'text' => esc_html__('Text Color', 'darkify'),
361 305 'color' => esc_html__('Link Color', 'darkify'),
362 306 'hover' => esc_html__('Link Hover Color', 'darkify'),
363 307 ),
364 -
365 - 'class' => 'only_pro',
366 - 'dependency' => array('color_pallets', '==', 'set6', 'all'),
367 308 'default' => array(
368 309 'text' => '#B5D9F3',
369 310 'color' => '#61bbff',
370 311 'hover' => '#B5D9F3',
@@ -374,21 +315,16 @@
374 315 array(
375 316 'id' => 'dark_mode_input_color_set6',
376 317 'type' => 'color_group',
377 318 'title' => esc_html__('Input', 'darkify'),
378 - 'title_help' =>
379 - '<div class="darkify-info-label">' .
380 - __('Set the input field color of your website when dark mode is enabled.', 'darkify') .
381 - '</div>',
382 -
383 - 'options' => array(
384 - 'color' => esc_html__('Input Text', 'darkify'),
385 - 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
386 - 'background' => esc_html__('Input Background', 'darkify'),
387 - ),
388 -
319 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
389 320 'class' => 'only_pro',
390 321 'dependency' => array('color_pallets', '==', 'set6', 'all'),
322 + 'options' => array(
323 + 'color' => esc_html__('Input Text', 'darkify'),
324 + 'placeholder' => esc_html('Input Placeholder', 'darkify'),
325 + 'background' => esc_html('Input Background', 'darkify'),
326 + ),
391 327 'default' => array(
392 328 'color' => '#B5D9F3',
393 329 'placeholder' => '#B5D9F3',
394 330 'background' => '#0E3755',
@@ -398,13 +334,9 @@
398 334 array(
399 335 'id' => 'dark_mode_border_color_set6',
400 336 'type' => 'color',
401 337 'title' => esc_html__('Border', 'darkify'),
402 - 'title_help' =>
403 - '<div class="darkify-info-label">' .
404 - __('Set the border color of your website when dark mode is enabled.', 'darkify') .
405 - '</div>',
406 -
338 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
407 339 'class' => 'only_pro',
408 340 'dependency' => array('color_pallets', '==', 'set6', 'all'),
409 341 'default' => '#3B4D65',
410 342 ),
@@ -411,22 +343,17 @@
411 343 array(
412 344 'id' => 'dark_mode_btn_color_set6',
413 345 'type' => 'color_group',
414 346 'title' => esc_html__('Button', 'darkify'),
415 - 'title_help' =>
416 - '<div class="darkify-info-label">' .
417 - __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
418 - '</div>',
419 - 'options' => array(
420 - 'color' => esc_html__('Text Color', 'darkify'),
421 - 'background' => esc_html__('Background', 'darkify'),
422 - 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
423 - 'hover_background' => esc_html__('Hover Background', 'darkify'),
424 - ),
425 -
347 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
426 348 'class' => 'only_pro',
427 349 'dependency' => array('color_pallets', '==', 'set6', 'all'),
428 -
350 + 'options' => array(
351 + 'color' => esc_html__('Color', 'darkify'),
352 + 'background' => esc_html('Background', 'darkify'),
353 + 'hover_color' => esc_html('Background', 'darkify'),
354 + 'hover_background' => esc_html('Background', 'darkify'),
355 + ),
429 356 'default' => array(
430 357 'color' => '#B5D9F3',
431 358 'background' => '#3B4D65',
432 359 'hover_color' => '#B5D9F3',
@@ -437,20 +364,14 @@
437 364 array(
438 365 'id' => 'dark_mode_color_set9',
439 366 'type' => 'color_group',
440 367 'title' => esc_html__('Background', 'darkify'),
441 - 'title_help' =>
442 - '<div class="darkify-info-label">' .
443 - __('Set the background color of your website when dark mode is enabled.', 'darkify') .
444 - '</div>',
445 -
368 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
446 369 'dependency' => array('color_pallets', '==', 'set9', 'all'),
447 -
448 - 'options' => array(
449 - 'background' => esc_html__('Primary', 'darkify'),
450 - 'secondary_background' => esc_html__('Secondary', 'darkify'),
370 + 'options' => array(
371 + 'background' => esc_html__('Primary BG', 'darkify'),
372 + 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
451 373 ),
452 -
453 374 'default' => array(
454 375 'background' => '#04261d',
455 376 'secondary_background' => '#021e16',
456 377 ),
@@ -458,20 +379,16 @@
458 379 array(
459 380 'id' => 'dark_mode_link_color_set9',
460 381 'type' => 'color_group',
461 382 'title' => esc_html__('Text', 'darkify'),
462 - 'title_help' =>
463 - '<div class="darkify-info-label">' .
464 - __('Set the text and link colors of your website when dark mode is enabled.', 'darkify') .
465 - '</div>',
466 - 'options' => array(
467 - 'text' => esc_html__('Text Color', 'darkify'),
383 + 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
384 + 'class' => 'only_pro',
385 + 'dependency' => array('color_pallets', '==', 'set9', 'all'),
386 + 'options' => array(
387 + 'text' => esc_html__('Text Color', 'darkify'),
468 388 'color' => esc_html__('Link Color', 'darkify'),
469 389 'hover' => esc_html__('Link Hover Color', 'darkify'),
470 390 ),
471 -
472 - 'class' => 'only_pro',
473 - 'dependency' => array('color_pallets', '==', 'set9', 'all'),
474 391 'default' => array(
475 392 'text' => '#C1D2BB',
476 393 'color' => '#00d29a',
477 394 'hover' => '#C1D2BB',
@@ -481,21 +398,16 @@
481 398 array(
482 399 'id' => 'dark_mode_input_color_set9',
483 400 'type' => 'color_group',
484 401 'title' => esc_html__('Input', 'darkify'),
485 - 'title_help' =>
486 - '<div class="darkify-info-label">' .
487 - __('Set the input field colors of your website when dark mode is enabled.', 'darkify') .
488 - '</div>',
489 -
490 - 'options' => array(
491 - 'color' => esc_html__('Input Text', 'darkify'),
492 - 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
493 - 'background' => esc_html__('Input Background', 'darkify'),
494 - ),
495 -
402 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
496 403 'class' => 'only_pro',
497 404 'dependency' => array('color_pallets', '==', 'set9', 'all'),
405 + 'options' => array(
406 + 'color' => esc_html__('Input Text', 'darkify'),
407 + 'placeholder' => esc_html('Input Placeholder', 'darkify'),
408 + 'background' => esc_html('Input Background', 'darkify'),
409 + ),
498 410 'default' => array(
499 411 'color' => '#C1D2BB',
500 412 'placeholder' => '#C1D2BB',
501 413 'background' => '#073d2f',
@@ -505,13 +417,9 @@
505 417 array(
506 418 'id' => 'dark_mode_border_color_set9',
507 419 'type' => 'color',
508 420 'title' => esc_html__('Border', 'darkify'),
509 - 'title_help' =>
510 - '<div class="darkify-info-label">' .
511 - __('Set the border color of your website when dark mode is enabled.', 'darkify') .
512 - '</div>',
513 -
421 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
514 422 'class' => 'only_pro',
515 423 'dependency' => array('color_pallets', '==', 'set9', 'all'),
516 424 'default' => '#095541',
517 425 ),
@@ -518,19 +426,17 @@
518 426 array(
519 427 'id' => 'dark_mode_btn_color_set9',
520 428 'type' => 'color_group',
521 429 'title' => esc_html__('Button', 'darkify'),
522 - 'title_help' => '<div class="darkify-info-label">' .
523 - __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
524 - '</div>',
525 - 'options' => array(
526 - 'color' => esc_html__('Text Color', 'darkify'),
527 - 'background' => esc_html__('Background', 'darkify'),
528 - 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
529 - 'hover_background' => esc_html__('Hover Background', 'darkify'),
530 - ),
430 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
531 431 'class' => 'only_pro',
532 432 'dependency' => array('color_pallets', '==', 'set9', 'all'),
433 + 'options' => array(
434 + 'color' => esc_html__('Color', 'darkify'),
435 + 'background' => esc_html('Background', 'darkify'),
436 + 'hover_color' => esc_html__('Button Text', 'darkify'),
437 + 'hover_background' => esc_html('Button Background', 'darkify'),
438 + ),
533 439 'default' => array(
534 440 'color' => '#C1D2BB',
535 441 'background' => '#095541',
536 442 'hover_color' => '#C1D2BB',
@@ -541,18 +447,14 @@
541 447 array(
542 448 'id' => 'dark_mode_color_set10',
543 449 'type' => 'color_group',
544 450 'title' => esc_html__('Background', 'darkify'),
545 - 'title_help' =>
546 - '<div class="darkify-info-label">' .
547 - __('Set the background color of your website when dark mode is enabled.', 'darkify') .
548 - '</div>',
549 - 'options' => array(
550 - 'background' => esc_html__('Primary', 'darkify'),
551 - 'secondary_background' => esc_html__('Secondary', 'darkify'),
451 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
452 + 'dependency' => array('color_pallets', '==', 'set10', 'all'),
453 + 'options' => array(
454 + 'background' => esc_html__('Primary BG', 'darkify'),
455 + 'secondary_background' => esc_html__('Secondary BG Test', 'darkify'),
552 456 ),
553 -
554 - 'dependency' => array('color_pallets', '==', 'set10', 'all'),
555 457 'default' => array(
556 458 'background' => '#171004',
557 459 'secondary_background' => '#211706',
558 460 ),
@@ -560,20 +462,16 @@
560 462 array(
561 463 'id' => 'dark_mode_link_color_set10',
562 464 'type' => 'color_group',
563 465 'title' => esc_html__('Text', 'darkify'),
564 - 'title_help' =>
565 - '<div class="darkify-info-label">' .
566 - __('Set the text color of your website when dark mode is enabled.', 'darkify') .
567 - '</div>',
568 - 'options' => array(
569 - 'text' => esc_html__('Text Color', 'darkify'),
466 + 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
467 + 'class' => 'only_pro',
468 + 'dependency' => array('color_pallets', '==', 'set10', 'all'),
469 + 'options' => array(
470 + 'text' => esc_html__('Text Color', 'darkify'),
570 471 'color' => esc_html__('Link Color', 'darkify'),
571 472 'hover' => esc_html__('Link Hover Color', 'darkify'),
572 473 ),
573 -
574 - 'class' => 'only_pro',
575 - 'dependency' => array('color_pallets', '==', 'set10', 'all'),
576 474 'default' => array(
577 475 'text' => '#E0D2BD',
578 476 'color' => '#e09525',
579 477 'hover' => '#E0D2BD',
@@ -583,22 +481,16 @@
583 481 array(
584 482 'id' => 'dark_mode_input_color_set10',
585 483 'type' => 'color_group',
586 484 'title' => esc_html__('Input', 'darkify'),
587 - 'title_help' =>
588 - '<div class="darkify-info-label">' .
589 - __('Set the input field colors of your website when dark mode is enabled.', 'darkify') .
590 - '</div>',
591 -
592 - 'options' => array(
593 - 'color' => esc_html__('Input Text', 'darkify'),
594 - 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
595 - 'background' => esc_html__('Input Background', 'darkify'),
596 - ),
597 -
485 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
598 486 'class' => 'only_pro',
599 487 'dependency' => array('color_pallets', '==', 'set10', 'all'),
600 -
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 + ),
601 493 'default' => array(
602 494 'color' => '#E0D2BD',
603 495 'placeholder' => '#E0D2BD',
604 496 'background' => '#372911',
@@ -608,13 +500,9 @@
608 500 array(
609 501 'id' => 'dark_mode_border_color_set10',
610 502 'type' => 'color',
611 503 'title' => esc_html__('Border', 'darkify'),
612 - 'title_help' =>
613 - '<div class="darkify-info-label">' .
614 - __('Set the border color of your website when dark mode is enabled.', 'darkify') .
615 - '</div>',
616 -
504 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
617 505 'class' => 'only_pro',
618 506 'dependency' => array('color_pallets', '==', 'set10', 'all'),
619 507 'default' => '#5D4010',
620 508 ),
@@ -621,22 +509,17 @@
621 509 array(
622 510 'id' => 'dark_mode_btn_color_set10',
623 511 'type' => 'color_group',
624 512 'title' => esc_html__('Button', 'darkify'),
625 - 'title' => esc_html__('Button', 'darkify'),
626 - 'title_help' =>
627 - '<div class="darkify-info-label">' .
628 - __('Set the color of buttons on your website when dark mode is enabled.', 'darkify') .
629 - '</div>',
630 - 'options' => array(
631 - 'color' => esc_html__('Button Text', 'darkify'),
632 - 'background' => esc_html__('Button Background', 'darkify'),
633 - 'hover_color' => esc_html__('Hover Text', 'darkify'),
634 - 'hover_background' => esc_html__('Hover Background', 'darkify'),
635 - ),
636 -
513 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
637 514 'class' => 'only_pro',
638 515 'dependency' => array('color_pallets', '==', 'set10', 'all'),
516 + 'options' => array(
517 + 'color' => esc_html__('Color', 'darkify'),
518 + 'background' => esc_html('Background', 'darkify'),
519 + 'hover_color' => esc_html__('Button Text', 'darkify'),
520 + 'hover_background' => esc_html('Button Background', 'darkify'),
521 + ),
639 522 'default' => array(
640 523 'color' => '#E0D2BD',
641 524 'background' => '#5D4010',
642 525 'hover_color' => '#E0D2BD',
@@ -647,19 +530,14 @@
647 530 array(
648 531 'id' => 'dark_mode_color_set11',
649 532 'type' => 'color_group',
650 533 'title' => esc_html__('Background', 'darkify'),
651 - 'title_help' =>
652 - '<div class="darkify-info-label">' .
653 - __('Set the background color of your website when dark mode is enabled.', 'darkify') .
654 - '</div>',
655 - 'options' => array(
656 - 'background' => esc_html__('Primary BG', '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', '==', 'set11', 'all'),
536 + 'options' => array(
537 + 'background' => esc_html__('Primary BG', 'darkify'),
657 538 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
658 539 ),
659 -
660 - 'dependency' => array('color_pallets', '==', 'set11', 'all'),
661 -
662 540 'default' => array(
663 541 'background' => '#19081b',
664 542 'secondary_background' => '#210a24',
665 543 ),
@@ -667,21 +545,16 @@
667 545 array(
668 546 'id' => 'dark_mode_link_color_set11',
669 547 'type' => 'color_group',
670 548 'title' => esc_html__('Text', 'darkify'),
671 - 'title_help' =>
672 - '<div class="darkify-info-label">' .
673 - __('Set the text color of your website when dark mode is enabled.', 'darkify') .
674 - '</div>',
675 - 'options' => array(
676 - 'text' => esc_html__('Text Color', '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', '==', 'set11', 'all'),
552 + 'options' => array(
553 + 'text' => esc_html__('Text Color', 'darkify'),
677 554 'color' => esc_html__('Link Color', 'darkify'),
678 555 'hover' => esc_html__('Link Hover Color', 'darkify'),
679 556 ),
680 -
681 - 'class' => 'only_pro',
682 - 'dependency' => array('color_pallets', '==', 'set11', 'all'),
683 -
684 557 'default' => array(
685 558 'text' => '#c09dc2',
686 559 'color' => '#c832d4',
687 560 'hover' => '#c09dc2',
@@ -691,21 +564,16 @@
691 564 array(
692 565 'id' => 'dark_mode_input_color_set11',
693 566 'type' => 'color_group',
694 567 'title' => esc_html__('Input', 'darkify'),
695 - 'title_help' =>
696 - '<div class="darkify-info-label">' .
697 - __('Set the input field colors of your website when dark mode is enabled.', 'darkify') .
698 - '</div>',
699 - 'options' => array(
700 - 'color' => esc_html__('Input Text', 'darkify'),
701 - 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
702 - 'background' => esc_html__('Input Background', 'darkify'),
703 - ),
704 -
568 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
705 569 'class' => 'only_pro',
706 570 'dependency' => array('color_pallets', '==', 'set11', 'all'),
707 -
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 + ),
708 576 'default' => array(
709 577 'color' => '#c09dc2',
710 578 'placeholder' => '#c09dc2',
711 579 'background' => '#2c082f',
@@ -715,13 +583,9 @@
715 583 array(
716 584 'id' => 'dark_mode_border_color_set11',
717 585 'type' => 'color',
718 586 'title' => esc_html__('Border', 'darkify'),
719 - 'title_help' =>
720 - '<div class="darkify-info-label">' .
721 - __('Set the border color of your website when dark mode is enabled.', 'darkify') .
722 - '</div>',
723 -
587 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
724 588 'class' => 'only_pro',
725 589 'dependency' => array('color_pallets', '==', 'set11', 'all'),
726 590 'default' => '#440649',
727 591 ),
@@ -728,23 +592,17 @@
728 592 array(
729 593 'id' => 'dark_mode_btn_color_set11',
730 594 'type' => 'color_group',
731 595 'title' => esc_html__('Button', 'darkify'),
732 - 'title_help' =>
733 - '<div class="darkify-info-label">' .
734 - __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
735 - '</div>',
736 -
737 - 'options' => array(
738 - 'color' => esc_html__('Text Color', 'darkify'),
739 - 'background' => esc_html__('Background', 'darkify'),
740 - 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
741 - 'hover_background' => esc_html__('Hover Background', 'darkify'),
742 - ),
743 -
596 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
744 597 'class' => 'only_pro',
745 598 'dependency' => array('color_pallets', '==', 'set11', 'all'),
746 -
599 + 'options' => array(
600 + 'color' => esc_html__('Color', 'darkify'),
601 + 'background' => esc_html('Background', 'darkify'),
602 + 'hover_color' => esc_html__('Button Text', 'darkify'),
603 + 'hover_background' => esc_html('Button Background', 'darkify'),
604 + ),
747 605 'default' => array(
748 606 'color' => '#c09dc2',
749 607 'background' => '#440649',
750 608 'hover_color' => '#c09dc2',
@@ -754,166 +612,16 @@
754 612 )
755 613 ),
756 614
757 615 array(
758 - 'id' => 'fine-tuning',
759 - 'title' => esc_html__('Fine-Tuning', 'darkify'),
760 - 'icon' => 'icofont-options',
761 - 'fields' => array(
762 - // Intro line, rendered plain above the section card.
763 - array(
764 - 'type' => 'page_hint',
765 - 'content' => esc_html__('Control how gradients, brand colors and shadows are treated in dark mode, and pin individual colors to a dark-mode replacement.', 'darkify'),
766 - ),
767 -
768 - // ===== GRADIENTS =====
769 - array(
770 - 'type' => 'heading',
771 - 'title' => esc_html__('Gradients', 'darkify'),
772 - 'section_start' => true,
773 - ),
774 - array(
775 - 'id' => 'gradient_handling',
776 - 'type' => 'select',
777 - 'title' => esc_html__('Gradient Backgrounds', 'darkify'),
778 - 'title_help' =>
779 - '<div class="darkify-info-label">' .
780 - __('A gradient lives in a different CSS property than a solid color, so it is not covered by the dark-mode color set. Recoloring runs every color stop through the same dark ramp a solid background gets, which is what keeps a gradient section and a solid section next to it looking like one design.', 'darkify') .
781 - '</div>',
782 -
783 - 'options' => array(
784 - 'recolor' => esc_html__('Recolor gradient stops (recommended)', 'darkify'),
785 - 'flatten' => esc_html__('Replace gradient with a flat dark background', 'darkify'),
786 - 'keep' => esc_html__('Leave gradients untouched', 'darkify'),
787 - ),
788 - 'default' => 'recolor',
789 - ),
790 -
791 - // ===== SHADOWS =====
792 - array(
793 - 'type' => 'heading',
794 - 'title' => esc_html__('Shadows', 'darkify'),
795 - 'section_start' => true,
796 - ),
797 - array(
798 - 'id' => 'shadow_handling',
799 - 'type' => 'select',
800 - 'title' => esc_html__('Box & Text Shadows', 'darkify'),
801 - 'title_help' =>
802 - '<div class="darkify-info-label">' .
803 - __('A colored shadow designed for a light page stays lit on a dark one and cancels out the dimming. Neutralizing keeps the shadow geometry — so cards keep their depth — but drops the color.', 'darkify') .
804 - '</div>',
805 -
806 - 'options' => array(
807 - 'neutralize' => esc_html__('Neutralize color, keep depth (recommended)', 'darkify'),
808 - 'map' => esc_html__('Use the color overrides below, then neutralize', 'darkify'),
809 - 'remove' => esc_html__('Remove shadows entirely', 'darkify'),
810 - 'keep' => esc_html__('Leave shadows untouched', 'darkify'),
811 - ),
812 - 'default' => 'neutralize',
813 - ),
814 -
815 - // ===== BRAND COLORS =====
816 - array(
817 - 'type' => 'heading',
818 - 'title' => esc_html__('Brand Colors', 'darkify'),
819 - 'section_start' => true,
820 - ),
821 - array(
822 - 'id' => 'brand_color_handling',
823 - 'type' => 'select',
824 - 'title' => esc_html__('Accent & Icon Colors', 'darkify'),
825 - 'title_help' =>
826 - '<div class="darkify-info-label">' .
827 - __('Controls brand colors only — accents, icons, buttons, colored panels. Adaptive keeps each color\'s hue while matching its depth to the preset above, so an intense accent stays on-brand without glowing. This is not an inversion: a blue icon stays blue. Plain light and grey backgrounds always follow your preset either way.', 'darkify') .
828 - '</div>',
829 -
830 - 'options' => array(
831 - 'adaptive' => esc_html__('Keep brand hues, matched to your preset (recommended)', 'darkify'),
832 - 'flatten' => esc_html__('Replace brand colors with the preset colors', 'darkify'),
833 - ),
834 - 'default' => 'adaptive',
835 - ),
836 -
837 - // ===== MANUAL COLOR OVERRIDES =====
838 - array(
839 - 'type' => 'heading',
840 - 'title' => esc_html__('Color Overrides', 'darkify'),
841 - 'section_start' => true,
842 - ),
843 - array(
844 - 'id' => 'color_overrides',
845 - 'type' => 'repeater',
846 - 'class' => 'replacement_repeater repeater_pro_only',
847 - 'title' => esc_html__('Replace Individual Colors', 'darkify'),
848 - 'title_help' =>
849 - '<div class="darkify-info-label">' .
850 - __('Pin one light-mode color to an exact dark-mode color. Overrides are matched against the color the element actually renders with, and they apply whatever the settings above are set to — so a handful of colors can be pinned without switching the whole site to adaptive.', 'darkify') .
851 - '</div>',
852 -
853 - 'fields' => array(
854 - array(
855 - 'id' => 'light_color',
856 - 'type' => 'color',
857 - 'title' => esc_html__('Light Mode Color', 'darkify'),
858 - ),
859 - array(
860 - 'id' => 'dark_color',
861 - 'type' => 'color',
862 - 'title' => esc_html__('Dark Mode Color', 'darkify'),
863 - ),
864 - array(
865 - 'id' => 'override_scope',
866 - 'type' => 'select',
867 - 'title' => esc_html__('Apply To', 'darkify'),
868 - 'options' => array(
869 - 'all' => esc_html__('Everywhere', 'darkify'),
870 - 'text' => esc_html__('Text only', 'darkify'),
871 - 'icon' => esc_html__('Icons only', 'darkify'),
872 - 'background' => esc_html__('Backgrounds only', 'darkify'),
873 - 'border' => esc_html__('Borders only', 'darkify'),
874 - 'shadow' => esc_html__('Shadows only', 'darkify'),
875 - ),
876 - 'default' => 'all',
877 - ),
878 - ),
879 -
880 - 'default' => array(
881 - array(
882 - 'light_color' => '',
883 - 'dark_color' => '',
884 - 'override_scope' => 'all',
885 - ),
886 - ),
887 - ),
888 - )
889 - ),
890 -
891 - array(
892 - 'id' => 'scroll-bar',
893 616 'title' => esc_html__('Scroll Bar', 'darkify'),
894 617 'icon' => 'icofont-scroll-double-down',
895 618 'fields' => array(
896 - // Intro line, rendered plain above the section card.
897 619 array(
898 - 'type' => 'page_hint',
899 - 'content' => esc_html__('Style the browser scrollbar to match dark mode.', 'darkify'),
900 - ),
901 - // ===== SCROLLBAR =====
902 - array(
903 - 'type' => 'heading',
904 - 'title' => esc_html__('Scrollbar', 'darkify'),
905 - 'section_start' => true,
906 - ),
907 - array(
908 620 'id' => 'enable_scrollbar_dark',
909 621 'type' => 'switcher',
910 - 'title' => esc_html__('Enable Dark Mode on Scrollbar', 'darkify'),
911 - 'title_help' =>
912 - '<div class="darkify-info-label">' .
913 - __('Enable dark mode styling for the website scrollbar.', 'darkify') .
914 - '</div>',
915 -
622 + 'title' => esc_html__('Enable Dark Mode On Scrollbar', 'darkify'),
623 + 'title_help' => '<div class="darkify-info-label">' . __('Want to enable dark mode on the scrollbar of the website?', 'darkify') . '</div>',
916 624 'text_on' => esc_html__('Enabled', 'darkify'),
917 625 'text_off' => esc_html__('Disabled', 'darkify'),
918 626 'text_width' => 100,
919 627 'default' => true,
@@ -922,20 +630,14 @@
922 630 array(
923 631 'id' => 'scrollbar_color',
924 632 'type' => 'color_group',
925 633 'title' => esc_html__('Scrollbar Color', 'darkify'),
926 - 'title_help' =>
927 - '<div class="darkify-info-label">' .
928 - __('Set the track and thumb background colors of the scrollbar when dark mode is enabled.', 'darkify') .
929 - '</div>',
930 -
634 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of scrollbar\'s track & thumb when dark mode is enabled.', 'darkify') . '</div>',
635 + 'class' => 'only_pro',
931 636 'options' => array(
932 - 'dark_mode_scrollbar_track_bg' => esc_html__('Track Background', 'darkify'),
933 - 'dark_mode_scrollbar_thumb_bg' => esc_html__('Thumb Background', 'darkify'),
637 + 'dark_mode_scrollbar_track_bg' => esc_html__('Trac BG', 'darkify'),
638 + 'dark_mode_scrollbar_thumb_bg' => esc_html__('Thumb BG', 'darkify'),
934 639 ),
935 -
936 - 'class' => 'only_pro',
937 -
938 640 'default' => array(
939 641 'dark_mode_scrollbar_track_bg' => '#29292a',
940 642 'dark_mode_scrollbar_thumb_bg' => '#52565a',
941 643 ),
@@ -944,9 +646,8 @@
944 646
945 647
946 648 )
947 649 ),
948 -
949 650
950 651 )
951 652 ),
952 653 ),