high res icons for products screen

This commit is contained in:
James Koster 2012-08-08 15:22:59 +01:00
parent 7062042002
commit 3b58a75362
9 changed files with 16 additions and 10 deletions

View File

@ -76,8 +76,8 @@ function woocommerce_edit_product_columns($columns){
$columns["product_cat"] = __("Categories", 'woocommerce'); $columns["product_cat"] = __("Categories", 'woocommerce');
$columns["product_tag"] = __("Tags", 'woocommerce'); $columns["product_tag"] = __("Tags", 'woocommerce');
$columns["featured"] = '<img src="' . $woocommerce->plugin_url() . '/assets/images/featured_head.png" alt="' . __("Featured", 'woocommerce') . '" class="tips" data-tip="' . __("Featured", 'woocommerce') . '" />'; $columns["featured"] = '<img src="' . $woocommerce->plugin_url() . '/assets/images/featured.png" alt="' . __("Featured", 'woocommerce') . '" class="tips" data-tip="' . __("Featured", 'woocommerce') . '" width="12" height="12" />';
$columns["product_type"] = '<img src="' . $woocommerce->plugin_url() . '/assets/images/product_type_head.png" alt="' . __("Type", 'woocommerce') . '" class="tips" data-tip="' . __("Type", 'woocommerce') . '" />'; $columns["product_type"] = '<img src="' . $woocommerce->plugin_url() . '/assets/images/product_type_head.png" alt="' . __("Type", 'woocommerce') . '" class="tips" data-tip="' . __("Type", 'woocommerce') . '" width="14" height="12" />';
$columns["date"] = __("Date", 'woocommerce'); $columns["date"] = __("Date", 'woocommerce');
return $columns; return $columns;
@ -220,8 +220,8 @@ function woocommerce_custom_product_columns( $column ) {
case "featured" : case "featured" :
$url = wp_nonce_url( admin_url('admin-ajax.php?action=woocommerce-feature-product&product_id=' . $post->ID), 'woocommerce-feature-product' ); $url = wp_nonce_url( admin_url('admin-ajax.php?action=woocommerce-feature-product&product_id=' . $post->ID), 'woocommerce-feature-product' );
echo '<a href="'.$url.'" title="'.__('Change', 'woocommerce') .'">'; echo '<a href="'.$url.'" title="'.__('Change', 'woocommerce') .'">';
if ($product->is_featured()) echo '<a href="'.$url.'"><img src="'.$woocommerce->plugin_url().'/assets/images/featured.png" alt="yes" />'; if ($product->is_featured()) echo '<a href="'.$url.'"><img src="'.$woocommerce->plugin_url().'/assets/images/featured.png" alt="yes" height="14" width="14" />';
else echo '<img src="'.$woocommerce->plugin_url().'/assets/images/featured-off.png" alt="no" />'; else echo '<img src="'.$woocommerce->plugin_url().'/assets/images/featured-off.png" alt="no" height="14" width="14" />';
echo '</a>'; echo '</a>';
break; break;
case "is_in_stock" : case "is_in_stock" :

File diff suppressed because one or more lines are too long

View File

@ -920,6 +920,12 @@ table.wp-list-table {
.column-is_in_stock { .column-is_in_stock {
text-align: left !important; text-align: left !important;
} }
@media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
span.product-type {
background-image: url(../images/product_types-x2.png) !important;
background-size:96px 16px !important;
}
}
span.product-type { span.product-type {
width: 16px; width: 16px;
height: 16px; height: 16px;
@ -927,19 +933,19 @@ table.wp-list-table {
display: block; display: block;
background:url(../images/product_types.png) no-repeat -16px 0; background:url(../images/product_types.png) no-repeat -16px 0;
&.grouped { &.grouped {
background:url(../images/product_types.png) no-repeat 0 0; background-position: 0 0;
} }
&.external { &.external {
background:url(../images/product_types.png) no-repeat -32px 0; background-position: -32px 0;
} }
&.variable { &.variable {
background:url(../images/product_types.png) no-repeat -48px 0; background-position: -48px 0;
} }
&.downloadable { &.downloadable {
background:url(../images/product_types.png) no-repeat -64px 0; background-position: -64px 0;
} }
&.virtual { &.virtual {
background:url(../images/product_types.png) no-repeat -80px 0; background-position: -80px 0;
} }
} }
mark.instock { mark.instock {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 701 B

After

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 720 B

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 918 B

After

Width:  |  Height:  |  Size: 1.3 KiB