WordPress.org

Plugin Directory

Changeset 562127


Ignore:
Timestamp:
06/22/12 02:52:29 (22 months ago)
Author:
pdclark
Message:

Increase opacity

Location:
monochrome-admin-icons/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • monochrome-admin-icons/trunk/monochrome-admin-icons.php

    r561547 r562127  
    33Plugin Name: Monochrome Admin Icons 
    44Description: Make plugin admin icons follow <a href="http://dotorgstyleguide.wordpress.com/outline/icons/">WordPress guidelines</a>: Monochrome by default, color when active. 
    5 Version: 1.1.1 
     5Version: 1.1.2 
    66Author: Brainstorm Media 
    77Author URI: http://brainstormmedia.com 
     
    1212class Storm_Monochrome_Admin_Icons { 
    1313 
    14     var $version = '1.1.1'; 
     14    var $version = '1.1.2'; 
    1515 
    1616    /** 
    17      * CSS filters supported by IE7+, Firefox 3.5+, Chrome 18, and Safari 6+ 
     17     * CSS/SVG filters supported by IE7+, Firefox 3.5+, Chrome 18+, and Safari 6+ 
    1818     * @see http://stackoverflow.com/questions/609273/convert-an-image-to-grayscale-in-html-css 
    1919     *  
    20      * Javascript + HTML5 Canvas filters as fallback for Chrome < 18 and Safari < 6 
     20     * Javascript + HTML5 Canvas filters as fallback for Chrome 17 and Safari 5 
    2121     * @see http://webdesignerwall.com/tutorials/html5-grayscale-image-hover 
    2222     */ 
    2323    function __construct(){ 
     24        if ( WP_DEBUG || BSM_DEVELOPMENT ) { $this->version .= '-dev-'.time(); } 
     25 
     26        add_action( 'admin_head',   array($this, 'filter_css') ); 
     27        add_action( 'admin_footer', array($this, 'filter_svg') ); 
     28 
    2429        wp_enqueue_script('monochrome-admin-icons', plugin_dir_url( __FILE__ ).'monochrome.js', array('jquery'), $this->version, false); 
    25  
    26         add_action('admin_head', array($this, 'filter_css') ); 
    27         add_action('admin_footer', array($this, 'filter_svg') ); 
    2830    } 
    2931 
    3032    function filter_css() { 
    31         ?><style media="screen"> 
    32             #adminmenu > li.wp-not-current-submenu img { filter: url(#grayscale); ?>); /* Firefox 3.5+ */ filter: gray; /* IE6-9 */ -webkit-filter: grayscale(1); /* Google Chrome & Webkit Nightlies */ } 
     33        ?><style> 
     34            #adminmenu > li.wp-not-current-submenu img { filter: url(#grayscale); ?>); /* Firefox 3.5+ */ filter: gray; /* IE6-9 */ -webkit-filter: grayscale(1); /* Google Chrome & Webkit Nightlies */ -moz-opacity:.8; filter:alpha(opacity=80); opacity:.80;} 
    3335            #adminmenu > li.wp-not-current-submenu:hover img { filter: none; -webkit-filter: grayscale(0); } 
    3436        </style><?php 
     
    3638 
    3739    /** 
    38      * SVG to support the FireFox filter.  
     40     * SVG filter for Firefox 3.5+.  
    3941     * Inserting it inline avoids servers not configured to send correct SVG headers 
    4042     */ 
  • monochrome-admin-icons/trunk/readme.txt

    r561576 r562127  
    33Author URI: http://brainstormmedia.com 
    44Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FD4GKBGQFUZC8 
    5 Tags: admin, dashboard, ui, admin menu, icons, grayscale, greyscale, black and white, b&w, monochrome 
    6 Requires at least: 3.0 
     5Tags: admin, dashboard, ui, admin menu, icons, grayscale, greyscale, black and white, b&w, monochrome, color, theme 
     6License: GPLv2 
     7Licence URI: http://www.gnu.org/licenses/gpl-2.0.html 
     8Requires at least: 2.8 
    79Tested up to: 3.4 
    8 Stable tag: 1.1.1 
     10Stable tag: trunk 
    911 
    10 Make third-party admin icons monochrome by default, color when active or moused-over. 
     12Make third-party admin icons use color only when active or moused-over, like default WordPress icons. 
    1113 
    1214== Description == 
    1315 
    14 Many plugins only provide a color icon for the WordPress admin menu. This makes the user interface inconsistent and sometimes confusing because built-in menu icons are monochrome by default, and only use color to show that menu is active or moused-over. 
     16Many plugins only provide a color icon for the WordPress admin menu. This makes the user interface inconsistent and sometimes confusing because built-in menu icons only use color when a menu is active or moused-over. 
    1517 
    16 The [WordPress guidelines for admin icons](http://dotorgstyleguide.wordpress.com/outline/icons/) were pointed out to us by [Helen Hou Sandi's](http://helenhousandi.com/) great [WordPress UI presentation](http://slides.helenhousandi.com/wcphx2012.html#9) at WordCamp Phoenix 2012. 
     18This plugin makes all admin icons behave the same, whether correct icons are provided or not. It supports all major browsers, including: 
     19     
     20* Internet Explorer 7+ 
     21* Firefox 3.5+ 
     22* Safari 5+ 
     23* Chrome 17+ 
    1724 
    18 This plugin makes all admin icons behave the same, whether correct icons were provided or not. It supports all major browsers, including: Internet Explorer 7+, Firefox 3.5+, Safari, and Chrome. 
     25The [WordPress guidelines for admin icons](http://dotorgstyleguide.wordpress.com/outline/icons/) were pointed out to by [Helen Hou Sandi's](http://helenhousandi.com/) great [WordPress UI presentation](http://slides.helenhousandi.com/wcphx2012.html#9) at WordCamp Phoenix 2012. 
    1926 
    2027== Installation == 
     
    2936== Changelog == 
    3037 
     38= 1.1.2 = 
     39* Increase opacity of inactive items. 
     40 
    3141= 1.1.1 =  
    32 Remove debug alert 
     42* Remove debug alert 
    3343 
    3444= 1.1 = 
    3545* Initial public release. 
    3646 
    37 == License == 
     47== Upgrade Notice == 
    3848 
    39 Copyright 2012 Brainstorm Media - Released under the  GNU General Public License 
    40  - [License details](http://www.gnu.org/licenses/gpl.html) 
     49= 1.1.2 = 
     50Increases opacity of inactive items. Makes icons less "faded" compared to defaults. 
Note: See TracChangeset for help on using the changeset viewer.