Skip to:
Content

bbPress.org

Changeset 5226


Ignore:
Timestamp:
12/12/2013 09:29:01 AM (10 years ago)
Author:
johnjamesjacoby
Message:

First pass at replacing Green admin color scheme with Mint and Evergreen for WordPress 3.8. More to do here. Props melchoyce, ryelle. See #2462.

Location:
trunk/includes/admin
Files:
4 added
5 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/admin.php

    r5225 r5226  
    625625    public function register_admin_style () {
    626626
    627         // Updated admin color scheme CSS
    628         if ( function_exists( 'wp_enqueue_media' ) ) {
    629             $green_scheme = $this->styles_url . 'green.css';
    630 
    631         } else {
    632             $green_scheme = $this->styles_url . 'green-34.css';
    633         }
    634 
    635         // Register the green scheme
    636         wp_admin_css_color( 'bbpress', esc_html_x( 'Green', 'admin color scheme', 'bbpress' ), $green_scheme, array( '#222222', '#006600', '#deece1', '#6eb469' ) );
     627        // RTL and/or minified
     628        $suffix = is_rtl() ? '-rtl' : '';
     629        //$suffix .= defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
     630
     631        // Mint
     632        wp_admin_css_color(
     633            'bbp-mint',
     634            esc_html_x( 'Mint',      'admin color scheme', 'bbpress' ),
     635            $this->styles_url . 'mint' . $suffix . '.css',
     636            array( '#4f6d59', '#33834e', '#5FB37C', '#81c498' ),
     637            array( 'base' => '#f1f3f2', 'focus' => '#fff', 'current' => '#fff' )
     638        );
     639
     640        // Evergreen
     641        wp_admin_css_color(
     642            'bbp-evergreen',
     643            esc_html_x( 'Evergreen', 'admin color scheme', 'bbpress' ),
     644            $this->styles_url . 'evergreen' . $suffix . '.css',
     645            array( '#324d3a', '#446950', '#56b274', '#324d3a' ),
     646            array( 'base' => '#f1f3f2', 'focus' => '#fff', 'current' => '#fff' )
     647        );
    637648    }
    638649
Note: See TracChangeset for help on using the changeset viewer.