Changeset 3367599
- Timestamp:
- 09/25/2025 06:46:54 AM (3 months ago)
- Location:
- dark-reader
- Files:
-
- 1 added
- 1 deleted
- 6 edited
-
assets/icon-256x256.gif (deleted)
-
assets/icon-256x256.png (added)
-
trunk/assets/css/dark-reader-admin.css (modified) (3 diffs)
-
trunk/assets/css/dark-reader-toggle.css (modified) (23 diffs)
-
trunk/assets/js/dark-reader-init.js (modified) (8 diffs)
-
trunk/dark-reader.php (modified) (2 diffs)
-
trunk/includes/shortcode.php (modified) (1 diff)
-
trunk/readme.txt (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dark-reader/trunk/assets/css/dark-reader-admin.css
r3359602 r3367599 2301 2301 opacity: 0 !important; 2302 2302 } 2303 .modern-slider-thumb {2304 background: #282835 !important;2305 }2306 2303 2307 2304 /* Text Toggle Styles */ … … 2316 2313 } 2317 2314 &.off { 2318 color: # fff;2319 background: # 000;2315 color: #000; 2316 background: #ffffff; 2320 2317 } 2321 2318 } … … 2398 2395 background: #000 !important; 2399 2396 transition: color 0.3s ease, opacity 0.3s ease; 2397 border: 2px solid white; 2400 2398 } 2401 2399 } -
dark-reader/trunk/assets/css/dark-reader-toggle.css
r3359602 r3367599 24 24 width: 48px; 25 25 height: 48px; 26 animation: bounce 2s ease-in-out infinite; 26 } 27 28 .dark-reader-toggle-inline{ 29 width: 48px; 30 height: 48px; 27 31 } 28 32 … … 45 49 } 46 50 47 @keyframes bounce {48 0%, 100% { transform: translateY(0); }49 50% { transform: translateY(-3px); }50 }51 52 51 .dark-reader-toggle.top-left { 53 52 top: 20px; … … 86 85 } 87 86 87 .dark-reader-toggle-inline button{ 88 cursor: pointer; 89 } 90 88 91 /* Default button style */ 89 92 .dark-reader-toggle.style-default button { … … 187 190 188 191 /* Switch style */ 189 .dark-reader-toggle.style-switch { 192 .dark-reader-toggle.style-switch, 193 .dark-reader-toggle-inline.style-switch { 190 194 width: 56px; 191 195 height: 28px; 192 196 } 193 197 194 .dark-reader-toggle.style-switch button { 198 .dark-reader-toggle.style-switch button, 199 .dark-reader-toggle-inline.style-switch button { 195 200 width: 100%; 196 201 height: 100%; … … 203 208 } 204 209 205 .dark-reader-toggle.style-switch .switch-track { 210 .dark-reader-toggle.style-switch .switch-track, 211 .dark-reader-toggle-inline.style-switch .switch-track { 206 212 position: absolute; 207 213 top: 0; … … 214 220 } 215 221 216 .dark-reader-toggle.style-switch .switch-thumb { 222 .dark-reader-toggle.style-switch .switch-thumb, 223 .dark-reader-toggle-inline.style-switch .switch-thumb { 217 224 position: absolute; 218 225 height: 20px; … … 226 233 } 227 234 228 .dark-reader-toggle.style-switch.dark .switch-track { 235 .dark-reader-toggle.style-switch.dark .switch-track, 236 .dark-reader-toggle-inline.style-switch.dark .switch-track { 229 237 /* Override Dark Reader CSS variables */ 230 238 --darkreader-background-4CAF50: #4CAF50 !important; … … 233 241 } 234 242 235 .dark-reader-toggle.style-switch.dark .switch-thumb { 243 .dark-reader-toggle.style-switch.dark .switch-thumb, 244 .dark-reader-toggle-inline.style-switch.dark .switch-thumb { 236 245 transform: translateX(26px); 237 246 /* Override Dark Reader CSS variables */ … … 242 251 243 252 /* Toggle style */ 244 .dark-reader-toggle.style-toggle { 253 .dark-reader-toggle.style-toggle, 254 .dark-reader-toggle-inline.style-toggle { 245 255 width: 70px; 246 256 height: 32px; 247 257 } 248 258 249 .dark-reader-toggle.style-toggle button { 259 .dark-reader-toggle.style-toggle button, 260 .dark-reader-toggle-inline.style-toggle button { 250 261 width: 100%; 251 262 height: 100%; … … 258 269 } 259 270 260 .dark-reader-toggle.style-toggle .toggle-track { 271 .dark-reader-toggle.style-toggle .toggle-track, 272 .dark-reader-toggle-inline.style-toggle .toggle-track { 261 273 position: absolute; 262 274 top: 0; … … 274 286 275 287 .dark-reader-toggle.style-toggle .toggle-sun, 276 .dark-reader-toggle.style-toggle .toggle-moon { 288 .dark-reader-toggle.style-toggle .toggle-moon, 289 .dark-reader-toggle-inline.style-toggle .toggle-sun, 290 .dark-reader-toggle-inline.style-toggle .toggle-moon { 277 291 font-size: 14px; 278 292 z-index: 1; … … 280 294 } 281 295 282 .dark-reader-toggle.style-toggle .toggle-thumb { 296 .dark-reader-toggle.style-toggle .toggle-thumb, 297 .dark-reader-toggle-inline.style-toggle .toggle-thumb { 283 298 position: absolute; 284 299 height: 24px; … … 292 307 } 293 308 294 .dark-reader-toggle.style-toggle.dark .toggle-track { 309 .dark-reader-toggle.style-toggle.dark .toggle-track, 310 .dark-reader-toggle-inline.style-toggle.dark .toggle-track { 295 311 /* Override Dark Reader CSS variables */ 296 312 --darkreader-border-ffffff: #ffffff !important; … … 300 316 } 301 317 302 .dark-reader-toggle.style-toggle.dark .toggle-thumb { 318 .dark-reader-toggle.style-toggle.dark .toggle-thumb, 319 .dark-reader-toggle-inline.style-toggle.dark .toggle-thumb { 303 320 transform: translateX(32px); 304 321 /* Override Dark Reader CSS variables */ … … 309 326 310 327 /* Minimal style */ 311 .dark-reader-toggle.style-minimal button { 328 .dark-reader-toggle.style-minimal button, 329 .dark-reader-toggle-inline.style-minimal button { 312 330 width: 100%; 313 331 height: 100%; … … 326 344 } 327 345 328 .dark-reader-toggle.style-minimal button:hover { 346 .dark-reader-toggle-inline.style-minimal button { 347 box-shadow: none; 348 } 349 350 .dark-reader-toggle.style-minimal button:hover{ 329 351 transform: scale(1.05); 330 352 box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3); 331 353 } 332 354 333 .dark-reader-toggle.style-minimal .minimal-icon { 355 .dark-reader-toggle.style-minimal .minimal-icon, 356 .dark-reader-toggle-inline.style-minimal .minimal-icon { 334 357 width: 24px; 335 358 height: 24px; … … 340 363 } 341 364 342 .dark-reader-toggle.style-minimal.dark button { 365 .dark-reader-toggle.style-minimal.dark button, 366 .dark-reader-toggle-inline.style-minimal.dark button { 343 367 /* background-color: #292c35; */ 344 368 /* Override Dark Reader CSS variables */ … … 349 373 } 350 374 351 .dark-reader-toggle.style-minimal.dark .minimal-icon { 375 .dark-reader-toggle.style-minimal.dark .minimal-icon, 376 .dark-reader-toggle-inline.style-minimal.dark .minimal-icon { 352 377 transform: rotate(225deg); 353 378 background: linear-gradient(135deg, #292c35 50%, #f8f8f8 50%); … … 358 383 .dark-reader-toggle.style-default, 359 384 .dark-reader-toggle.style-round, 360 .dark-reader-toggle.style-minimal { 385 .dark-reader-toggle.style-minimal, 386 .dark-reader-toggle-inline.style-minimal { 361 387 width: 40px; 362 388 height: 40px; 363 389 } 364 390 365 .dark-reader-toggle.style-switch { 391 .dark-reader-toggle.style-switch, 392 .dark-reader-toggle-inline.style-switch { 366 393 width: 50px; 367 394 height: 25px; 368 395 } 369 396 370 .dark-reader-toggle.style-toggle { 397 .dark-reader-toggle.style-toggle, 398 .dark-reader-toggle-inline.style-toggle { 371 399 width: 60px; 372 400 height: 28px; … … 380 408 } 381 409 382 .dark-reader-toggle.style-switch .switch-thumb { 410 .dark-reader-toggle.style-switch .switch-thumb, 411 .dark-reader-toggle-inline.style-switch .switch-thumb { 383 412 height: 17px; 384 413 width: 17px; 385 414 } 386 415 387 .dark-reader-toggle.style-toggle .toggle-thumb { 416 .dark-reader-toggle.style-toggle .toggle-thumb, 417 .dark-reader-toggle-inline.style-toggle .toggle-thumb { 388 418 height: 20px; 389 419 width: 20px; 390 420 } 391 421 392 .dark-reader-toggle.style-minimal .minimal-icon { 422 .dark-reader-toggle.style-minimal .minimal-icon, 423 .dark-reader-toggle-inline.style-minimal .minimal-icon { 393 424 width: 20px; 394 425 height: 20px; … … 398 429 /* Inline toggle styles for shortcode */ 399 430 .dark-reader-toggle-inline.style-default button, 400 .dark-reader-toggle-inline.style-round button, 401 .dark-reader-toggle-inline.style-minimal button { 431 .dark-reader-toggle-inline.style-round button 432 /* .dark-reader-toggle-inline.style-minimal button */ 433 { 402 434 display: flex; 403 435 align-items: center; 404 436 justify-content: center; 405 padding: 8px 16px;406 border-radius: 20px;407 437 border: none; 408 438 background-color: var(--dark-reader-toggle-button-bg, #f8f8f8) !important; … … 413 443 } 414 444 415 .dark-reader-toggle-inline.style-switch button, 416 .dark-reader-toggle-inline.style-toggle button { 417 display: flex; 418 align-items: center; 419 justify-content: flex-start; 420 padding: 8px 16px 8px 60px; 421 border-radius: 20px; 422 border: none; 423 background-color: var(--dark-reader-toggle-button-bg, #f8f8f8) !important; 424 color: var(--dark-reader-toggle-button-color, inherit) !important; 425 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); 426 cursor: pointer; 427 transition: all 0.3s ease; 428 position: relative; 429 } 430 431 .dark-reader-toggle-inline button:hover { 432 background-color: #f0f0f0; 433 box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); 445 .dark-reader-toggle-inline.style-default button{ 446 border-radius: 12px; 447 padding: 8px 12px 448 } 449 450 .dark-reader-toggle-inline.style-default.dark button,.dark-reader-toggle-inline.style-round.dark button{ 451 /* Override Dark Reader CSS variables */ 452 --darkreader-background-ffffff: #ffffff !important; 453 /* Apply our custom styles */ 454 background-color: #ffffff !important; 455 } 456 457 .dark-reader-toggle-inline.style-round button{ 458 border-radius: 50%; 459 padding: 8px 12px; 434 460 } 435 461 … … 437 463 background-color: #292c35; 438 464 color: #fff; 465 outline: none; 466 } 467 468 .dark-reader-toggle-inline.dark:focus, .dark-reader-toggle-inline.dark button:focus, .dark-reader-toggle-inline button:focus { 469 outline: none; 439 470 } 440 471 441 472 .dark-reader-toggle-inline button .sun-icon, 442 473 .dark-reader-toggle-inline button .moon-icon { 443 margin-right: 8px; 444 font-size: 16px; 474 font-size: 18px; 445 475 } 446 476 447 477 .dark-reader-toggle-inline.style-default .sun-icon, 448 478 .dark-reader-toggle-inline.style-round .sun-icon { 449 display: inline;479 display: none; 450 480 } 451 481 452 482 .dark-reader-toggle-inline.style-default .moon-icon, 453 483 .dark-reader-toggle-inline.style-round .moon-icon { 454 display: none;484 display: inline; 455 485 } 456 486 457 487 .dark-reader-toggle-inline.style-default.dark .sun-icon, 458 488 .dark-reader-toggle-inline.style-round.dark .sun-icon { 459 display: none;489 display: inline; 460 490 } 461 491 462 492 .dark-reader-toggle-inline.style-default.dark .moon-icon, 463 493 .dark-reader-toggle-inline.style-round.dark .moon-icon { 464 display: inline; 465 } 466 467 /* Switch inline */ 468 .dark-reader-toggle-inline.style-switch .switch-track { 469 position: absolute; 470 width: 44px; 471 height: 22px; 472 left: 8px; 473 top: 50%; 474 transform: translateY(-50%); 475 background-color: var(--dark-reader-toggle-track-bg, #ccc) !important; 476 border-radius: 34px; 477 transition: .4s; 478 } 479 480 .dark-reader-toggle-inline.style-switch .switch-thumb { 481 position: absolute; 482 height: 16px; 483 width: 16px; 484 left: 12px; 485 top: 50%; 486 transform: translateY(-50%); 487 background-color: var(--dark-reader-toggle-thumb-bg, #fff) !important; 488 border-radius: 50%; 489 transition: .4s; 490 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); 491 } 492 493 .dark-reader-toggle-inline.style-switch.dark .switch-track { 494 background-color: #4CAF50; 495 } 496 497 .dark-reader-toggle-inline.style-switch.dark .switch-thumb { 498 transform: translate(20px, -50%); 499 } 500 501 /* Toggle inline */ 502 .dark-reader-toggle-inline.style-toggle .toggle-track { 503 position: absolute; 504 width: 44px; 505 height: 22px; 506 left: 8px; 507 top: 50%; 508 transform: translateY(-50%); 509 background-color: var(--dark-reader-toggle-track-bg, #f1f1f1) !important; 510 border-radius: 34px; 511 transition: .4s; 512 display: flex; 513 align-items: center; 514 justify-content: space-between; 515 padding: 0 5px; 516 } 517 518 .dark-reader-toggle-inline.style-toggle .toggle-sun, 519 .dark-reader-toggle-inline.style-toggle .toggle-moon { 520 font-size: 10px; 521 z-index: 1; 522 margin: 0; 523 } 524 525 .dark-reader-toggle-inline.style-toggle .toggle-thumb { 526 position: absolute; 527 height: 16px; 528 width: 16px; 529 left: 12px; 530 top: 50%; 531 transform: translateY(-50%); 532 background-color: var(--dark-reader-toggle-thumb-bg, #fff) !important; 533 border-radius: 50%; 534 transition: .4s; 535 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); 536 } 537 538 .dark-reader-toggle-inline.style-toggle.dark .toggle-track { 539 background-color: #292c35; 540 } 541 542 .dark-reader-toggle-inline.style-toggle.dark .toggle-thumb { 543 transform: translate(20px, -50%); 544 } 545 546 /* Minimal inline */ 547 .dark-reader-toggle-inline.style-minimal .minimal-icon { 548 width: 16px; 549 height: 16px; 550 border-radius: 50%; 551 background: var(--dark-reader-toggle-minimal-icon-bg, linear-gradient(135deg, #f8f8f8 50%, #333 50%)) !important; 552 transform: rotate(45deg); 553 transition: all 0.3s ease; 554 margin-right: 8px; 555 } 556 557 .dark-reader-toggle-inline.style-minimal.dark .minimal-icon { 558 transform: rotate(225deg); 559 background: linear-gradient(135deg, #292c35 50%, #f8f8f8 50%); 494 display: none; 560 495 } 561 496 -
dark-reader/trunk/assets/js/dark-reader-init.js
r3359602 r3367599 395 395 setupPDFViewerDarkMode(); 396 396 }).catch(error => { 397 console.warn('PDF.js could not be loaded for dark mode:', error); 398 }); 399 } catch (e) { 400 console.warn('Error initializing PDF dark mode:', e); 397 }); 398 } catch (e) { 401 399 } 402 400 }; … … 471 469 window.darkReaderPDFObserver = observer; 472 470 } catch (e) { 473 console.warn('Error setting up PDF viewer dark mode:', e);474 471 } 475 472 }; … … 513 510 } 514 511 } catch (e) { 515 console.warn('Error applying dark mode to PDF element:', e);516 512 } 517 513 }; … … 558 554 }, 100); 559 555 } catch (e) { 560 console.warn('Error creating PDF overlay:', e);561 556 } 562 557 }; … … 587 582 element.style.transition = 'filter 0.3s ease'; 588 583 } catch (e) { 589 console.warn('Error applying PDF CSS filters:', e);590 584 } 591 585 }; … … 606 600 } catch (e) { 607 601 // Cross-origin iframe, can't access content 608 console.warn('Cannot access iframe content (cross-origin):', e); 609 } 610 }); 611 } catch (e) { 612 console.warn('Error handling iframe PDF viewer:', e); 602 } 603 }); 604 } catch (e) { 613 605 } 614 606 }; … … 637 629 iframeDoc.head.appendChild(darkStyles); 638 630 } catch (e) { 639 console.warn('Error applying dark mode to iframe content:', e);640 631 } 641 632 }; … … 663 654 } 664 655 } catch (e) { 665 console.warn('Error disabling PDF dark mode:', e);666 656 } 667 657 }; -
dark-reader/trunk/dark-reader.php
r3359602 r3367599 5 5 * Plugin URI: https://bdthemes.com/plugin/dark-reader/?utm_source=WordPress_Repository&utm_medium=Plugin_Page&utm_campaign=WordPress_to_Dark_Reader 6 6 * Description: Add beautiful dark mode to your WordPress site using Dark Reader. Visit <a href="https://bdthemes.com/plugin/dark-reader/?utm_source=WordPress_Repository&utm_medium=Plugin_Page&utm_campaign=WordPress_to_Dark_Reader">Dark Reader</a> for more advanced features. 7 * Version: 1.0. 27 * Version: 1.0.3 8 8 * Author: BdThemes 9 9 * Author URI: https://bdthemes.com … … 35 35 * @var string 36 36 */ 37 private const VERSION = '1.0. 2';37 private const VERSION = '1.0.3'; 38 38 39 39 /** -
dark-reader/trunk/includes/shortcode.php
r3359602 r3367599 59 59 <?php elseif ($style == 'minimal'): ?> 60 60 <span class="minimal-icon"></span> 61 <?php elseif ($style == 'modern-slider'): ?> 62 63 <?php elseif ($style == 'text-toggle'): ?> 64 <span class="text-label light">Light</span> 65 <span class="text-label dark">Dark</span> 66 <?php elseif ($style == 'flipflop-toggle'): ?> 67 <span class="flipflop-track"></span> 68 <span class="flipflop-thumb"></span> 69 <?php elseif ($style == 'ios-toggle'): ?> 70 <div class="ios-toggle-track"> 71 <span class="ios-toggle-text off">Light</span> 72 <span class="ios-toggle-text on">Dark</span> 73 </div> 74 <?php elseif ($style == 'ios-toggle-icon'): ?> 75 <div class="ios-toggle-track"> 76 <span class="ios-toggle-text off">☀️</span> 77 <span class="ios-toggle-text on">🌙</span> 78 </div> 61 79 <?php endif; ?> 62 <span class="toggle-text"><?php esc_html_e('Toggle Dark Mode', 'dark-reader'); ?></span>63 80 </button> 64 81 </div> -
dark-reader/trunk/readme.txt
r3361211 r3367599 4 4 Requires at least: 6.0 5 5 Tested up to: 6.8 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 31 31 ##Key Features of Dark Reader Dark Mode Plugin## 32 32 33 ### Enable Dark Mode 33 ### Enable Dark Mode### 34 34 Enable dark mode is the main feature of Dark Reader. When you turn this on, your entire website will automatically switch to a dark color scheme. Visitors will see a modern design that feels comfortable on the eyes. It works on all pages, posts, and even your WordPress admin dashboard if you want. 35 35 36 36 This feature helps reduce eye strain, especially for people browsing at night or in low-light conditions. It also makes your website look more professional and up to date since most apps and systems now support dark mode. Adding this option improves user experience and keeps visitors engaged longer. 37 37 38 ### Brightness Control 38 ### Brightness Control ### 39 39 Brightness Control gives you the ability to fine-tune how light or dark your website appears when dark mode is enabled. Some users prefer a very deep black, while others like a softer gray background. With this setting, you can adjust brightness to create the perfect balance for your audience. 40 40 41 41 This makes your dark mode more inclusive because not all visitors have the same preferences. By customizing brightness, you can reduce glare without making the site too dark. It ensures your design stays readable and pleasant for everyone. 42 42 43 ### Contrast Control 43 ### Contrast Control ### 44 44 Contrast Control lets you adjust the difference between text and background in dark mode. High contrast improves readability, while lower contrast gives a softer look. You can choose the level that works best for your content style. 45 45 46 46 This feature is especially important for accessibility. Visitors with vision difficulties need enough contrast to read comfortably. By offering adjustable contrast, Dark Reader dark mode plugin makes your site more user-friendly and compliant with modern accessibility practices. 47 47 48 ### Sepia Filter 48 ### Sepia Filter ### 49 49 The Sepia Filter adds a warm, brownish tone to your site in dark mode. This reduces the amount of blue light, which is often linked to eye strain and sleep problems. Many users prefer sepia for reading long articles or browsing at night. 50 50 51 51 Using a sepia effect gives your website a unique look while still keeping it easy on the eyes. It is especially helpful for blogs, magazines, and content-heavy sites where visitors spend a lot of time reading. 52 52 53 ### Grayscale Filter 53 ### Grayscale Filter ### 54 54 The Grayscale Filter turns your site’s colors into shades of gray in dark mode. This creates a clean and minimal style. It also reduces distractions from bright images or colorful elements that might not fit well with dark mode. 55 55 56 56 Grayscale can also help content stand out more clearly. For example, text becomes the main focus because background visuals are softened. This is a great option for professional websites, portfolios, or any site that wants a modern, elegant look. 57 57 58 ### Toggle Button Position 58 ### Toggle Button Position ### 59 59 The Toggle Button Position setting lets you choose where the dark mode switch appears. You can place it in the top-left, top-right, bottom-left, or bottom-right corner of the screen. This makes it easy for visitors to find and use. 60 60 61 61 Flexibility in position is useful because different websites have different layouts. For example, if you already have widgets or floating buttons on one side, you can move the toggle elsewhere to avoid overlapping. It gives you full control over user experience. 62 62 63 ### 5+ Toggle Button Styles 63 ### 5+ Toggle Button Styles ### 64 64 Dark Reader comes with five different toggle button styles: Default, Round, Switch, Toggle, and Minimal. Each style has its own look and feel, so you can choose one that matches your site’s design. 65 65 66 66 Having multiple styles ensures the dark mode toggle blends naturally with your theme. Whether you want a bold button or a subtle switch, you can pick the option that feels right. This customization helps maintain your brand identity while offering dark mode. 67 67 68 ### Use System Color Scheme 68 ### Use System Color Scheme ### 69 69 This option matches your website with the visitor’s device preference. If their computer or phone is set to dark mode, your site will automatically load in dark mode. If not, it will stay in light mode. 70 70 71 71 This feature creates a seamless browsing experience because users do not need to switch modes manually. It makes your site feel more modern and adaptive to user habits, just like mobile apps and operating systems. 72 72 73 ### Enable for PDFs 73 ### Enable for PDFs ### 74 74 With this feature, dark mode also applies to embedded PDF files on your site. Normally, PDFs remain bright and may clash with a dark layout. Enabling this keeps the viewing experience consistent. 75 75 76 76 It is especially helpful for websites that share eBooks, reports, or documents. Visitors can read PDFs without straining their eyes, and the design stays professional across all content types. 77 77 78 ### Apply Immediately 78 ### Apply Immediately ### 79 79 This setting makes sure dark mode applies instantly to all dynamic content on your website. Without it, some elements might load in light mode before switching, which can feel distracting. 80 80 81 81 Apply Immediately creates a smoother experience. It prevents flashing effects and ensures that every page, post, and element appears in dark mode right from the start. 82 82 83 ### Filter Mode 83 ### Filter Mode ### 84 84 Filter Mode allows you to choose between two types of dark styles: Dimmed Mode and Dark Mode. Dimmed Mode is softer with less contrast, while Dark Mode is stronger with deeper blacks. 85 85 86 86 This flexibility helps you match dark mode to your brand style and visitor preferences. Some users may prefer a gentle look, while others want a bold, high-contrast design. Dark Reader lets you offer both. 87 87 88 ### Text Stroke 88 ### Text Stroke ### 89 89 The Text Stroke option adds a thin outline to your text. This makes words stand out more clearly on dark backgrounds. It is especially useful if your design includes colored text or decorative fonts. 90 90 91 91 Adding text stroke improves readability without changing your site’s style. It keeps your content easy to read for everyone, even in low-light conditions or on smaller screens. 92 92 93 ### Dark Mode Toggle Shortcode 93 ### Dark Mode Toggle Shortcode ### 94 94 Dark Reader includes a shortcode [dark_reader_toggle] that you can place anywhere on your website. You can add it inside posts, pages, or widgets. This gives you full control over where visitors can access the dark mode switch. 95 95 96 96 Shortcode support is helpful if you want to put the toggle in specific areas, like a menu, header, or footer. It makes your site more flexible and ensures the dark mode feature is always easy to find. 97 97 98 ## Exclusive Pro Features of Dark Reader Dark Mode Plugin 99 ### Time-Based Dark Mode 98 ## Exclusive Pro Features of Dark Reader Dark Mode Plugin ## 99 ### Time-Based Dark Mode ### 100 100 Schedule dark mode to activate at night and switch back in the day. This happens automatically based on your chosen hours. 101 101 102 102 It improves comfort by matching natural usage habits. Visitors get dark mode when they need it most without any action required. 103 103 104 ### Admin Dashboard Dark Mode (Pro) 104 ### Admin Dashboard Dark Mode (Pro) ### 105 105 Dark Reader adds dark mode to the WordPress admin dashboard. This makes the backend easier on the eyes for long working sessions. 106 106 … … 109 109 110 110 111 ### Low Brightness Images (Pro) 111 ### Low Brightness Images (Pro) ### 112 112 Dark Reader can lower image brightness when dark mode is active. This prevents images from being too sharp or distracting on dark backgrounds. 113 113 114 114 It creates balance across your website. Visitors enjoy smoother visuals and better readability. 115 115 116 ### Grayscale Images (Pro) 116 ### Grayscale Images (Pro) ### 117 117 Images can be displayed in grayscale during dark mode. This gives a softer, professional look. 118 118 … … 122 122 Image replacement helps you maintain visual harmony and readability by replacing image on the basis of a light background and dark background. 123 123 124 ###Invert Images (Pro) 124 ###Invert Images (Pro) ### 125 125 Invert image colors intelligently when dark mode is active. This keeps visuals visible while matching dark backgrounds. 126 126 127 127 The benefit is better design consistency. Images do not clash with the dark interface, keeping your site polished. 128 128 129 ### Dark Mode Based Image Support (Pro) 129 ### Dark Mode Based Image Support (Pro) ### 130 130 Dark Reader ensures images adapt perfectly in dark mode. It adjusts their colors and appearance without damaging quality. 131 131 132 This is important for sites with many visuals. Your design stays consistent while images remain clear. 133 134 ### Dark Mode Based Video Support (Pro) 132 ### Widget Support (Pro) ### 133 This feature allows you to add styles to toogle button and set functionalies. You can use this features on Gutenberg and Elementor in your drag-and-drop ways. 134 135 ### Dark Mode Based Video Support (Pro) ### 135 136 Videos can also adapt to dark mode. They adjust smoothly to match the dark interface of your website. 136 137 137 138 This makes multimedia content look natural in both modes. Visitors get a complete, balanced experience. 138 139 139 ### Custom CSS Support (Pro) 140 ### Custom CSS Support (Pro) ### 140 141 You can write custom CSS rules for dark mode. This allows you to fine-tune appearance at a detailed level. 141 142 142 143 This feature is ideal for developers and designers. You can create a dark mode that matches your exact vision. 143 144 144 ### Exclude Elements (Pro) 145 ### Exclude Elements (Pro) ### 145 146 Choose specific elements that should not be affected by dark mode. For example, logos or banners can stay in their original colors. 146 147 147 148 This improves control and avoids problems. Important visuals remain clear while the rest of the site uses dark mode. 148 149 149 ### Exclude Pages & Posts (Pro) 150 ### Exclude Pages & Posts (Pro) ### 150 151 You can exclude certain pages or posts from dark mode. This is useful for landing pages, special designs, or content that looks better in light mode. 151 152 … … 153 154 154 155 155 ## Responsive and Accessible 156 ## Responsive and Accessible ## 156 157 157 158 Dark Reader is fully responsive, lightweight, and accessibility-focused. It works on all devices and improves readability for every visitor. Whether you are a blogger, business owner, or developer, Dark Reader makes it easy to add dark mode to your site without code. It is professional, flexible, and user-friendly. 158 159 159 ## Popular Page Builder Support 160 ## Popular Page Builder Support ## 160 161 Dark Reader works with major page builders like Elementor, WPBakery, Divi and Break Builder. The layouts remain consistent while dark mode is applied using Dark Reader. 161 162 … … 163 164 164 165 165 ## Who Is Dark Reader Dark Mode For 166 ## Who Is Dark Reader Dark Mode For ## 166 167 - WordPress beginners who want an easy way to add dark mode without coding. 167 168 … … 242 243 == Changelog == 243 244 245 = 1.0.3 [25 September 2025] = 246 247 * Added: Widget Support (Gutenberg & Elementor) 248 * Updated: Image Replacement in Dark Mode in Elementor 249 * Fixed: Shortcode usage on toggle button selection 250 251 = 1.0.2 [11 September 2025] = 252 253 * Added: Image Replacement in Dark Mode 254 * Fixed: Toggle Button Icon Color Situation 255 * Updated: Page Visibility to Specifically Toggle Dark/Light mode on pages 256 244 257 = 1.0.1 [26 August 2025] = 245 258 … … 248 261 * Fixed: Clear/Reset Functionality for Color Selection 249 262 * Updated: Moved Shortcode in Help & Support Page 250 251 = 1.0.2 [11 September 2025] =252 253 * Added: Image Replacement in Dark Mode254 * Fixed: Toggle Button Icon Color Situation255 * Updated: Page Visibility to Specifically Toggle Dark/Light mode on pages
Note: See TracChangeset
for help on using the changeset viewer.