=== Admin Color Scheme ===
Contributors: snehalpancholi
Tags: admin, color scheme, branding, user roles, appearance
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Force a WordPress admin color scheme for all users, or set different schemes per user role. Overrides individual user preferences.

== Description ==

Admin Color Scheme gives site administrators control over what color scheme every user sees in the WordPress admin — regardless of what each user has set in their profile.

**Two Modes:**

* **Force one scheme for all users** — Pick a single color scheme and every user will see it.
* **Per role** — Assign a different color scheme to each user role. For example, subscribers see Ocean, editors see Coffee, and administrators keep Default.

**Nine Built-in WordPress Schemes:**

Default, Light, Modern, Blue, Coffee, Ectoplasm, Midnight, Ocean, Sunrise.

**Features:**

* Visual color swatch picker on the settings page
* Works by filtering `get_user_option_admin_color` — no user meta is modified
* User preferences are automatically restored after the plugin is deactivated or uninstalled
* "No Override" option per role lets you leave some roles to their own preference
* Zero JavaScript dependency for scheme override — pure PHP hook

**Use Cases:**

* Brand the WordPress admin to match client branding
* Help users identify their environment (staging vs. production)
* Standardize the admin interface for all team members
* Give different roles a visual identity

== Installation ==

1. Upload `admin-color-scheme` to `/wp-content/plugins/`.
2. Activate through **Plugins → Installed Plugins**.
3. Go to **Appearance → Admin Color Scheme** to configure.

== Frequently Asked Questions ==

= Will users still be able to change their own color in their Profile? =
The setting is still visible in their profile, but this plugin overrides it. Their saved preference is preserved and will take effect again if the plugin is deactivated.

= Does it modify user meta? =
No — it uses the `get_user_option_admin_color` filter to override the value at runtime. No database changes are made to user records.

= Can I set a different scheme for each role? =
Yes — switch to "Per role" mode on the settings page.

= What happens to the "No Override" roles in per-role mode? =
Those roles continue to use their own user profile color preference.

== Screenshots ==

1. The settings page showing the visual color swatch picker in "all users" mode.
2. Per-role mode with a dropdown selector for each role.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
