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 -412 2.1.01.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,31 +179,22 @@
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 - 'border' => esc_html__('Border Color', 'darkify'),
217 - 'hover_border' => esc_html__('Hover Border Color', 'darkify'),
218 - ),
219 -
183 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
220 184 'class' => 'only_pro',
221 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 + ),
222 192 'default' => array(
223 193 'color' => '#BEBEBE',
224 194 'background' => '#4A4A4A',
225 195 'hover_color' => '#BEBEBE',
226 196 'hover_background' => '#2D2D2D',
227 - 'border' => '#4A4A4A',
228 - 'hover_border' => '#2D2D2D',
229 197 ),
230 198 ),
231 199 // color pallate set 3
232 200 array(
@@ -232,19 +200,14 @@
232 200 array(
233 201 'id' => 'dark_mode_color_set3',
234 202 'type' => 'color_group',
235 203 '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 -
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'),
241 206 'options' => array(
242 - 'background' => esc_html__('Primary', 'darkify'),
243 - 'secondary_background' => esc_html__('Secondary', 'darkify'),
207 + 'background' => esc_html__('Primary BG', 'darkify'),
208 + 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
244 209 ),
245 - 'dependency' => array('color_pallets', '==', 'set3', 'all'),
246 -
247 210 'default' => array(
248 211 'background' => '#211e3c',
249 212 'secondary_background' => '#302C57',
250 213 ),
@@ -252,21 +215,16 @@
252 215 array(
253 216 'id' => 'dark_mode_link_color_set3',
254 217 'type' => 'color_group',
255 218 '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'),
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'),
263 224 'color' => esc_html__('Link Color', 'darkify'),
264 225 'hover' => esc_html__('Link Hover Color', 'darkify'),
265 226 ),
266 -
267 - 'class' => 'only_pro',
268 - 'dependency' => array('color_pallets', '==', 'set3', 'all'),
269 227 'default' => array(
270 228 'text' => '#B1BBD8',
271 229 'color' => '#8071fb',
272 230 'hover' => '#B1BBD8',
@@ -275,21 +233,16 @@
275 233 array(
276 234 'id' => 'dark_mode_input_color_set3',
277 235 'type' => 'color_group',
278 236 '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 -
237 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
290 238 'class' => 'only_pro',
291 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 + ),
292 245 'default' => array(
293 246 'color' => '#B1BBD8',
294 247 'placeholder' => '#B1BBD8',
295 248 'background' => '#2A264D',
@@ -298,13 +251,9 @@
298 251 array(
299 252 'id' => 'dark_mode_border_color_set3',
300 253 'type' => 'color',
301 254 '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 -
255 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
307 256 'class' => 'only_pro',
308 257 'dependency' => array('color_pallets', '==', 'set3', 'all'),
309 258 'default' => '#4E478D',
310 259 ),
@@ -311,30 +260,22 @@
311 260 array(
312 261 'id' => 'dark_mode_btn_color_set3',
313 262 'type' => 'color_group',
314 263 '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 -
264 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
328 265 'class' => 'only_pro',
329 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 + ),
330 273 'default' => array(
331 274 'color' => '#4E478D',
332 275 'background' => '#B1BBD8',
333 276 'hover_color' => '#B1BBD8',
334 277 'hover_background' => '#2A264D',
335 - 'border' => '#B1BBD8',
336 - 'hover_border' => '#2A264D',
337 278 ),
338 279 ),
339 280 // color pallate set 6
340 281 array(
@@ -340,18 +281,14 @@
340 281 array(
341 282 'id' => 'dark_mode_color_set6',
342 283 'type' => 'color_group',
343 284 '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'),
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'),
351 290 ),
352 -
353 - 'dependency' => array('color_pallets', '==', 'set6', 'all'),
354 291 'default' => array(
355 292 'background' => '#082032',
356 293 'secondary_background' => '#2C394B',
357 294 ),
@@ -359,20 +296,16 @@
359 296 array(
360 297 'id' => 'dark_mode_link_color_set6',
361 298 'type' => 'color_group',
362 299 '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'),
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'),
369 305 'color' => esc_html__('Link Color', 'darkify'),
370 306 'hover' => esc_html__('Link Hover Color', 'darkify'),
371 307 ),
372 -
373 - 'class' => 'only_pro',
374 - 'dependency' => array('color_pallets', '==', 'set6', 'all'),
375 308 'default' => array(
376 309 'text' => '#B5D9F3',
377 310 'color' => '#61bbff',
378 311 'hover' => '#B5D9F3',
@@ -382,21 +315,16 @@
382 315 array(
383 316 'id' => 'dark_mode_input_color_set6',
384 317 'type' => 'color_group',
385 318 '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 -
319 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
397 320 'class' => 'only_pro',
398 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 + ),
399 327 'default' => array(
400 328 'color' => '#B5D9F3',
401 329 'placeholder' => '#B5D9F3',
402 330 'background' => '#0E3755',
@@ -406,13 +334,9 @@
406 334 array(
407 335 'id' => 'dark_mode_border_color_set6',
408 336 'type' => 'color',
409 337 '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 -
338 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
415 339 'class' => 'only_pro',
416 340 'dependency' => array('color_pallets', '==', 'set6', 'all'),
417 341 'default' => '#3B4D65',
418 342 ),
@@ -419,31 +343,22 @@
419 343 array(
420 344 'id' => 'dark_mode_btn_color_set6',
421 345 'type' => 'color_group',
422 346 '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 -
347 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
436 348 'class' => 'only_pro',
437 349 'dependency' => array('color_pallets', '==', 'set6', 'all'),
438 -
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 + ),
439 356 'default' => array(
440 357 'color' => '#B5D9F3',
441 358 'background' => '#3B4D65',
442 359 'hover_color' => '#B5D9F3',
443 360 'hover_background' => '#144E78',
444 - 'border' => '#3B4D65',
445 - 'hover_border' => '#144E78',
446 361 ),
447 362 ),
448 363 // color pallate set 9
449 364 array(
@@ -449,20 +364,14 @@
449 364 array(
450 365 'id' => 'dark_mode_color_set9',
451 366 'type' => 'color_group',
452 367 '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 -
368 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
458 369 'dependency' => array('color_pallets', '==', 'set9', 'all'),
459 -
460 - 'options' => array(
461 - 'background' => esc_html__('Primary', 'darkify'),
462 - 'secondary_background' => esc_html__('Secondary', 'darkify'),
370 + 'options' => array(
371 + 'background' => esc_html__('Primary BG', 'darkify'),
372 + 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
463 373 ),
464 -
465 374 'default' => array(
466 375 'background' => '#04261d',
467 376 'secondary_background' => '#021e16',
468 377 ),
@@ -470,20 +379,16 @@
470 379 array(
471 380 'id' => 'dark_mode_link_color_set9',
472 381 'type' => 'color_group',
473 382 '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'),
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'),
480 388 'color' => esc_html__('Link Color', 'darkify'),
481 389 'hover' => esc_html__('Link Hover Color', 'darkify'),
482 390 ),
483 -
484 - 'class' => 'only_pro',
485 - 'dependency' => array('color_pallets', '==', 'set9', 'all'),
486 391 'default' => array(
487 392 'text' => '#C1D2BB',
488 393 'color' => '#00d29a',
489 394 'hover' => '#C1D2BB',
@@ -493,21 +398,16 @@
493 398 array(
494 399 'id' => 'dark_mode_input_color_set9',
495 400 'type' => 'color_group',
496 401 '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 -
402 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
508 403 'class' => 'only_pro',
509 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 + ),
510 410 'default' => array(
511 411 'color' => '#C1D2BB',
512 412 'placeholder' => '#C1D2BB',
513 413 'background' => '#073d2f',
@@ -517,13 +417,9 @@
517 417 array(
518 418 'id' => 'dark_mode_border_color_set9',
519 419 'type' => 'color',
520 420 '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 -
421 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
526 422 'class' => 'only_pro',
527 423 'dependency' => array('color_pallets', '==', 'set9', 'all'),
528 424 'default' => '#095541',
529 425 ),
@@ -530,28 +426,22 @@
530 426 array(
531 427 'id' => 'dark_mode_btn_color_set9',
532 428 'type' => 'color_group',
533 429 '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 - ),
430 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
545 431 'class' => 'only_pro',
546 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 + ),
547 439 'default' => array(
548 440 'color' => '#C1D2BB',
549 441 'background' => '#095541',
550 442 'hover_color' => '#C1D2BB',
551 443 'hover_background' => '#073d2f',
552 - 'border' => '#095541',
553 - 'hover_border' => '#073d2f',
554 444 ),
555 445 ),
556 446 // color pallate set 10
557 447 array(
@@ -557,18 +447,14 @@
557 447 array(
558 448 'id' => 'dark_mode_color_set10',
559 449 'type' => 'color_group',
560 450 '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'),
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'),
568 456 ),
569 -
570 - 'dependency' => array('color_pallets', '==', 'set10', 'all'),
571 457 'default' => array(
572 458 'background' => '#171004',
573 459 'secondary_background' => '#211706',
574 460 ),
@@ -576,20 +462,16 @@
576 462 array(
577 463 'id' => 'dark_mode_link_color_set10',
578 464 'type' => 'color_group',
579 465 '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'),
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'),
586 471 'color' => esc_html__('Link Color', 'darkify'),
587 472 'hover' => esc_html__('Link Hover Color', 'darkify'),
588 473 ),
589 -
590 - 'class' => 'only_pro',
591 - 'dependency' => array('color_pallets', '==', 'set10', 'all'),
592 474 'default' => array(
593 475 'text' => '#E0D2BD',
594 476 'color' => '#e09525',
595 477 'hover' => '#E0D2BD',
@@ -599,22 +481,16 @@
599 481 array(
600 482 'id' => 'dark_mode_input_color_set10',
601 483 'type' => 'color_group',
602 484 '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 -
485 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
614 486 'class' => 'only_pro',
615 487 'dependency' => array('color_pallets', '==', 'set10', 'all'),
616 -
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 + ),
617 493 'default' => array(
618 494 'color' => '#E0D2BD',
619 495 'placeholder' => '#E0D2BD',
620 496 'background' => '#372911',
@@ -624,13 +500,9 @@
624 500 array(
625 501 'id' => 'dark_mode_border_color_set10',
626 502 'type' => 'color',
627 503 '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 -
504 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
633 505 'class' => 'only_pro',
634 506 'dependency' => array('color_pallets', '==', 'set10', 'all'),
635 507 'default' => '#5D4010',
636 508 ),
@@ -637,31 +509,22 @@
637 509 array(
638 510 'id' => 'dark_mode_btn_color_set10',
639 511 'type' => 'color_group',
640 512 '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 -
513 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
655 514 'class' => 'only_pro',
656 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 + ),
657 522 'default' => array(
658 523 'color' => '#E0D2BD',
659 524 'background' => '#5D4010',
660 525 'hover_color' => '#E0D2BD',
661 526 'hover_background' => '#372911',
662 - 'border' => '#5D4010',
663 - 'hover_border' => '#372911',
664 527 ),
665 528 ),
666 529 // color pallate set 11
667 530 array(
@@ -667,19 +530,14 @@
667 530 array(
668 531 'id' => 'dark_mode_color_set11',
669 532 'type' => 'color_group',
670 533 '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'),
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'),
677 538 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
678 539 ),
679 -
680 - 'dependency' => array('color_pallets', '==', 'set11', 'all'),
681 -
682 540 'default' => array(
683 541 'background' => '#19081b',
684 542 'secondary_background' => '#210a24',
685 543 ),
@@ -687,21 +545,16 @@
687 545 array(
688 546 'id' => 'dark_mode_link_color_set11',
689 547 'type' => 'color_group',
690 548 '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'),
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'),
697 554 'color' => esc_html__('Link Color', 'darkify'),
698 555 'hover' => esc_html__('Link Hover Color', 'darkify'),
699 556 ),
700 -
701 - 'class' => 'only_pro',
702 - 'dependency' => array('color_pallets', '==', 'set11', 'all'),
703 -
704 557 'default' => array(
705 558 'text' => '#c09dc2',
706 559 'color' => '#c832d4',
707 560 'hover' => '#c09dc2',
@@ -711,21 +564,16 @@
711 564 array(
712 565 'id' => 'dark_mode_input_color_set11',
713 566 'type' => 'color_group',
714 567 '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 -
568 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
725 569 'class' => 'only_pro',
726 570 'dependency' => array('color_pallets', '==', 'set11', 'all'),
727 -
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 + ),
728 576 'default' => array(
729 577 'color' => '#c09dc2',
730 578 'placeholder' => '#c09dc2',
731 579 'background' => '#2c082f',
@@ -735,13 +583,9 @@
735 583 array(
736 584 'id' => 'dark_mode_border_color_set11',
737 585 'type' => 'color',
738 586 '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 -
587 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
744 588 'class' => 'only_pro',
745 589 'dependency' => array('color_pallets', '==', 'set11', 'all'),
746 590 'default' => '#440649',
747 591 ),
@@ -748,32 +592,22 @@
748 592 array(
749 593 'id' => 'dark_mode_btn_color_set11',
750 594 'type' => 'color_group',
751 595 '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 -
596 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
766 597 'class' => 'only_pro',
767 598 'dependency' => array('color_pallets', '==', 'set11', 'all'),
768 -
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 + ),
769 605 'default' => array(
770 606 'color' => '#c09dc2',
771 607 'background' => '#440649',
772 608 'hover_color' => '#c09dc2',
773 609 'hover_background' => '#2c082f',
774 - 'border' => '#440649',
775 - 'hover_border' => '#2c082f',
776 610 ),
777 611 ),
778 612 )
779 613 ),
@@ -778,95 +612,16 @@
778 612 )
779 613 ),
780 614
781 615 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' => 'replacement_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 against the color the element actually renders with, 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 616 'title' => esc_html__('Scroll Bar', 'darkify'),
847 617 'icon' => 'icofont-scroll-double-down',
848 618 'fields' => array(
849 - // Intro line, rendered plain above the section card.
850 619 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 620 'id' => 'enable_scrollbar_dark',
862 621 '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 -
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>',
869 624 'text_on' => esc_html__('Enabled', 'darkify'),
870 625 'text_off' => esc_html__('Disabled', 'darkify'),
871 626 'text_width' => 100,
872 627 'default' => true,
@@ -875,20 +630,14 @@
875 630 array(
876 631 'id' => 'scrollbar_color',
877 632 'type' => 'color_group',
878 633 '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 -
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',
884 636 'options' => array(
885 - 'dark_mode_scrollbar_track_bg' => esc_html__('Track Background', 'darkify'),
886 - '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'),
887 639 ),
888 -
889 - 'class' => 'only_pro',
890 -
891 640 'default' => array(
892 641 'dark_mode_scrollbar_track_bg' => '#29292a',
893 642 'dark_mode_scrollbar_thumb_bg' => '#52565a',
894 643 ),
@@ -897,9 +646,8 @@
897 646
898 647
899 648 )
900 649 ),
901 -
902 650
903 651 )
904 652 ),
905 653 ),