Commit 18514c7b authored by Peter Kasting's avatar Peter Kasting Committed by Commit Bot

Use the Mac-specific "managed bookmark folder" images.

This requires adding the missing 1x resource (2x was already present).

Bug: none
Change-Id: I0487f5cecc706e205d90734f6554db82b1c0d5ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1674750
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#671927}
parent c03b6262
......@@ -63,8 +63,7 @@
<if expr="is_macosx">
<structure type="chrome_scaled_image" name="IDR_BOOKMARK_BAR_FOLDER" file="mac/bookmark_bar_folder.png" />
<structure type="chrome_scaled_image" name="IDR_BOOKMARK_BAR_FOLDER_MANAGED" file="mac/bookmark_bar_folder_managed.png" />
</if>
<if expr="is_macosx">
<structure type="chrome_scaled_image" name="IDR_BOOKMARK_BAR_FOLDER_MANAGED_WHITE" file="mac/bookmark_bar_folder_managed_white.png" />
<structure type="chrome_scaled_image" name="IDR_BOOKMARK_BAR_FOLDER_WHITE" file="mac/bookmark_bar_folder_white.png" />
</if>
<if expr="is_win">
......
......@@ -94,7 +94,7 @@ BookmarkShortcutDisposition GetBookmarkShortcutDisposition(Profile* profile) {
return BOOKMARK_SHORTCUT_DISPOSITION_UNCHANGED;
}
#if defined(TOOLKIT_VIEWS) && !defined(OS_WIN)
#if defined(TOOLKIT_VIEWS) && !defined(OS_WIN) && !defined(OS_MACOSX)
gfx::ImageSkia GetFolderIcon(const gfx::VectorIcon& icon, SkColor text_color) {
return gfx::CreateVectorIcon(icon,
color_utils::DeriveDefaultIconColor(text_color));
......@@ -317,6 +317,13 @@ gfx::ImageSkia GetBookmarkManagedFolderIcon(SkColor text_color) {
#if defined(OS_WIN)
return *ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
IDR_BOOKMARK_BAR_FOLDER_MANAGED);
#elif defined(OS_MACOSX)
int resource_id = color_utils::IsDark(text_color)
? IDR_BOOKMARK_BAR_FOLDER_MANAGED
: IDR_BOOKMARK_BAR_FOLDER_MANAGED_WHITE;
return *ui::ResourceBundle::GetSharedInstance()
.GetNativeImageNamed(resource_id)
.ToImageSkia();
#else
return GetFolderIcon(ui::MaterialDesignController::touch_ui()
? vector_icons::kFolderManagedTouchIcon
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment