diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 03:01:28 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 03:01:28 +0000 |
commit | de83327682e3ff7e491fb750caafe0d0b1bdf58f (patch) | |
tree | 8b3c45bf5ec528c3335d0806b3f5b664c24c2f70 /ash | |
parent | 9dca064cd55041e8b8f7f52634b00aa73f9c1e4a (diff) | |
download | chromium_src-de83327682e3ff7e491fb750caafe0d0b1bdf58f.zip chromium_src-de83327682e3ff7e491fb750caafe0d0b1bdf58f.tar.gz chromium_src-de83327682e3ff7e491fb750caafe0d0b1bdf58f.tar.bz2 |
New resources for launcher
rename files to match IDR names.
BUG=152929
TEST=none
Review URL: https://codereview.chromium.org/11348366
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170872 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/launcher/launcher.cc | 4 | ||||
-rw-r--r-- | ash/launcher/launcher_button.cc | 12 | ||||
-rw-r--r-- | ash/resources/ash_resources.grd | 23 | ||||
-rw-r--r-- | ash/resources/default_100_percent/common/launcher_underline_bottom_active.png (renamed from ash/resources/default_100_percent/common/launcher_underline_active.png) | bin | 1052 -> 1052 bytes | |||
-rw-r--r-- | ash/resources/default_100_percent/common/launcher_underline_bottom_hover.png (renamed from ash/resources/default_100_percent/common/launcher_underline_hover.png) | bin | 1053 -> 1053 bytes | |||
-rw-r--r-- | ash/resources/default_100_percent/common/launcher_underline_bottom_running.png (renamed from ash/resources/default_100_percent/common/launcher_underline_running.png) | bin | 1077 -> 1077 bytes |
6 files changed, 23 insertions, 16 deletions
diff --git a/ash/launcher/launcher.cc b/ash/launcher/launcher.cc index b794cc3..f38b567 100644 --- a/ash/launcher/launcher.cc +++ b/ash/launcher/launcher.cc @@ -108,7 +108,7 @@ class DimmerView : public views::WidgetDelegateView, if (!launcher_background) { ResourceBundle& rb = ResourceBundle::GetSharedInstance(); launcher_background = - rb.GetImageNamed(IDR_AURA_LAUNCHER_DIMMING).ToImageSkia(); + rb.GetImageNamed(IDR_AURA_LAUNCHER_DIMMING_BOTTOM).ToImageSkia(); } paint.setAlpha(kDimAlpha); canvas->DrawImageInt( @@ -171,7 +171,7 @@ void Launcher::DelegateView::OnPaintBackground(gfx::Canvas* canvas) { if (!launcher_background) { ResourceBundle& rb = ResourceBundle::GetSharedInstance(); launcher_background = - rb.GetImageNamed(IDR_AURA_LAUNCHER_BACKGROUND).ToImageSkia(); + rb.GetImageNamed(IDR_AURA_LAUNCHER_BACKGROUND_BOTTOM).ToImageSkia(); } paint.setAlpha(alpha_); canvas->DrawImageInt( diff --git a/ash/launcher/launcher_button.cc b/ash/launcher/launcher_button.cc index fd1839b..b4c4f9b 100644 --- a/ash/launcher/launcher_button.cc +++ b/ash/launcher/launcher_button.cc @@ -354,18 +354,18 @@ void LauncherButton::UpdateState() { int bar_id; if (IsShelfHorizontal()) { if (state_ & STATE_ACTIVE) - bar_id = IDR_AURA_LAUNCHER_UNDERLINE_ACTIVE; + bar_id = IDR_AURA_LAUNCHER_UNDERLINE_BOTTOM_ACTIVE; else if (state_ & (STATE_HOVERED | STATE_FOCUSED | STATE_ATTENTION)) - bar_id = IDR_AURA_LAUNCHER_UNDERLINE_HOVER; + bar_id = IDR_AURA_LAUNCHER_UNDERLINE_BOTTOM_HOVER; else - bar_id = IDR_AURA_LAUNCHER_UNDERLINE_RUNNING; + bar_id = IDR_AURA_LAUNCHER_UNDERLINE_BOTTOM_RUNNING; } else { if (state_ & STATE_ACTIVE) - bar_id = IDR_AURA_LAUNCHER_UNDERLINE_VERTICAL_ACTIVE; + bar_id = IDR_AURA_LAUNCHER_UNDERLINE_LEFT_ACTIVE; else if (state_ & (STATE_HOVERED | STATE_FOCUSED | STATE_ATTENTION)) - bar_id = IDR_AURA_LAUNCHER_UNDERLINE_VERTICAL_HOVER; + bar_id = IDR_AURA_LAUNCHER_UNDERLINE_LEFT_HOVER; else - bar_id = IDR_AURA_LAUNCHER_UNDERLINE_VERTICAL_RUNNING; + bar_id = IDR_AURA_LAUNCHER_UNDERLINE_LEFT_RUNNING; } ResourceBundle& rb = ResourceBundle::GetSharedInstance(); diff --git a/ash/resources/ash_resources.grd b/ash/resources/ash_resources.grd index 8f40e40..aa9ea59 100644 --- a/ash/resources/ash_resources.grd +++ b/ash/resources/ash_resources.grd @@ -48,23 +48,30 @@ <structure type="chrome_scaled_image" name="IDR_AURA_CURSOR_GRAB" file="cros/pointers/fleur.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_CURSOR_GRABBING" file="cros/pointers/hand3.png" /> </if> - <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_BACKGROUND" file="common/launcher_background.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_BACKGROUND_BOTTOM" file="common/launcher_background.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_BACKGROUND_LEFT" file="common/launcher_background_left.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_BACKGROUND_RIGHT" file="common/launcher_background_right.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_BROWSER" file="common/launcher_browser.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_BROWSER_PANEL" file="common/launcher_browser_panel.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_BROWSER_SHORTCUT" file="common/chromium-32.png" /> - <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_DIMMING" file="common/launcher_dimming.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_DIMMING_BOTTOM" file="common/launcher_dimming.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_DIMMING_LEFT" file="common/launcher_dimming_left.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_DIMMING_RIGHT" file="common/launcher_dimming_right.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_ICON_APPLIST" file="common/status/launcher_appmenu.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_ICON_APPLIST_HOT" file="common/status/launcher_appmenu_hover.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_ICON_APPLIST_PUSHED" file="common/status/launcher_appmenu_pressed.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_INCOGNITO_BROWSER" file="common/launcher_incognito_browser.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_INCOGNITO_BROWSER_PANEL" file="common/launcher_incognito_browser_panel.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_OVERFLOW" file="common/launcher_overflow.png" /> - <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_ACTIVE" file="common/launcher_underline_active.png" /> - <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_HOVER" file="common/launcher_underline_hover.png" /> - <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_RUNNING" file="common/launcher_underline_running.png" /> - <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_VERTICAL_ACTIVE" file="common/launcher_underline_active.png" /> - <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_VERTICAL_HOVER" file="common/launcher_underline_hover.png" /> - <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_VERTICAL_RUNNING" file="common/launcher_underline_running.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_BOTTOM_ACTIVE" file="common/launcher_underline_bottom_active.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_BOTTOM_HOVER" file="common/launcher_underline_bottom_hover.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_BOTTOM_RUNNING" file="common/launcher_underline_bottom_running.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_LEFT_ACTIVE" file="common/launcher_underline_left_active.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_LEFT_HOVER" file="common/launcher_underline_left_hover.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_LEFT_RUNNING" file="common/launcher_underline_left_running.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_RIGHT_ACTIVE" file="common/launcher_underline_right_active.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_RIGHT_HOVER" file="common/launcher_underline_right_hover.png" /> + <structure type="chrome_scaled_image" name="IDR_AURA_LAUNCHER_UNDERLINE_RIGHT_RUNNING" file="common/launcher_underline_right_running.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_MULTI_WINDOW_RESIZE_H" file="common/multi_window_resize_horizontal.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_MULTI_WINDOW_RESIZE_V" file="common/multi_window_resize_vertical.png" /> <structure type="chrome_scaled_image" name="IDR_AURA_RESIZE_SHADOW_BOTTOM" file="common/resize_shadow_bottom.png" /> diff --git a/ash/resources/default_100_percent/common/launcher_underline_active.png b/ash/resources/default_100_percent/common/launcher_underline_bottom_active.png Binary files differindex 1578d70..1578d70 100644 --- a/ash/resources/default_100_percent/common/launcher_underline_active.png +++ b/ash/resources/default_100_percent/common/launcher_underline_bottom_active.png diff --git a/ash/resources/default_100_percent/common/launcher_underline_hover.png b/ash/resources/default_100_percent/common/launcher_underline_bottom_hover.png Binary files differindex 601425b..601425b 100644 --- a/ash/resources/default_100_percent/common/launcher_underline_hover.png +++ b/ash/resources/default_100_percent/common/launcher_underline_bottom_hover.png diff --git a/ash/resources/default_100_percent/common/launcher_underline_running.png b/ash/resources/default_100_percent/common/launcher_underline_bottom_running.png Binary files differindex 30e65e0..30e65e0 100644 --- a/ash/resources/default_100_percent/common/launcher_underline_running.png +++ b/ash/resources/default_100_percent/common/launcher_underline_bottom_running.png |