Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: ash/system/power/tray_power.cc

Issue 12259007: Adjust battery image assets to better align in ash tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/resources/default_200_percent/cros/status/status_power_small_all_dark.png ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/power/tray_power.cc
diff --git a/ash/system/power/tray_power.cc b/ash/system/power/tray_power.cc
index 6a7d114699aac2ee3aafd040b3089307178e74a9..d84e7604fc7340cbb7b53ff2a924a62c4c594880 100644
--- a/ash/system/power/tray_power.cc
+++ b/ash/system/power/tray_power.cc
@@ -167,12 +167,10 @@ gfx::ImageSkia TrayPower::GetBatteryImage(int image_index, IconSet icon_set) {
icon_set == ICON_DARK ?
IDR_AURA_UBER_TRAY_POWER_SMALL_DARK : IDR_AURA_UBER_TRAY_POWER_SMALL);
- // TODO(mbolohan): Remove the 2px offset when the assets are centered. See
- // crbug.com/119832.
gfx::Rect region(
- ((image_index & 0x1) ? kBatteryImageWidth : 0) + 2,
+ (image_index & 0x1) ? kBatteryImageWidth : 0,
(image_index >> 1) * kBatteryImageHeight,
- kBatteryImageWidth - 2, kBatteryImageHeight);
+ kBatteryImageWidth, kBatteryImageHeight);
return gfx::ImageSkiaOperations::ExtractSubset(*all.ToImageSkia(), region);
}
« no previous file with comments | « ash/resources/default_200_percent/cros/status/status_power_small_all_dark.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698