=== DarkAdmin - Dark Mode for Adminpanel === Contributors: alexanderwagnerdev Tags: dark mode, admin, dashboard, ui, accessibility Requires at least: 6.3 Tested up to: 6.9 Requires PHP: 8.0 Stable tag: 0.2.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html A simple, lightweight Dark Mode plugin for the WordPress Admin Dashboard with full color customization and Auto Dark Mode support. == Description == DarkAdmin transforms the WordPress admin dashboard into a clean, eye-friendly dark interface. The plugin is purely CSS-based, keeping it fast and non-intrusive. All colors are driven by CSS custom properties, making the theme fully customizable through a dedicated settings page — no code editing required. An optional Auto Dark Mode feature uses JavaScript to dynamically handle third-party plugin areas not covered by the built-in stylesheet. Features: * One-click enable/disable * Lightweight CSS-based admin theme * Works across all admin pages * Individual color customization via WordPress Color Picker * Custom CSS support using built-in CSS variables * Token-based design system for backgrounds, text, borders, buttons and states * Auto Dark Mode: automatically darkens bright plugin backgrounds not covered by the stylesheet * Preset Themes: choose between Default (WP 6.x) and Modern (WP 7.0) color palettes * Per-user Dark Mode access control (Include / Exclude) with empty-state UI when no non-admin users exist * Excluded Pages: specify admin pages where dark mode should not be applied == Installation == 1. Upload the plugin folder to `/wp-content/plugins/darkadmin-dark-mode-for-adminpanel/` (or install via the Plugins screen). 2. Activate the plugin through the "Plugins" screen in WordPress. 3. Go to Settings > DarkAdmin and enable it. == Frequently Asked Questions == = Does this affect the frontend? = No. It only loads CSS in wp-admin. = Where are the settings? = Settings > DarkAdmin = Can I customize the colors? = Yes. The plugin includes multiple color pickers for the complete admin theme and also supports additional custom CSS. = What is Auto Dark Mode? = An optional second toggle that uses JavaScript to dynamically darken bright backgrounds and lighten dark text from third-party plugins not covered by the built-in stylesheet. Requires Dark Mode to be active. == Screenshots == 1. Settings Page - Default (Dark Mode off) 2. Settings Page - Dark Mode active 3. Dashboard - Default (Dark Mode off) 4. Dashboard - Dark Mode active == Changelog == = 0.2.2 = * Fixed Plugin Details dialog footer color = 0.2.1 = * Lowered minimum WordPress version requirement from 6.7 to 6.3 * Dark mode styles for Thickbox modal (plugin details dialog): background, text, links, buttons and close button fully themed via `--adm-*` variables * Fixed theme overlay header navigation buttons (`.theme-overlay .theme-header .left` / `.right` / `.close`): applied background, color and `border: none` using `--adm-*` variables in both `darkadmin-dark.css` and `darkadmin-wp-modern.css` * Fixed `#contextual-help-back` button styling: background, border and color now use `--adm-*` tokens in both CSS presets * Fixed: consolidated duplicate `darkadmin_get_preset_fallbacks()` definition and inline fallback helper functions in `defaults.php` and `enqueue.php` into single canonical helpers * Fixed: removed unused `$presets` variable in `enqueue.php` `admin_enqueue_scripts` callback * Fixed: misplaced `` HTML comment in `settings-page.php` (was on inner preview panel `` instead of outer `.adm-preset-layout` ``) * Fixed: moved `translators:` comment outside `sprintf()` onto the line directly above `__()` so PHPCS `WordPress.WP.I18n.MissingTranslatorsComment` detects it correctly (`settings-page.php`) = 0.2.0 = * Raised minimum WordPress version to 6.7 * Raised minimum PHP version requirement to 8.0 (already required by existing use of str_starts_with, str_contains and named arguments) * Added defer loading strategy to darkadmin-settings-js and darkadmin-auto-darken via the strategy argument introduced in WordPress 6.3 * Fixed: replaced inline echo '