-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin Color Schemes: generate wp-admin color schemes from Calypso counterparts #17828
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
This is an automated check which relies on |
c866cf2
to
ccba2e2
Compare
Handover notes prior to AFK:
|
@jeherve Where would be a good place for this to live? I assume you'd just want this to work out of the box? |
I think it would be fine as part of the masterbar, with the rest of the changes you've been making. If folks are interested in the colors, they can enable the module. |
|
Noting that files don't need to be in the same location in both environments. Individual files can be kept in sync, but required differently. In Jetpack, we require the different parts of the Masterbar here, that file only getting loaded when the Masterbar module is active: Lines 18 to 19 in 80b4cca
On WordPress.com, we could choose to have a different loader file, pointing to the same file. |
@jeherve @cpapazoglou I reclaimed D53264-code to sync the admin-color-scheme class to dotcom. Once that's accepted and merged, the changes in this PR can be synced. |
@jeherve we have used a I am afraid that we have to use plain |
2e2a61a
to
201688e
Compare
81f9843
to
4f81208
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This took a fair bit of effort but I've managed to use it on all platforms without an issue.
Jetpack on my local site ✅
Jetpack install via Jetpack beta ✅
Simple ✅
Atomic ✅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests well for me. 🚢
Changes proposed in this Pull Request
This PR adds 9 new wp-admin color schemes based on existing Calypso color schemes.
In Jetpack these will be available to select in the wp-admin user profile when the
WordPress.com toolbar
option in theWriting
settings section is active.Context for this addition is that for Simple and WoA sites we need to have all Calypso color schemes available in wp-admin for the Nav unification project. For details please see Automattic/wp-calypso#45675
All color scheme options with this change:
Testing instructions
For Jetpack:
Writing
section theWordPress.com toolbar
option is active/wp-admin/profile.php
For WoA:
try/admin-color-schemes
branchFor Simple:
Tricky because we hide the wp-admin profile settings. Needs another Diff applied.
It should display in Sakura colorsEdit: color don't display anymore as the build moved from TC to Compass on svn ci (see slack-C4GAP2RHD/p1607525905317500). Double check if the path for the color scheme is as expected for simple.
Todos / development task list
Known tasks:
Add admin theme file override for main nav background color to be different from sidebar
Add admin theme file override for current menu item icon color on hover (shouldn't change)
Add admin theme file override for selected submenu menu item color on hover (shouldn't change)
Use rtl css if site is RTLRemove RTL from buildList of color schemes to port over: