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

Unified Diff: ui/views/controls/tree/tree_view.cc

Issue 2772613003: views: don't use open-folder icons in TreeView on Mac (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | ui/views/style/platform_style.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/tree/tree_view.cc
diff --git a/ui/views/controls/tree/tree_view.cc b/ui/views/controls/tree/tree_view.cc
index fc7541924357eb2a0649309263639ff93ba80bb3..2bfbd21089c14a2869b6131ccf4cbc1ff121e31a 100644
--- a/ui/views/controls/tree/tree_view.cc
+++ b/ui/views/controls/tree/tree_view.cc
@@ -780,7 +780,7 @@ void TreeView::PaintRow(gfx::Canvas* canvas,
int icon_index = model_->GetIconIndex(node->model_node());
if (icon_index != -1)
icon = icons_[icon_index];
- else if (node == selected_node_)
+ else if (node == selected_node_ && PlatformStyle::kTreeViewUsesOpenIcon)
icon = open_icon_;
else
icon = closed_icon_;
« no previous file with comments | « no previous file | ui/views/style/platform_style.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698