Skip to content

Instantly share code, notes, and snippets.

@halgatewood
Created March 4, 2014 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halgatewood/9351462 to your computer and use it in GitHub Desktop.
Save halgatewood/9351462 to your computer and use it in GitHub Desktop.
global $_wp_admin_css_colors;
$color_scheme = get_user_option( 'admin_color' );
$current_admin_color_theme = $_wp_admin_css_colors[ $color_scheme ];
echo '
<style>
img.icon { color: ' . $current_admin_color_theme->colors[2] . '; }
img.icon.selected { color: ' . $current_admin_color_theme->colors[3] . '; }
</style>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment