Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#28953 closed enhancement (duplicate)

No means of retrieving a users admin color scheme

Reported by: welcher Owned by:
Priority: normal Milestone:
Component: Administration Version: 3.8
Severity: normal Keywords:
Cc: Focuses: ui, administration

Description

I was creating a plugin and wanted the layout to mirror the user's color scheme. I know there are classes available as mentioned in #26691 and #28324, but some of the colors don't seem to be reference there.

I found no (quick) way to access the information for the color scheme registered with wp_admin_css_color().

Attachments (1)

28953.diff​ (1.0 KB ) - added by welcher 12 years ago.

Download all attachments as: .zip

Change History (5)

#1 @SergeyBiryukov
12 years ago

  • Focuses ui added

#2 @SergeyBiryukov
12 years ago

  • Focuses administration added

#3 @nacin
12 years ago

  • Version trunk → 3.8

What would the use case be for this? See also #28324 which mentions that helper classes exist.

These registered colors are only useful for showing a palette and for the icon colors. They shouldn't be indicative of specific primary/secondary colors, so I'm not sure having a function for them would be a great idea.

#4 @nacin
12 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Duplicate of #28324.

Note: See TracTickets for help on using tickets.